I need to extract some values from SystemVerilog data structures after I run the simulation. I would like to do this without changing SystemVerilog code.
Below is an example of TCL script I am using in Synopsys DVE environment to add certain SystemVerilog signals to DVE waveforms. I need to write the same thing but instead of adding signlas to the waveforms I need to use TCL “puts” (that work like in C printf or Verilog $display) to print the signal values:
gui_open_db -file ./vcdplus.vpd
gui_open_window Wave
gui_sg_create abc
gui_list_add_group -id Wave.1 { abc }
gui_sg_addsignal -group abc {
top.dut_inst.xyz.mno
{top.dut_inst.xyz.pqr[3][7:0]}
}
gui_zoom -window Wave.1 -full