Step 2: Create an AI Engine Component - Step 2: Create an AI Engine Component - 2025.2 English - XD100

Vitis Tutorials: AI Engine Development (XD100)

Document ID
XD100
Release Date
2026-03-27
Version
2025.2 English

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:

  1. From the main menu select File > New Component > AI Engine

This opens the Create AI Engine Component wizard on the Name and Location page.

  1. Enter the Component name as aie_component (default), enter the Component location as the workspace (default), and click Next.

This opens the Add Source Files page.

  1. Select Import Sources > Add Folder and navigate to <tutorial_path>/09-debug-walkthrough/cmd_src/aie and click OK. Repeat the process to add the data/ directory.

  2. Under Select top-level file, confirm that graph.cpp is 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.

  1. Select the xilinx_vck190_base_20XXX0_1 platform and click Next to open the Summary page.

  2. 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.

System Diagram

  1. Select the aiecompiler.cfg link and open the config file. It contains include statements for the added aie source code folder.

  2. 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.