In this step you will import graph code (Generated using the design in Lab 1) using the
AIE Graph block available in the Model Composer AI Engine library and
build a design.
- In the MATLABĀ® Current Folder, navigate to AIEngine_Tutorial/Lab2/
- Double-click import_graph.slx to open the model. This is a model with a source and a sink and you will fill the design in-between.
- From the Library Browser, select the AIE Graph block from theAI Engine library. Drag the block into the
import_graph.slx file.
You can also click on the canvas and start typingAIE Graph
.
- Double-click the block to display the following block parameters GUI.
- Update the block parameters as follows.
- Graph application file(*.cpp)
- aie_system.cpp
- Graph search paths
- Either browse to locate the kernels or enter
{'./kernels/src', './kernels/inc', './include'}
as the parameter. - Preprocessor options
- Leave empty
- Click Import. You will see the compilation status window
as shown in the following figure. Once done, (after about 15 seconds), the AIE
graph block GUI interface will get updated.
- Observe the Function tab in the AIE graph block parameters as shown.
- Update the
Graph Port Name
parameter as indicated in the following figure.Note: The tool does not parse the graph header file and it does not have knowledge about the ports connectivity. You should provide the Graph port names.
In this case, from the aie_system.h file, you can see the class definition as shown. Update the parameters in the GUI accordingly.
- Click Apply and connect the AIE Graph block as shown in
the following figure.