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) {
mygraph.init();
mygraph.run(4);
mygraph.end();
return 0;
}
#endif