Forum Discussion
Cyclone V GT PCIe Compliance Test Pattern Does Not Switch from Gen1 to Gen2
The behavior you're observing — stable Polling.Compliance (ltssmstate = 03h) with Gen1 pattern locked and test_in[5] pulsing having no effect on data rate — exactly matches a documented known issue.
When performing the TX Eye Test as part of the PCI Express Compliance Base Board (CBB) testing, the Arria V and Cyclone V Hard IP for PCIe do not cycle through the Gen1 and Gen2 data rates. This issue is fixed in version 13.0 of the Hard IP for PCI Express IP Cores. Arria V and Cyclone V Hard IP for PCIe IP Core Do Not Cycle through Gen1 and Gen2 Data Rates in CBB Testing
Since you're on Quartus Prime Standard 25.1, that version of the IP should incorporate the fix. The first thing to check is whether your project's Hard IP for PCI Express was generated/regenerated with Quartus 25.1 tools, or whether it carries a cached IP that predates the fix. Force a full IP regeneration under Quartus 25.1 and rebuild, then retest.
Regarding your specific sub-questions:
Procedure (test_in[6] + test_in[5]): Your approach is correct in principle. Setting test_in[6]=1 forces entry to Compliance mode when a timeout is reached in the Polling.Active state. Debugging Link that Fails To Reach L0 Once in Polling.Compliance (03h), test_in[5] is the compliance test mode / disable-force compliance mode bit; when set, it prevents the LTSSM from entering compliance mode; toggling this bit controls the entry and exit from the compliance state, enabling the transmission of compliance patterns. Test Signals Your SignalTap confirms test_in[31:0] correctly transitions from 0xC8 → 0xE8 → 0xC8 (asserting/deasserting bit 5), so the toggling mechanism is being applied correctly.
LTSSM state during pattern cycling: ltssmstate = 03h (Polling.Compliance) is correct and expected to remain there while the Tx rate and emphasis cycle. The dl_current_speed output staying at 1h (Gen1) throughout is the symptom of the known issue — it should increment to 2h (Gen2) on subsequent toggles once the fix is in effect.
Pulse polarity and width: The documentation does not specify a minimum pulse width for test_in[5] beyond the general transceiver edge-sensitive signal requirement. When driving Cyclone V transceiver edge-sensitive signals, the minimum pulse width requirement must be complied with; the minimum typical pulse width is two parallel clock cycles. Why doesn't pulsing transceiver edge sensitive input signals have an effect in Cyclone V, Arria V and Stratix V transceiver devices? Your 640 ns pulse is well above that threshold. The polarity is a 0→1 transition (the base state should be test_in[5]=0, then pulse high), consistent with your 0xC8→0xE8 transitions seen in SignalTap.
Additional debug points from your SignalTap capture:
Your capture shows req_compliance_push_button_n and req_compliance_cycle_... signals, which are part of the standard Cyclone V compliance test example design. These signals indicate the example design has its own internal state machine (with debounce logic, as shown by dbc_cnt) that sequences the test_in[5] toggle to the Hard IP when the physical push button is asserted. If you are using the reference compliance test example, the physical push button on the board (driving req_compliance_push_button_n low) is the intended interface for advancing the compliance pattern — the example logic then drives test_in[5] to the HIP internally. Injecting test_in[5] from an external source concurrently may conflict with the example's state machine. Confirm whether req_compliance_push_button_n is what you should be asserting rather than overriding test_in[5] directly.
Also verify the power supply setting for Gen2: Altera recommends increasing the VCCE_GXBL and VCCL_GXBL typical value from 1.1 V to 1.2 V for Cyclone V GT and ST FPGA systems which require full compliance to the PCIe Gen2 transmit jitter specification. Transceiver Specifications for Cyclone V GX, GT, SX, and ST Devices — Cyclone V Device Datasheet For Cyclone V GT Gen1 and Gen2, VCCR_GXB and VCCT_GXB must be 1.2 V; VCCA_GXB must be 2.5 V. Table 12-1: Power Supply Voltage Requirements — Cyclone® V Avalon® Streaming (Avalon-ST) Interface for PCIe* Solutions User Guide
In summary: regenerate the IP under Quartus 25.1 to pick up the IP v13.0+ fix, confirm you are using req_compliance_push_button_n (not a direct test_in[5] override) if running the standard compliance example design, and verify the transceiver supply rails are at the Gen2-required voltages.
Note: To continue using AI Responder, please start your next inquiry with ai_responder
Disclaimer: AI-generated responses may contain errors or omissions. Please verify technical guidance with official Altera documentation before implementation.
Thank you very much.