In this example, HLS kernels are used which bridge between memory and the AXI4-Stream interface to input and output data from memory.
The
mm2skernel reads data from memory and inputs it to the AI Engine array.The
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_vek385 platform you just created.
If you have skipped step 1, select the VEK385 base platform (xilinx_vek385_base_202510_1) .
Click Next
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
Click Finish
In the flow navigator, click on Run under C SYNTHESIS.
In the flow navigator, click on Run under PACKAGE.
Repeat steps 1 to 10 to create another HLS component called s2mm with the s2mm.cpp source file