The AIE simulation is a cycle-approximate simulation. This means you can use it to estimate the latency between the input and output ports of the AI Engine subsystem. Vitis Model Composer can display this latency. To achieve this, run AIE simulation from the Analyze tab of the Model Composer Hub block with Collect trace data for Vitis Analyzer enabled. Then, do the following to select AI Engine subsystem ports and calculate the latency:
- On the Simulink canvas, select one input to the AI Engine subsystem and one output from the
AI Engine subsystem.Note: To select multiple signals on the Simulink canvas, hold down the Shift button while selecting the signals.
- Right-click on the selected signals and select (AMD) AIE Compute Latency.
In the image above, pfa1008 is an AI Engine subsystem.
If AIE simulation has been previously run on this design, Vitis Model Composer displays the first sample latency, last sample latency, and average latency between the two selected ports.
Latency can fluctuate over the course of a simulation, but it generally converges to a stable value over time.