You must add the recently generated user-managed RTL kernel (Vadd_A_B.xo
) and host code (user-host.cpp
) into the project.
Select the
kernelTest_kernels
project in the Explorer view, and right-click and select the Import Sources command. Browse to thertl_kernel/rtl_kernel.srcs/sources_1/imports/xo
folder and select theVadd_A_B.xo
kernel file to add to the project as shown below. Click Finish to close the dialog box and add the kernel.
Select and open the
kernelTest_kernels.prj
project file in the Hardware Kernel Project Settings view, and select the Add Hardware Function command. Select theVadd_A_B.xo
folder and select theVadd_A_B
kernel as shown in the image below. Click OK to close the dialog box and add the hardware function to the project.
Select the
kernelTest
project in the Explorer view, and right-click and select the Import Sources command. Browse to thesrc/host
folder and select theuser-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.