Hierarchical Path to AXI Interface - 2022.2 English

Vitis Networking P4 User Guide (UG1308)

Document ID
UG1308
Version
2022.2 English
Revision

For the DPI library to be able to trigger the axi_lite_wr and axi_lite_rd tasks, the DPI library must be provided with the location of those tasks in the hierarchy of the simulation. This is accomplished by calling a utility function named XilVitisNetP4DpiCreateEnv(). This function accepts a string parameter that specifies the hierarchical path to the module that implements these tasks. In the case of the example designs, this path is specified in:

/<proj_location>/vitis_net_p4_0_ex/vitis_net_p4_0_ex/imports/example_control.sv

as example_top.example_control