Create a new application by clicking File → New Component → Application.
Set the name for the application to
A-to-Z_appand click Next.Select AIE_A-to-Z_pfm_vek385 as the platform and click Next.
Select the A78_0 processor domain (
standalone_psv_cortexa78_0), and click Next and then Finish.Right-click the
srcfolder under the A-to-Z_app project, and click Import → Files.Import the
baremetal_metadata_compile.cppfile from the output of the AI Engine application project (simple_application/build/hw/Work/baremetal_metadata_compile.cpp).Import
main.cppfrom thesrcfolder from the git repository.Go through the
main.cppfile. You can see that the code is initializing the input data and the memory space for the output data. One thing to note is the use of the.run()API to control the AI Engine.printf("Running Graph for 4 iterations\n"); gr.run(4);
There are two options to enable an AI Engine graph from a system:
Enable the graph in the PDI. This means that the graph will be started during BOOT and will run forever.
Enable the AI Engine graph from the PS program using the
<graph>.init()and<graph>.run()APIs. This is what you are using in this case.
Modify the Linker Script to increase the heap size for AIE library.
In the Project Explorer, expand the A-to-z_app component.
In the src directory, double-click
lscript.ldto open the linker script for this project.In the linker script modify the Heap size to
0x100000(1MB).
Build the A72 PS component (
A-to-Z_app).
Note: The creation of the Vitis fixed platform and the ps application can be automated running “make ps_app”