An image-capture board uses a CYUSB3014 to move FPGA data from a parallel port to a USB host. Enumeration and low-rate test patterns work. DMA overflow appears during continuous capture after moving to a 32-bit GPIF II bus with a 100 MHz PCLK. Both board revisions use a 19.2 MHz crystal. Trace the reference, system clock and parallel transfers, then see whether the host can continuously drain the stream.
The crystal is the input to the clock tree
The Infineon FX3 datasheet distinguishes a 19.2 MHz passive crystal from external clocks at 19.2, 26, 38.4 and 52 MHz. The crystal uses XTALIN and XTALOUT, while an external source uses CLKIN and the appropriate FSLC settings from Table 3. Even with the same 19.2 MHz input, firmware can select a different system clock configuration. For 32-bit GPIF at 100 MHz, Infineon's KBA84082 says a 19.2 MHz reference normally gives a 384 MHz system clock and can lead to DMA overflow in this configuration. The setSysClk400 parameter of CyU3PDeviceInit changes the system clock to 403.2 MHz. A valid reference verifies the first stage of the path. Infineon FX3 datasheet, section 10 Infineon KBA84082, 32-bit GPIF at 100 MHz
Find the PCLK source next. In synchronous master mode, FX3 can send a divided internal clock at the port. In synchronous slave mode it can receive an external PCLK. The source determines where to probe and which settings apply. Infineon's GPIF-II DLL article identifies CyU3PPibInit as the place to configure the internal PIB clock divider. DLL use depends on interface mode and frequency. In a public support question about taking a GPIF clock from GPIO16 for an FPGA on a 19.2 MHz board, Infineon directed the developer to the PIB clock structure. Record which side drives the interface before interpreting the firmware settings. Infineon GPIF-II DLL application information Infineon discussion of GPIF clock output
Check three quantities before interpreting overflow
Suppose an FPGA supplies 100 MHz in synchronous slave mode and FX3 accepts one 32-bit word per active cycle. At full utilisation, 100000000 × 32 ÷ 8 gives 400 million bytes per second. At 80% utilisation the average is 320 million bytes per second. The GPIF state machine, ready flags, DMA buffer transitions, USB protocol overhead and host scheduling determine actual throughput. Physical USB line rate alone does not establish how much data the application can drain. Write the test requirement in bytes and elapsed time so the triggering load is reproducible.
For a PCLK generated by FX3, suppose PIB selects SYSCLK directly and divides it by four. The arithmetic gives 96 MHz from 384 MHz and a nominal 100.8 MHz from 403.2 MHz. The latter is only a divider result. The implemented interface must meet the device limits for the mode and width in use. If the board requires exactly 100.000 MHz, evaluate supplying a compliant external PCLK from the FPGA and configuring the FX3 system clock independently. That preserves the board-to-board clock rate while allowing you to assess internal processing margin. Measure PCLK at the receiving pin. An API name does not give the actual frequency. Infineon GPIF-II internal PIB clock and PCLK paths
Infineon gives a 10 to 100 MHz range for synchronous operation. Keep the 100.8 MHz calculation visible in the design record and mark that it exceeds the 100 MHz limit used here by 0.8%. Any higher-frequency claim needs manufacturer documentation for the particular device and conditions. A one-image trial at a new setting does not establish a qualified working point. Measure PCLK high and low times as well as its average period. FX3 datasheet, GPIF II AC timing
Budget the queue separately. If the host drains 300 MB/s while the upstream continuously supplies 320 MB/s, the gap is 20 MB/s. With 64 KiB of free queue space and no backpressure, the queue would fill in 65536 ÷ 20000000, or about 3.28 ms. Actual room depends on buffer configuration, current occupancy and flow control. This model helps select a capture duration. A small image or the first frame alone can miss a fault that needs several milliseconds of accumulation.
Collect evidence at the reference, parallel port and host
Capture the interface timing in another run. Put PCLK, the data write strobe and the writable-state flag on one trace and inspect the cycles leading into overflow. Count how many words the FPGA sends after the stop indication and whether those in-flight words fit in the remaining buffer. Also check the burst argument to CyU3PGpifSocketConfigure. KBA84082 specifies a value greater than zero for the case it discusses. Save initialisation return codes to confirm the intended settings took effect. KBA84082, socket and system clock configuration
Start with one board and the same crystal. Run the old and proposed configurations and retain measured clock rates, clock direction and USB enumeration speed. Have the FPGA send a repeatable pattern with sequence numbers. Compare valid words entering GPIF with bytes received by the host and align the record with error events and FIFO flags. Change PCLK, active-cycle utilisation or host drain scheduling one at a time to find a repeatable boundary. After a mode change, verify GPIF sampling edges and timing so a setup or hold failure is not mistaken for a queue-capacity issue. Save a long transfer that exercises backpressure and a capture after the rate recovers. Those expose recurring losses or a ready signal that behaves incorrectly.
Keep the first missing sequence number and timestamp around the first overflow. If host reads stop first and data disappears when the queue fills, investigate space and backpressure. If random bit errors occur at a sustained low data rate around the sequence gap, investigate sampling and signal integrity. These observations help determine whether to change host buffering or examine the parallel clock and its configuration in the next run.
If the system is meant to accept alternate references, keep one qualification record for sourcing and firmware. For the original crystal, record 19.2 MHz, board load capacitors and circuit matching. For an active input, specify the ordering code, CVDDQ input voltage and datasheet test conditions for phase-noise offsets and duty cycle. Add FSLC settings, the system-clock configuration, who drives PCLK, the interface width and verified sustained traffic. Use the same input pattern and host test when qualifying another oscillator so any change in data loss stays traceable to the hardware and configuration. Infineon FX3 datasheet, clock selection and input specifications
