Step 1: Build an AI Engine Design using Graph Code - 2021.1 English

Vitis Model Composer Tutorial: (UG1498)

Document ID
UG1498
Release Date
2021-07-16
Version
2021.1 English
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.
  1. In the MATLABĀ® Current Folder, navigate to AIEngine_Library/Lab2/
  2. 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.
  3. 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 typing AIE Graph.

  4. 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).
  5. 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
  6. 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.



  7. Observe the Function tab in the AIE graph block parameters as shown.

  8. Click Apply and connect the AIE Graph block as shown in the following figure.