At this point, the Vivado Design Suite opens a project automatically with the generated RTL code corresponding to the default A = A + 1
function. You can navigate to review the source files or even run RTL simulation. However, for this tutorial, you will not be modifying the default RTL Kernel and will only package into an object file (.xo
).
In Flow Navigator, click Generate RTL Kernel.
In the Generate RTL Kernel dialog box, select the Sources-only packaging option.
For Software Emulation Sources, you can add a C++ model of the RTL kernel, which is used for Software Emulation.
The C++ model must be coded by the design engineer. Typically, there is no C++ model available, and Hardware Emulation is used to test the design. Because the RTL Wizard creates a C++ model of the vadd design, the steps to add this file are also provided below.
Click the Browse command (
...
).Double-click the
imports
directory.Select the
rtl_kernel_wizard_0_cmodel.cpp
file and click OK.To generate the RTL kernel, click OK.
After the RTL kernel has been generated successfully, click Yes to exit the Vivado Design Suite, and return to the Vitis IDE.
A message window displays some information related to the generated RTL kernel. Review it and click OK.
Exit the Vitis IDE.
At this point, you have packaged the RTL kernel into the following object file, rtl_kernel_wizard_0.xo
found in the following directory.
./02-mixing-c-rtl-kernels/workspace/rtl_project_kernels/src/vitis_rtl_kernel/rtl_kernel_wizard_0