R-Tile Avalon® Streaming Intel® FPGA IP for PCI Express* User Guide

ID 683501
Date 12/06/2024
Public
Document Table of Contents

4.4.6. PIPE Direct Speed Change

In the PIPE Direct Data mode, the clock for the RX datapath is sourced from the PHY recovered clock (pipe_direct_pld_rx_clk_out_o). The PHY recovered clock changes frequency when the PHY trains from Gen1 to Gen5. During the PIPE Direct RX rate change, the following sequence needs to be adhered to.

The soft IP controller first changes the rate or width if required. The R-Tile Avalon Streaming IP only asserts lnX_pipe_direct_pclkchangeok_o after the Soft IP controller has made the changes. The Soft IP controller asserts lnX_pipe_direct_pclkchangeack_i when the change is complete and stable. After the Soft IP controller asserts lnX_pipe_direct_pclkchangeack_i, the R-Tile Avalon Streaming IP responds by asserting lnX_pipe_direct_phystatus_o for one cycle and deasserting lnX_pipe_direct_pclkchangeok_o at the same time as lnX_pipe_direct_phystatus_o. The Soft IP controller deasserts lnX_pipe_direct_pclkchangeack_i when lnX_pipe_direct_pclkchangeok_o is sampled low.

As a reference, the following diagram illustrates the speed change from Gen1 to Gen5.
Note: Although the diagram below illustrates a speed change from Gen1 to Gen5, the overall sequence applies to all speed changes. However, the final value of ln0_pipe_direct_rate_i varies depending on what the final speed is.
Figure 47. PIPE Direct Speed Change
Note: As per the PHY Interface for PCI Express Specification, Version 5.1.1, the TX data valid signal must be asserted whenever TX electrical idle toggles. The PHY will mask off the TX data as long as TX electrical idle is asserted.
Note: The Rx data must be qualified with an AND operation between the corresponding ln_pipe_direct_reset_status_n_o lane signal, ln0_pipe_direct_rxdatavalid0_o and ln0_pipe_direct_rxdatavalid1_o.
Note: The RX data is not valid until the corresponding ln_pipe_direct_reset_status_n_o lane signal goes high.

Below are the steps required for the speed change sequence for lane 0 in the R-Tile Avalon Streaming IP when configured in PIPE Direct mode. This behavior also applies to other lanes and other speed rates.

Note that each of the steps required correlates with the corresponding letter in the waveforms.

Step (a) : The Soft IP controller initiates rate change by transitioning LTSSM State into Recovery.

Step (b) : The soft IP controller asserts lnX_pipe_direct_standby_i signal to indicate the PHY transition into standby mode.

Step (c) : The soft IP controller asserts lnX_pipe_direct_txelecidle_i while lnX_pipe_direct_txdatavalid0_i and lnX_pipe_direct_txdatavalid1_i are asserted. The soft IP controller deasserts lnX_pipe_direct_txdatavalid0_i, lnX_pipe_direct_txdatavalid1_i signal after asserting lnX_pipe_direct_txelecidle_i.

Step (d) : The soft IP controller changes the rate by changing the lnX_pipe_direct_rate signal.

Step (e) : The R-tile Avalon Streaming IP drives the lnX_pipe_direct_reset_status_n_o signal low indicating RX datapath is in reset.

Step (f) : The R-tile Avalon Streaming IP asserts lnX_pipe_direct_pclkchangeok_o indicating the PHY is changing the pclk.

Step (g) : The soft IP controller asserts the lnX_pipe_direct_pclkchangeack_i indicating the pclk change is acknowledged by the soft IP controller.

Step (h) : The lnX_pipe_direct_phystatus_o is pulsed to acknowledge rate change.

Step (i) : The R-tile Avalon Streaming IP deasserts lnX_pipe_direct_pclkchangeok_o indicating the PHY completed the pclk change for the new speed.

Step (j) : The soft IP controller deasserts the lnX_pipe_direct_pclkchangeack_i indicating the pclk change completion is acknowledged by the soft IP controller.

Step (k) : The soft IP controller deasserts lnX_pipe_direct_standby_i signal to indicate the PHY transition into active mode.

Step (l) : The soft IP controller deasserts lnX_pipe_direct_txelecidle_i after lnX_pipe_direct_txdatavalid0_i and lnX_pipe_direct_txdatavalid1_i are asserted. The soft IP controller sends valid data on lnX_pipe_direct_txdata once the lnX_pipe_direct_txelecidle_i is deasserted.

Step (m) : The R-tile Avalon Streaming IP asserts the lnX_pipe_direct_cdrlock2data_o indicating RX CDR is locked to data.

Step (n) : The R-tile Avalon Streaming IP drives the lnX_pipe_direct_reset_status_n_o signal high indicating the RX path is out of reset and RX data can be received on the RX datapath by the soft IP controller.