Step 1: Modify the Graph for Use in Hardware Build - 2023.2 English

Vitis Tutorials: AI Engine (XD100)

Document ID
Release Date
2023.2 English

You now have a working application to run on the AI Engine array. What you need now is to modify the AI Engine graph for use in hardware, and connect the AI Engine array to the PL using the Vitis compiler (V++).

The main function in project.cpp will not be used in the hardware run, so you need to add a switch (#if defined(...)) so that main will not be taken into account for the hardware build.

#if defined(__AIESIM__) || defined(__X86SIM__) || defined(__ADF_FRONTEND__)

int main(void) {
  return 0;