A C++ software model of the
add one example
provided in the ./imports directory. This software
model can also be modified to model the function of your kernel. When running
package_xo, this model can be included with the kernel
source files to enable software emulation for the kernel. The hardware emulation and
system builds always use the RTL description of the kernel.
In the ./exports/src directory, an example
host program is provided and is called host_example.cpp. The host program takes the binary container as an
argument to the program. The host code loads the binary as part of the
init function. The host code instantiates the kernel,
allocates the buffers, sets the kernel arguments, executes the kernel, and then collects
and checks the results for the example
add one function.
For information on using the host program and kernel code in an application, refer to Creating a Vitis IDE Project.