22.214.171.124. Editing Design Example Top-Level HDL for Synchronized ADC to Intel® Agilex™ Dual Link
- Open the top-level HDL file (intel_j204c_ed_rx.sv) in a text editor.
- Modify the LINK system parameter to reflect the number of links in your design.
- Insert the newly exported ports from the Platform Designer at the Platform Designer instantiation.
- To make the connections for the Platform Designer ports:
- For RX link reset and frame reset, distribute the rx_rst 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 synchronizer (j204c_pulse_CDC) instantiations generation loop with rx_rst.
- Change the dimension of the following wires. This example is shown in Verilog HDL:
- wire [LINK-1:0] j204c_rx_dev_lane_align;
- wire [LINK-1:0] j204c_rx_dev_emblock_align;
- Add an index to the following wires at the Platform Designer ports of the JESD204C RX IP. Use index  for link 0, index  for link 1, and so forth. Example:
- 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;
- 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;
- Create the following wires:
- Connect the rx_pma_ready_in of each link to the input of an AND gate. Connect the output of the AND gate to rx_pma_ready_in_all.
// Example in Verilog assign rx_pma_ready_in_all = &rx_pma_ready_in;
- Connect the rx_xcvr_ready_in of each link to the input of an AND gate. Connect the output of the AND gate to rx_xcvr_ready_in_all.
// Example in Verilog assign rx_xcvr_ready_in_all = &rx_xcvr_ready_in;
- Replace the rx_pma_ready_in connection at the rst_seq_1_reset2_dsrt_qual_reset2_dsrt_qual port of the Platform Designer system with the output of the AND gate of rx_pma_ready_in_all.
- Replace the rx_xcvr_ready_in connection at the rst_seq_1_reset3_dsrt_qual_reset3_dsrt_qual port of the Platform Designer system with the output of the AND gate of rx_xcvr_ready_in_all.
- For the rest of the ports, increase the index wires from 0 to 1, and use subsequent numbers for the subsequent links.
Example: The rx_avst_data wire should be connected to link 1 IP.
- 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;
- 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 purpose only.
// Example in Verilog // output wire sysref_out, // assign sysref_out = fpga_sysref;
- Save the top-level HDL file changes.
- 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 Intel® Quartus® Prime settings file (intel_j204c_ed_rx.qsf).
- 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
Did you find the information on this page useful?