JESD204B Intel® FPGA IP User Guide

ID 683442
Date 12/16/2024
Public
Document Table of Contents

6.7. Debugging JESD204B Link Using System Console

The system console provides access to the JESD204B IP register sets through the Avalon® memory-mapped interfaces.

To use the system console, your design must contain a Platform Designer subsystem with the JTAG-to-Avalon-MM Master bridge. Connect the JESD204B IP Avalon® memory-mapped interface to the Avalon® memory-mapped master through the Platform Designer interconnect directly if the IP resides in the Platform Designer subsystem. Otherwise, connect the Avalon® memory-mapped interface through the Merlin slave translator if the IP is not part of the Platform Designer subsystem.

PHY Layer for All Devices Except Stratix® 10 E-tile Devices

Verify the PHY status through these signals in the <ip_variant_name> .v:

Table 90.  PHY Status Signals for All Supported Devices Except Stratix® 10 E-tile Devices
Design Signals
RX
  • rx_is_lockedtodata
  • rx_analogreset
  • rx_digitalreset
  • rx_cal_busy
TX
  • pll_locked
  • pll_powerdown
  • tx_analogreset
  • tx_digitalreset
  • tx_cal_busy
RX and TX (Duplex)
  • rx_is_lockedtodata
  • rx_analogreset
  • rx_digitalreset
  • rx_cal_busy
  • rx_seriallpbken
  • pll_locked
  • pll_powerdown
  • tx_analogreset
  • tx_digitalreset
  • tx_cal_busy

Use the rxphy_clk[0] or txphy_clk[0] signal as sampling clock for the Signal Tap Logic Analyzer.

For a normal operation of the JESD204B RX path, the rx_is_lockedtodata bit for each lane should be "1" while the rx_cal_busy, rx_analogreset, and rx_digitalreset bit for each lane should be "0".

For a normal operation of the JESD204B TX path, the pll_locked bit for each lane should be "1" while the tx_cal_busy, pll_powerdown, tx_analogreset, and tx_digitalreset bit for each lane should be "0".

Measure the rxphy_clk or txphy_clk frequency by connecting the clock to the CLKOUT pin on the FPGA. The frequency should be the same as link clock frequency for PCS option in Hard PCS or Soft PCS mode. The frequency is half of the link clock frequency for PCS option in PMA Direct mode.

PHY Layer for Stratix® 10 E-tile Devices

Verify the PHY status through these signals in the <ip_variant_name> .v:

Table 91.  PHY Status Signals for Stratix® 10 E-tile Devices
Design Signals
RX
  • rx_is_lockedtodata
  • phy_rx_ready
  • phy_rx_pma_ready
TX
  • phy_tx_ready
  • phy_tx_pma_ready
Use the rxphy_clk[0] or txphy_clk[0] signal as the acquisition clock. Then add the following set_false_path constraint in the SDC script.
set_false_path -from 
<instance_name>|inst_phy|inst_xcvr|*counter_*x_ready|r_reset -to 
auto_fab*sld_signaltap_inst*

For a normal operation of the JESD204B RX path, the phy_rx_pma_ready, phy_rx_ready and the rx_islockedtodata bits for each lane should be "1".

For a normal operation of the JESD204B TX path, the phy_tx_pma_ready and phy_tx_ready bits for each lane should be "1".

Measure the rxphy_clk or txphy_clk frequency by connecting the clock to the CLKOUT pin on the FPGA. The frequency should be the same as link clock frequency.

Link Layer

Verify the RX and TX PHY-link layer interface operation through these signals in the <ip_variant_name> _inst_phy.v:

Table 92.  RX and TX PHY-Link Layer Signals
Design Signals
RX
  • jesd204_rx_pcs_data
  • jesd204_rx_pcs_data_valid
  • jesd204_rx_pcs_kchar_data
  • jesd204_rx_pcs_errdetect
  • jesd204_rx_pcs_disperr
TX
  • jesd204_tx_pcs_data
  • jesd204_tx_pcs_kchar_data

Verify the link layer operation through these signals in the <ip_variant_name> .v:

Table 93.  RX and TX Link Layer Signals
Design Signals
RX
  • jesd204_rx_avs_rst_n
  • rxlink_rst_n_reset_n
  • rx_sysref (for Subclass 1 only)
  • rx_dev_sync_n
  • jesd204_rx_int
  • alldev_lane_aligned
  • dev_lane_aligned
  • rx_somf

Use the rxlink_clk signal as the sampling clock.

TX
  • jesd204_tx_avs_rst_n
  • txlink_rst_n_reset_n
  • tx_sysref (for Subclass 1 only)
  • sync_n
  • tx_dev_sync_n
  • mdev_sync_n
  • jesd204_tx_int

Intel® recommends that you verify the JESD204B functionality by accessing the DAC SPI registers or any debug feature provided by the DAC manufacturer.

Figure 34. JESD204B Link InitializationThis is a Signal Tap image during the JESD204B link initialization. The JESD204B link has two transceiver channels (L = 2).


Description of the timing diagram:

  • a. The JESD204B link is out of reset.
  • b. The RX CDR is locked and PCS outputs valid characters to link layer.
  • c. No running disparity error and 8B/10B block within PCS successfully decodes the incoming characters.
  • d. The ADC transmits /K/ character or BC hexadecimal number to the FPGA, which starts the CGS phase.
  • e. Upon receiving 4 consecutive /K/ characters, the link layer deasserts the rx_dev_sync_n signal.
  • f. The JESD204B link transition from CGS to ILAS phase when ADC transmit /R/ or 1C hexadecimal after /K/ character.
  • g. Start of 2nd multiframe in ILAS phase. 2nd multiframe contains the JESD204B link configuration data.
  • h. Start of 3rd multiframe.
  • i. Start of 4th multiframe.
  • j. Device lanes alignment is achieved. In this example, there is only one device, the dev_lane_aligned connects to alldev_lane_aligned and both signals are asserted together.
  • k. Start of user data phase where user data is streamed through the JESD204B link.

Transport Layer

Verify the RX transport layer operation using these signals in the altera_jesd204_transport_rx_top.sv:

  • jesd204_rx_dataout
  • jesd204_rx_data_valid
  • jesd204_rx_data_ready
  • jesd204_rx_link_data_ready
  • jesd204_rx_link_error
  • rxframe_rst_n

Use the rxframe_clk signal as the sampling clock.

For normal operation, the jesd204_rx_data_valid, jesd204_rx_data_ready, and jesd204_rx_link_data_ready signals should be asserted while the jesd204_rx_link_error should be deasserted. You can view the ramp or sine wave test pattern on the jesd204_rx_dataout bus.

Figure 35. Ramp Pattern on the jesd204_rx_dataout Bus This is a Signal Tap II image during the JESD204B user data phase with ramp pattern transmitted from the ADC.


Verify the TX transport layer operation using these signals in the altera_jesd204_transport_tx_top.sv:

  • txframe_rst_n
  • jesd204_tx_datain
  • jesd204_tx_data_valid
  • jesd204_tx_data_ready
  • jesd204_tx_link_early_ready
  • jesd204_tx_link_data_valid
  • jesd204_tx_link_error

Use the txframe_clk signal as the sampling clock.

For normal operation, the jesd204_tx_data_valid, jesd204_tx_data_ready, jesd204_tx_link_early_ready, and jesd204_tx_link_data_valid signals should be asserted while the jesd204_tx_link_error should be deasserted. You can verify the user data arrangement (shown in the data mapping tables in the TX Path Data Remapping section in the Design Examples for JESD204B IP Core User Guide) by referring to the jesd204_tx_datain bus.