- Compile the graph with
--event-traceand other appropriate flags.An example AI Engine compiler command for event tracing is as follows:
aiecompiler --verbose --pl-freq=100 --workdir=./myWork \ --event-trace=functions --num-trace-streams=1 --include="${XILINX_HLS}/include" \ --include="./" --include="./src" --include="./src/kernels" --include="./data" \ ./src/graph.cppNote: The preceding example illustrates compiling the design with theevent trace=functionsconfiguration that captures function transitions on the AI Engine. - Compile and link the design using the Vitis compiler.
After compiling the AI Engine graph application, you must build the other elements of the system as described in Integrating the Application Using the Vitis Tools Flow. With
--event-traceenabled in the libadf.a file from the AI Engine compiler, the system hardware generated by the Vitis compiler includes the compiled ELF file for the PS application, the compiled ELF files for the AI Engine processors, and the XCLBIN file for the PL. These are the elements you need to run the system on hardware.After linking to create the device binary, run the Vitis compiler
--packagestep to create the sd_card folder and files needed to boot the device, as described in Packaging. This step packages everything needed to build theBOOT.BINfile for the system. When packaging the boot files for the device, you must also specify the--package.defer_aie_runto load the AI Engine application with the ELF file, but wait to run it untilgraph.rundirects it, as described in Graph Execution Control.
The event trace build flow is as follows: