Low Latency 40G Ethernet Intel® FPGA IP Design Example User Guide: Agilex™ 5 FPGAs and SoCs
ID
813654
Date
1/23/2025
Public
1.3. Simulating the Design Example
Compile and simulate the design by running a simulation script from the command prompt.
- Change to the testbench simulation directory <design_example_dir>/example_testbench.
- 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 2. Steps to Simulate the Testbench Simulator Command Siemens* EDA QuestaSim* (Verilog/VHDL) In the command line, type vsim -do run_vsim.do.
If you prefer to simulate without bringing up the GUI, type vsim -c -do run_vsim.do.
Riviera-PRO* In the command line, type vsimsa –do run_rivierasim.do. Synopsys* VCS* MX (Verilog/VHDL) sh run_vcsmx.sh. Cadence* Xcelium* sh run_xcelium.sh. - Analyze the results. The successful testbench sends and receives 10 packets, and displays "Testbench complete."
The successful test run displays output confirming the following behavior:
- Waiting for the receive (RX) clock to settle.
- Printing PHY status.
- Sending 10 packets.
- Receiving 10 packets.
- Displaying Testbench complete.
The following sample output illustrates a successful simulation test run:
#Waiting for RX alignment #RX deskew locked #RX lane alignment locked #TX enabled #**Sending Packet 1... #**Sending Packet 2... #**Sending Packet 3... #**Sending Packet 4... #**Sending Packet 5... #**Sending Packet 6... #**Sending Packet 7... #**Received Packet 1... #**Sending Packet 8... #**Received Packet 2... #**Sending Packet 9... #**Received Packet 3... #**Sending Packet 10... #**Received Packet 4... #**Received Packet 5... #**Received Packet 6... #**Received Packet 7... #**Received Packet 8... #**Received Packet 9... #**Received Packet 10... #** #** Testbench complete. #** #*****************************************
After successful completion, you can analyze the results.