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

Vivado Design Suite Tutorial: Model-Based DSP Design using Add-on for MATLAB and Simulink (UG1498)

Document ID
Release Date
2020.2 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_Tutorial/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 theAI 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 to display the following block parameters GUI.

  5. Update the block parameters as follows.
    Graph application file(*.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 compilation status 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. 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.

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