Add the Hardware Kernel (.xo) - 2022.2 English

Vitis Tutorials: Hardware Acceleration (XD099)

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

You must add the recently generated user-managed RTL kernel (Vadd_A_B.xo) and host code (user-host.cpp) into the project.

  1. Select the kernelTest_kernels project in the Explorer view, and right-click and select the Import Sources command. Browse to the rtl_kernel/rtl_kernel.srcs/sources_1/imports/xo folder and select the Vadd_A_B.xo kernel file to add to the project as shown below. Click Finish to close the dialog box and add the kernel.

Add RTL Kernel

  1. Select and open the kernelTest_kernels.prj project file in the Hardware Kernel Project Settings view, and select the Add Hardware Function command. Select the Vadd_A_B.xo folder and select the Vadd_A_B kernel as shown in the image below. Click OK to close the dialog box and add the hardware function to the project.

Add RTL Kernel

  1. Select the kernelTest project in the Explorer view, and right-click and select the Import Sources command. Browse to the src/host folder and select the user-managed.cpp file to add to the project as shown below. Click Finish to close the dialog box and add the host code.

TIP: There is also an xrt-host file that can be used to connect to an ap_ctrl_hs version of the RTL kernel.

Add RTL Kernel