Dump SHM waveform in irun/ncsim

Below are the two ways to dump waveform in shm format.


 Method-1:  Using system tasks 

$shm_open("waves.shm");
$shm_probe("AS");

 Example: 

initial begin //{
  $shm_open("waves.shm");
  $shm_probe("AS");
end //}

Command to run:
irun -sv +access+rwc top.sv



 Method-2:  Using TCL File 

database -open waves -into waves.shm -default
probe -create -shm <scope_name> -all

 Example: 

database -open waves -into waves.shm -default
probe -create -shm top -all
run
exit

Place above code in run.tcl file.

Command to run:
irun -sv +access+rwc -input run.tcl top.sv



Related Article: