There is a Makefile included in the 01-rtl_kernel_workflow/reference-files
folder. You can use this file to make the following targets:
make run TARGET=<hw_emu | hw> HOST=user
The Makefile will:
Build a Vivado project to package the RTL design IP, and package a user-managed kernel (
.xo
)Use the Vitis compiler (
v++
) to link the kernel to the target platform and generate the `.xlcbin’ fileCompile the XRT native API host application
./src/host/user-host.cpp
If necessary generate the emulation platform and setup the emulation environment
Run the application and kernel
TIP: You can use the Makefile
-n
option to generate the command lines without running the commands:make run TARGET=hw_emu HOST=user -n