Forum Discussion

I_TAKU's avatar
I_TAKU
Icon for New Contributor rankNew Contributor
10 hours ago

Cyclone V GT PCIe Compliance Test Pattern Does Not Switch from Gen1 to Gen2

I am performing a PCIe Gen2 compliance test using a Cyclone V GT Development Kit, but the compliance test pattern does not switch from Gen1 to Gen2.

Test Environment

  • Board: Cyclone V GT Development Kit
  • PCIe IP: Configured for Gen2
  • Quartus Prime Standard 25.1
  • The development kit is connected to a CBB (Compliance Base Board).
  • The PCIe Tx waveform is observed using an oscilloscope.

Test Procedure

We control the PCIe IP as follows:

  1. Set test_in[6] to High (1).
  2. Apply a pulse to test_in[5].
  3. Observe the PCIe Tx waveform on the oscilloscope after applying the pulse.

We expect each pulse applied to test_in[5] to cycle through the compliance test patterns, changing the Link Rate and Transmit Emphasis, for example:

  • Gen1
  • Gen2 / -3.5 dB
  • Gen2 / -6 dB
  • Gen1
  • ...

test_in[5] Pulse Conditions

According to the information available to us, the specified pulse width for test_in[5] is 16 ns to 24 ms.

In our test, we are using a 640 ns pulse width, which is within this range.

We have also tested both:

  • High pulse
  • Low pulse

on test_in[5], but there was no difference in the result.

LTSSM State and Tx Waveform

We also monitored the ltssmstate signal of the PCIe IP.

The ltssmstate signal remains stable at 03h.

We also confirmed on the oscilloscope that the Gen1 compliance pattern is being transmitted continuously and stably.

Therefore, it appears that the PCIe interface successfully enters Compliance Mode.

However, while in this state, applying a 640 ns pulse to test_in[5] does not cause any observable change in the Tx waveform. The Gen1 compliance pattern continues to be transmitted.

Even after applying multiple pulses, the output does not switch to Gen2 and we cannot observe any change in the Transmit Emphasis.

Test with Two Development Kits

To rule out an issue specific to an individual development kit, we performed the same test using two different Cyclone V GT Development Kits.

Both development kits showed the same behavior: the Gen1 compliance pattern is transmitted correctly, but the compliance test pattern does not advance when a pulse is applied to test_in[5].

Questions

Could you please clarify the following?

  1. For a PCIe Gen2 compliance test on Cyclone V GT, is it correct to set test_in[6] High and apply pulses to test_in[5] to cycle through the compliance test patterns?
  2. What is the correct sequence of Link Rate and Transmit Emphasis settings expected for each pulse applied to test_in[5]?
  3. Is a 640 ns pulse width appropriate for test_in[5]? Also, should test_in[5] be driven with a High pulse or a Low pulse?
  4. When ltssmstate is 03h and a stable Gen1 compliance pattern is being transmitted, is this the expected state for cycling through the Gen1/Gen2 compliance test patterns using test_in[5]?
  5. When the compliance test pattern is changed by test_in[5], should ltssmstate also change, or should ltssmstate remain at 03h while only the Tx Link Rate / Transmit Emphasis changes?
  6. Are there any additional settings, signals, or conditions required, other than test_in[5] and test_in[6], to switch the compliance test output from Gen1 to Gen2?
  7. Are there any PCIe IP settings, registers, or status signals that we should check to debug this issue?

Thank you for your support.

 

1 Reply

  • ai_responder's avatar
    ai_responder
    Icon for Community Manager rankCommunity Manager

    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.