GTS Transceiver PHY User Guide

ID 817660
Date 4/01/2024
Public
Document Table of Contents

6.4. Simulating the GTS PMA/FEC Direct PHY Intel FPGA IP Example Design Testbench

Follow these steps to simulate the testbench:
Figure 78. Steps to Simulate the Example Design
  1. At the command prompt, change to the testbench simulation directory <example_design/testbench>.
    cd <directphy_example_design>/example_design/testbench
  2. Run the simulation using the supported simulators by executing the simulation script file. To simulate with VCS* , change to the example_design/testbench directory and the launch the simulation using the shell script:
    sh run_vcs.sh
    To run the simulation in QuestaSim* , run the following command:
    vsim -c -do run_vsim.tcl
    To run the simulation in Xcelium* , run the following command:
    sh run_xcelium.sh
    Note: Currently the VCS* , QuestaSim* , and Xcelium* simulators are supported
  3. The following steps show the simulation testbench flow for the example design:
    1. Assert resets i_tx_reset and i_rx_reset to reset the IP.
    2. Wait until resets are acknowledged, when o_tx_reset_ack and o_rx_reset_ack go high.
    3. Deassert the resets, i_tx_reset and i_rx_reset. Monitor o_tx_ready bit is set to 1, indicating TX path is ready.
    4. Monitor o_rx_ready bit is set to 1, indicating the RX path is ready.
    5. Monitor o_tx_pll_locked bit is set to 1, indicating that the TX PLL is locked to reference clock within the PPM threshold status signal.
    6. Monitor o_rx_is_lockedtoref bit is set to 1, indicating the CDR is frequency locked to reference clock within the PPM threshold.
    7. Monitor o_rx_is_lockedtodata bit is set to 1, indicating indicates that the CDR is in locked-to-data mode.
    8. Monitor tx_clkout_freq_valid bit is set to 1, indicating TX clock output frequency is within the upper and lower limits as expected in the definition file.
    9. Monitor rx_clkout_freq_valid bit is set to 1, indicating RX clock output frequency is within the upper and lower limits as expected in the definition file.
    10. Monitor verifier_lock bit is set to 1, indicating that the lock to the RX data pattern after successfully predicting 16 consecutive patterns in RX data.
    11. Monitor verifier_error bit is not set to 1. If it is 1, this indicates the RX data is different than the expected result.
  4. Analyze the results, a passing testbench displays the following messages in the simulation window, Test case Passed and Simulation Passed, as shown in the following figures.
    Figure 79. Sample Results for the PMA Direct PHY Example Design Testbench
    Figure 80. Sample Results for the FEC Direct PHY Example Design Testbench