This tutorial contains three AI Engine kernels: Interpolator, Polar_clip, and Classifier. Create the AI Engine (AIE) component that contains 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.Under
Select top-level file, confirm thatgraph.cppis selected and click Next.
The tool automatically selects the top-level graph from imported files. 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. This file is associated with the component in the Vitis unified IDE as shown in the following figure. The tab at the top displays vitis-comp.json for 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, and Sources. Notice the aie folder you imported into the Sources folder.