AN 1014: Implementing Analog-to-Digital Converter Multilink Design with Agilex™ 7 FPGA F-Tile JESD204C RX IP

ID 857717
Date 11/24/2025
Public
Document Table of Contents

1.3.2.2. Editing Design Example Top-Level HDL for Synchronized ADC to Agilex™ 7 Dual Link

The generate statement in the Verilog HDL file uses the LINK system parameter as an index variable to generate the requisite number of instances for the dual link use case.
  1. Open the top-level HDL file (jesd204c_f_ed_rx.sv) in a text editor.
  2. Modify the LINK system parameter to reflect the number of links in your design.
  3. Insert the newly exported ports from the j204c_f_rx_ss Platform Designer instantiation.
  4. To make the connections for the Platform Designer ports:
    1. For RX link reset and frame reset, distribute the rx_rst[0] wire from the reset sequencer in Platform Designer to the IPs and pattern checkers of the second and subsequent links. One way to achieve this is to hard code the index in the rx_rst[i] wire in the pattern checker and the command channel instantiations generation loop with rx_rst[0]. Refer to the following figures for the RX reset distribution.
      Figure 16. JESD204C RX IP Link Reset
      Figure 17. Pattern Checker for the Frame Reset for the Data Channel and Link Reset for the Command Channel
      Figure 18. Data Channel, and Command Channel Pattern Checker Error Flag Synchronizer Reset
      Figure 19. Sysref Synchronizer Reset
    2. Change the dimension of the following wires. This example is shown in Verilog HDL:
      1. wire [LINK-1:0] j204c_rx_dev_lane_align;
      2. wire [LINK-1:0] j204c_rx_dev_emblock_align;
    3. Add an index to the following wires at the Platform Designer ports of the JESD204C RX IP. Use index [0] for link 0, index [1] for link 1, and so forth. Example:
      1. j204c_rx_dev_lane_align[0]
      2. j204c_rx_dev_emblock_align[0]
    4. Connect the j204c_rx_dev_lane_align port of each IP to an AND gate. Distribute the output of the AND gate to the j204c_rx_alldev_lane_align port of each IP.
      // Example in Verilog
      assign j204c_rx_alldev_lane_align = &j204c_rx_dev_lane_align;
    5. Connect the j204c_rx_dev_emblock_align port of each IP to an AND gate. Distribute the output of the AND gate to the j204c_rx_alldev_emblock_align port of each IP.
      // Example in Verilog
      assign j204c_rx_alldev_emblock_align = &j204c_rx_dev_emblock_align;
    6. For the new ports, increase the index wires from 0 to 1, and use subsequent numbers for the subsequent links.
      Example: The rx_avst_data[1] wire should be connected to link 1 IP.
  5. Connect the j204c_rx_emb_lock output port of each IP to the input of an AND gate. Connect the output of the AND gate to the emb_lock_out output port of the design example. Perform a similar action for the rx_sh_lock port.
    // Example in Verilog
    assign emb_lock_out = &rx_emb_lock;
    assign sh_lock_out = &rx_sh_lock;
    
  6. For subclass 1 subsystem, comment out or delete the sysref_out port and its assignment. SYSREF should be sourced from the clock generator, which supplies the device clock to the ADC and the FPGA. The fpga_sysref signal from ED Control block is meant for debug purposes only.
    // Example in Verilog
     // output wire sysref_out,
     // assign sysref_out = fpga_sysref; 
  7. Save the top-level HDL file changes.
  8. Ensure that any additional pins that are created from the addition of links (for example, rx_serial_data pins) have proper pin assignments in the Quartus® Prime settings file (jesd204c_f_ed_rx.qsf).
  9. Because the sysref_out port is commented in the top level HDL, you must disable the assignment for this port at the Quartus Prime setting file.
    set_instance_assignment -name VIRTUAL_PIN ON -to sysref_out -disable