-t hw_emu) will generate RTL from the accelerator sources
and run RTL simulation along with the application layer code. To view simulation
waveforms the user can enable the following switch in the xrt.ini file:
The picture above shows the waveforms viewer in the Vivado XSim interface. By default, VSC will create
grouped waveform objects corresponding to the
compute() interface. The kernel code must have been compiled with -g flag,
otherwise the grouping will error out in Vivado
XSim. In this design, there are four instances (NCU=4) of the accelerator enumerated as
vadd*_CU_3. Each of these groups further contains the
signals that correspond to
kernel_execution is also auto-created and
ap_done signals for each CU instance.
compute() call is cycle-accurate.