As shown in the figure above, this tutorial contains three AI Engine kernels: Interpolator, Polar_clip, and Classifier. Start by creating the AIE component that will contain the graph and kernels. Run the following steps:
From the main menu select File > New Component > AI Engine
This opens the Create AI Engine Component wizard on the Name and Location page.
Enter the
Component nameas aie_component (default), enter theComponent locationas the workspace (default), and click Next.
This opens the Add Source Files page.
Select
Import Sources > Add Folderand navigate to<tutorial_path>/09-debug-walkthrough/cmd_src/aieand click OK. Repeat the process to add thedata/directory also.Under
Select top-level fileconfirm thatgraph.cpphas been selected and click Next.
The tool automatically selects the top-level graph from imported files. You just need to make sure it has chosen correctly. Clicking Next opens the Select Part page.
Select the
xilinx_vck190_base_20XXX0_1platform and click Next to open the Summary page.Review the Summary page and click Finish to create the defined AI Engine component.
This results in the aie_component vitis-comp.json file being opened. This is the file associated with the component in the Vitis unified IDE as shown in the following image. The tab at the top will display vitis-comp.json, but it is the aie_component you just created.
Select the
aiecompiler.cfglink and open the config file. It containsincludestatements for the addedaiesource code folder.Add a new line
include=<path to/WorkspaceDirectory>/aie/kernels.
The [aie] section contains configuration commands such as the xchess statement. Refer to v++ Mode AI Engine for more information on these configuration commands.
In the Vitis Components explorer, expand the aie_component and examine the included sub-folders: Settings, Includes, Sources… Notice the aie folder you imported into the Sources folder.