After compiling AI Engine source code with a
hw target, you can view the generated microcode in
the Vitis Unified IDE. The microcode is in the <component>/build/<target>/Work/aie/<tile>/Release
directory.
Open the AI Engine microcode by right-clicking the component in the Component Explorer view and selecting Microcode. This displays a Microcode core selector. You can choose the microcode scheduled for execution on a specific AI Engine tile.
Figure 1. Select Core to View Microcode
The Microcode view has the following features:
- Filter instruction lines by enabling/disabling Functions, Loop Nesting, User Defined or Other on the top filter bar
- Cross-probe between the instruction and kernel source code by clicking the lines with blue dots next to the line numbers
- Examine the number of cycles specific lines of kernel code takes and see where you can make optimizations
- Quickly navigate through the microcode using the global view displayed on the right
- Right-click menu provides access to additional commands
Figure 2. Microcode View