DPI Use in Example Designs - 2022.2 English

Vitis Networking P4 User Guide (UG1308)

Document ID
2022.2 English

Each of the example designs (except Echo) provided with Vitis Networking P4 contains one or more tables. In the generated Vitis Networking P4 IP, these tables are implemented using the CAM hardware that has been described previously in Target Architecture. Programming these tables with a set of key-response entries is required to exercise these example designs. The CAMs can only be programmed by using their control plane software drivers written in C. The testbench provided with the example designs makes use of a SystemVerilog direct programming interface (DPI) library, which allows those control plane software drivers to be used from inside a SystemVerilog simulation environment.DPI Simulation describes in detail how DPI is used within the testbench provided with the example designs.