I usually use my vcs by source /nfs/tools/sourceme/vcs2020_verdi.bashrc, and I can also set environment variable by: export VCS_HOME=/nfs/tools/softwares/synopsys/installed_new/vcs=mx/R-2020.12-sp1 export VERDI_HOME=/nfs/tools/softwares/synopsys/installed_new/verdi/R-2020.12-SP1 export PATH=$VERDI_HOME/bin:$VCS_HOME/bin:$PATH If I want to view the waveform generated by c++ code by verdi, what commands should I use? is it possible to view c++ generated waveform by verdi?
时间: 2023-09-20 12:09:18 浏览: 169
Verdi is primarily used for debugging and viewing waveforms in hardware description languages (such as SystemVerilog and VHDL) rather than for C++ code. It is not designed to directly view waveforms generated by C++ code.
However, you can use other tools specifically designed for visualizing waveforms generated by C++ code. One popular tool for this purpose is GTKWave, which is commonly used for viewing waveforms in various languages, including C++.
To view the waveform generated by your C++ code using GTKWave, you need to generate a waveform file in a format that GTKWave can read, such as VCD (Value Change Dump) or FST (Fast Signal Trace). There are libraries available for C++ that can generate these waveform files.
Once you have the waveform file in the appropriate format, you can open it using GTKWave:
```shell
gtkwave waveform.vcd
```
This will open the waveform viewer, and you can analyze and view the waveforms.
Please note that generating the waveform file from your C++ code may require additional steps or libraries, depending on the specific tools and libraries you are using for waveform generation in C++.
阅读全文