In this example, HLS kernels are used which bridge between memory and the AXI4-Stream interface to input and output data from memory.
mm2skernel reads data from memory and inputs it to the AI Engine array.
s2mmkernel receives output data from the AI Engine array and writes it to memory.
Open the Vitis IDE and select the same workspace as the AI Engine application project. Right-click the simple_application_system project and select Add Hw Kernel Project.
Name the project hw-kernels and click Finish to create the project.
Right-click the hw-kernels project and click import sources. Browse into the
srcfolder and select the
In the hw-kernels.prj page, click on the lightning icon (Add HW function) icon and select both functions (
s2mm) as hardware functions.