AXI Traffic Generators - 2022.1 English

Versal ACAP AI Engine Programming Environment User Guide (UG1076)

Document ID
Release Date
2022.1 English

The AXI Traffic generators are provided as XO files which need to be linked to your simulation platform using the Vitis compiler (v++).  These XO files are called sim_ipc_axis_master_XY.xo and sim_ipc_axis_slave_ZW.xo where XY and ZW correspond to the number of bits in the PLIO interface. For example sim_ipc_axis_master_128.xo provides an AXI4-Stream master data bus that is 128 bits wide. A wider interface allows the PL to achieve the same throughput at a lower clock frequency and allows the AI Engine array to maximize its memory bandwidth. However, the PLIO interface tiles are each 64 bits wide and they are a limited resource. Using one 64-bit PLIO interface at twice the clock speed provides an equivalent bandwidth to a 128-bit PLIO while using only one PLIO tile. This requires the PL to run at twice the clock speed and the optimal choice will vary from application to application.

Two steps are required to use the traffic generators with the Vitis compiler. First, make the connections between the sim_ipc modules and their corresponding AXI4-Stream ports on the AI Engine array. This is typically done in the system.cfg file. Here is an example:

The syntax for connecting the sim_ipc_axis XO files is as follows.
nk=sim_ipc_axis_master:<Number Of Masters>:<inst_name_1>.<inst_name_2>.<...>
nk=sim_ipc_axis_slave:<Number Of Slaves>:<inst_name_1>.<inst_name_2>.<...>
The sim_ipc_axis_master/slave specifies the type of XO file and the instance name should be meaningful to your application.
Next, add the XO files to the Vitis link command. Note the sim_ipc XO files can only be used with target hw_emu.
v++ -l --platform <platform.xpfm> sim_ipc_axis_master_128.xo sim_ipc_axis_slave_128.xo libadf.a -target hw_emu --config system.cfg

For additional information on how to use XO files with the Vitis compiler see

Note: To use multiple AXI4-Stream masters at the same time change the Number of Masters field in the system.cfg file from 1 to as many as needed (up to 8).