Compile an Example Design and Run a Simulation - 2022.2 English

Vitis Networking P4 Getting Started Guide (UG1373)

Document ID
UG1373
Version
2022.2 English
Revision
  1. Double-click Vitis Networking P4 to instantiate the IP (as described in previous section).
  2. Click Browse and navigate to the appropriate directory to select a P4 file, for example:

    <install_area>/Vitis_Networking_P4/<version>/examples/five_tuple/fiveTuple.p4

    See the Vitis Networking P4 User Guide (UG1308), Chapter 3, for descriptions of the various tabs in the GUI.

  3. In the Generate Output Products window, click Skip.

  4. Right-click vitis_net_p4_0 in the Sources window, click Open IP Example Design, then click OK in the next window.

  5. In the new Example Design Vivado project, click Run Simulation under Simulation in the panel on the left. This launches the XSim simulator, the default simulator used in Vivado Design Suite. See the Vitis Networking P4 User Guide (UG1308), Chapter 3 for information on how to change the target simulator.
  6. The simulation is run for a maximum of 10 us.
  7. Review operation of the system in waveforms. Output packets are compared against the behavioral model if desired.