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_Library/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 the AI 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 and select Source file
(*.cpp) from the Graph
file parameter as shown.
Note: Here, the *.cpp flow is used to import the graph. Alternatively, you can use the *.h flow (in which case the following steps will differ slightly). - Update the block parameters as follows:
- Graph source 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
Progress 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.
- Click Apply and connect the AIE Graph block as shown in
the following figure.