Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

FT601 uses a 100 MHz FIFO clock. Why does the PC fall short of 400 MB/s?

An FPGA acquisition board feeds an FT601, which streams over USB to a PC. Thirty-two bits times 100 MHz gives a theoretical local bus ceiling of 400 MB/s. It assumes four valid bytes on every accepted clock. The application rate depends on successful handshake cycles, valid bytes per transfer, USB scheduling and how fast the host consumes data. An accurate clock cannot establish any of those conditions.

Count accepted cycles

FTDI's AN_421 provides a reference FIFO bus master. The FT601 uses a 32-bit interface, and the reference supports 100 MHz and 66 MHz operation. Confirm the timing diagram for the actual mode. For the synchronous 245 mode, look at TXE_N and WR_N for writes and RXF_N, OE_N and RD_N for reads. FPGA-to-bridge and bridge-to-FPGA transfers use different handshakes. The multichannel mode has its own control rules and needs its own counting criteria.

At 100 MHz, 10,000 cycles take 100 µs. If 7,200 carry accepted words with all four bytes valid, the board writes 28,800 bytes at 288 MB/s. At a measured 66.0 MHz with the same 72% utilization, that is about 190.08 MB/s. Those calculations do not subtract partial words, protocol data or host gaps. Keep units explicit. A decimal 288 MB/s is approximately 274.66 MiB/s, so both displays can be correct.

Determine why each idle cycle exists

Separate FPGA input starvation, bridge backpressure, and gaps for direction changes or local scheduling. The bridge can temporarily refuse writes when the USB or host side slows down. Account for valid byte lanes on each accepted word. Then the missing 28% has identifiable causes. Use the actual capture edge. A low pulse that never qualifies on an active edge is not a completed transfer.

Use a sequence number to catch missing and duplicated data as well as measure speed. Start with a known finite burst and check host byte total and tail bytes. Then run continuously and compare sustained speed, gaps and receive-buffer peaks. If FPGA counters increase steadily but the application only updates on screen refresh, compare driver completion times with actual application reads. If the design alternates directions, test the production transaction pattern. A one-way benchmark does not account for repeated turnarounds.

The buffer has to outlast a real pause

Suppose the source continuously produces 250 MB/s and the PC stops taking data for 2 ms. The board needs about 500,000 bytes of buffering elsewhere to avoid immediate loss. If service resumes at 288 MB/s while input continues at 250 MB/s, the net drain is 38 MB/s and clearing the backlog takes about 13.16 ms. Another close pause can fill the buffer despite acceptable long-term average throughput. Document expected maximum gaps, available buffering and net recovery speed. A good 100 MHz waveform cannot buy time in a preempted host thread.

Save measured clock, handshake utilization, tail-byte handling, application throughput, and the worst stall. Run on the required USB connection and operating system, with file size and buffer settings recorded. After changing a clock source or FIFO rate, repeat the sequence and byte-count check. Qualify the system for sustained integrity, minimum delivered throughput, and recovery from specified stalls.

Repeat with a transfer one byte short of word alignment and then several short transfers back to back. Unchanged throughput with extra padding in the received file exposes inconsistent byte accounting. Keep the FIFO clock fixed while checking initial and final sequence numbers and total bytes. Host read-buffer tuning should not change the valid source data.

References

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.