Enable Waveform Debugging with the Vitis Compiler Command - 2024.2 English - UG1700

Data Center Acceleration Using Vitis User Guide (UG1700)

Document ID
UG1700
Release Date
2025-01-15
Version
2024.2 English
The waveform debugging process can be enabled through the v++ command using the following steps:
  1. Compile and Link the host code and System project for debugging by adding the -g option to the g++ command line as described in Building and Running the System.
  2. 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: Use debug_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 a hw_emu hang issue, because you can interrupt the simulation process in the simulator and observe the waveform up to that time.
  3. 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) in the Vitis Reference Guide (UG1702).