Triple-Speed Ethernet IP Design Example User Guide: Agilex™ 3 and Agilex™ 5 FPGAs and SoCs

ID 813899
Date 8/04/2025
Public
Document Table of Contents

3.1.3. Simulating the Design Example Testbench

Figure 21. Procedure to Simulate Design Example Testbench

Follow these steps to simulate the testbench:

  1. Navigate to the testbench simulation directory: <design_example_dir>/example_testbench/<Simulator> .
  2. Run the simulation script for the supported simulator of your choice. The script compiles and runs the testbench in the simulator. Refer to the table Steps to Simulate the Testbench.
    Table 18.  Steps to Simulate the Testbench
    Simulator Working Directory Command
    ModelSim* <Example Design>/example_testbench/mentor In the command line, type vsim -c -do run_vsim.do
    Synopsys* VCS* MX <Example Design>/example_testbench/synopsys/vcsmx In the command line, type sh tb_run.sh
    Xcelium* <Example Design>/example_testbench/xcelium In the command line, type sh tb_run.sh
    Riviera-PRO* <Example Design>/example_testbench/aldec In the command line, type vsim -c -do tb_run.tcl
  3. Analyze the results. The successful testbench sends five packets, receives the same number of packets, and displays the following message:
    Simulation Passed