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.
In the Vitis Unified IDE click File > New Component > HLS
Name the first component mm2s and click Next.
In the Configuration File page, keep the default settings (Empty File) and click Next
In the Add Source Files page, add the file mm2s.cpp from the src folder
In the same page, set the mm2s function as the top function (click Browse and select mm2s)
In the Select Platform Page:
If you have created the platform following step 1, select the base_pfm_vck190 platform you just created.
If you have skipped step 1, select the VCK190 base platform (xilinx_vck190_base_002320_1) which is part of the Vitis installation.
In the Edit Settings page select Vitis Kernel Flow Target under flow_target and Generate a Vitis XO under package.output_format and click Next
Repeat steps 1 to 8 to create another HLS component called s2mm with the s2mm.cpp source file