As discussed in earlier topics, the recommended coding style for the host program in the Vitis core development kit includes the following points:
- In the Vitis core development
kit, one or more kernels are separately compiled/linked to build the .xclbin file. The
device.load_xclbin(binaryFile)command is used to load the kernel binary. - Create
xrt::kernelobjects from the loaded device binary, and associate buffer objects (xrt::bo) with the memory banks assigned to kernel arguments. - Transfer data back and forth from the host application to the kernel
using
xrt::bo::synccommands and buffer reads and write commands. - Execute the kernel using an
xrt::runobject to start the kernel and wait for kernel execution. - Additionally, you can add error checking after XRT API calls for debugging purpose, if required.