The steps to run the FiveTuple Example Design using the Vivado Simulator are as follows:
- Open a Vivado project.
- Instantiate the Vitis Networking P4 IP: Click IP Catalog and double-click Vitis Networking P4.
- Select a P4 file from the FiveTuple directory <Vivado_install_area>/data/ip/xilinx/vitis_net_p4_v1_0/example_design/examples/five_tuple
- Right-click vitis_net_p4_0 in the Sources window and click Open IP Example Design.
- In the new Example Design Vivado project, click Run Simulation under Simulation in the panel on the left. This launches XSim simulator, the default simulator used in Vivado Design Suite.
- The simulation is run for a maximum of 10 us.
The Echo, FiveTuple_tinycam, Forward, Forward_tinycam, Calculator, and Advanced Calculator example designs can be simulated in a similar fashion.
Note: To run the above example design simulation
using Questa, Xcelium or VCS simulator, the following two steps should be completed
between steps 4 and 5:
- In the new Example Design Vivado project, change the target simulator: Click
Settings under PROJECT MANAGER
in the panel on the left, select Simulation under Project Settings, and select the target simulator you
want to use, as shown in the following figure. Figure 1. Settings Screen
- Verify that the compiled library location is set correctly to point to the correct pre-compiled simulation libraries. See Vivado Design Suite User Guide: Logic Simulation (UG900) for instructions on how to compile simulation libraries.