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 name
as aie_component (default), enter theComponent location
as the workspace (default), and click Next.This opens the Add Source Files page.
Select
Import Sources > Add Folder
and navigate to<tutorial_path>/09-debug-walkthrough/cmd_src/aie
and click OK. Repeat the process to add thedata/
directory also.Under
Select top-level file
confirm thatgraph.cpp
has 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_1
platform 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 displayvitis-comp.json
, but it is the aie_component you just created.Select the
aiecompiler.cfg
link and open the config file. It containsinclude
statements for the addedaie
source 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, and so forth. Notice the aie
folder you imported into the Sources folder.