This section walks you through profiling the AI Engine as part of running the hardware emulation and calculate the throughput of the design considering the system as a whole, i.e., when the MM2S module is transferring data to the AI Engine, the AI Engine computes the output and transferrs the data to the S2MM module. Also note, in this case, the PS is controlling both the PL and AI Engine. Compare the throughput of the design with the AI Engine as a standalone module(aiesimulation results).
In the Vitis IDE, go to Flow Navigator -> [system_project] component -> Vitis -> Start Emulation.
Add the
-aie-sim-options {PROJECT_PATH}/aie_component/build/hw/aiesimulator_output/aiesim_options.txt
in the Emulator Arguments option, and click Start.Now the hardware emulation launches and starts the QEMU emulation environment. The Emulation console shows a transcript of the QEMU launch and Linux boot process.
Once the boot completes in the Vitis IDE, run the application using Run on the system project.
This runs the application and shows TEST PASSED in the output console.
Duble-click the System_Project -> HARDWARE EMULATION -> Reports -> Summary file. This opens the summary file
{PROJECT_PATH}/system_project/build/hw_emu/package/package/sim/behav_waveform/xsim
path in the Vitis Analyzer.As you observe, it carry forwards the aiesimulator options specified in
aiesimulator_output/aiesim_options
and provides the results.