The waveform debugging process can be
enabled through the
v++
command using the following
steps:- Compile and Link the host code and System project for debugging
by adding the
-g
option to theg++
command line as described in Building and Running the System. - Create an xrt.ini file in the same
directory as the host executable, as described in xrt.ini File, with the following contents:
[Emulation] debug_mode=batch
Tip: Usedebug_mode=gui
to run the Vivado simulator in GUI mode and enable displaying the waveform for interactive use, as described in Running Live Waveform Mode. This is especially useful when debugging ahw_emu
hang issue, because you can interrupt the simulation process in the simulator and observe the waveform up to that time. -
Launch the hardware emulation using the launch_hw_emu.sh script that is generated during the
v++ --package
process.This script will launch the Vivado simulator and enable batch simulation to capture the simulation waveform database. The waveform database is written to a .wdb that can be opened in the Analysis view of the Vitis unified IDE as described in Working with the Analysis View (Vitis Analyzer).