1. Compiling HLS Kernels Using v++ - 2022.2 English

Vitis Tutorials: AI Engine (XD100)

Document ID
XD100
Release Date
2022-12-01
Version
2022.2 English

As done for sw_emu target in Section-3, compile the mm2s, and s2mm PL HLS kernels using the v++ compiler command - which takes in an HLS kernel source and produces an .xo file.

To compile the kernels, run the following command:

make kernels TARGET=hw_emu

or

v++ -c --platform $PLATFORM_REPO_PATHS/xilinx_vck190_base_202220_1/xilinx_vck190_base_202220_1.xpfm --save-temps -g -k s2mm pl_kernels/s2mm.cpp -o s2mm.xo
v++ -c --platform $PLATFORM_REPO_PATHS/xilinx_vck190_base_202220_1/xilinx_vck190_base_202220_1.xpfm --save-temps -g -k mm2s pl_kernels/mm2s.cpp -o mm2s.xo

To get more details about several options of v++ command line, refer to the Compiling HLS Kernels Using V++ topic in Section-3 The only extra switch that is added is -g, which is required to capture waveform data.