Vitis Unified IDE provides a wizard to generate a single kernel graph prototype code. After an AI Engine component is created, open the AI Engine Component Settings on the AI Engine component and click on Generate AIE Prototype Code:
Figure 1. Generate AIE Prototype Code
In the Generate AIE Prototype Code wizard, you can specify the graph and kernel names, choose the input and output interface and data types, in addition to selecting other additional options.
Figure 2. Generate AIE Prototype Code Options
Here are the list of the options:
- Graph Name: name for the generated graph
- Kernel Name: name for the generated kernel
-
Kernel Input
Ports:
- NAME: the input interface port name
- TYPE: the input interface port type
- DATA TYPE: the input interface port data type
- DIMENSION: the input interface port dimension which is the size of the port
- Kernel Output Port:
- NAME: the output interface port name
- TYPE: the output interface port type
- DATA TYPE: the output interface port data type
- DIMENSION: the output interface port dimension which is the size of the port
- LUTs: Option to add a look up table, its data type and size. Refer to Loopup Tables for the concepts and usage of LUT.
- An option to Generate Graph code: If checked, the graph code is generated. This graph can be instantiated by other top-level graphs. If not checked, no graph code is generated.
- An option to Generate Top Level
graph and Simulation
code: If checked, the top-level graph is generated. The
top-level graph contain instances of
input_plio
, andoutput_plio
.graph.cpp
code is also generated. The generated top-level graph can be compiled directly. If not checked, you need to add top-level graph which includes the kernel.