Syntax
$dumpfile("filename.vcd")
$dumpvar //dumps all variables in the design.
$dumpvar(1, top) //dumps all the variables in module top and below, but
not modules instantiated in top.
$dumpvar(2, top) //dumps all the variables in module top and 1 level
below.
$dumpvar(n, top) //dumps all the variables in module top and n-1 levels
below.
$dumpvar(0, top) // dumps all the variables in module top and all level
below.
$dumpon // initiates the dump.
$dumpoff // stop dumping
All the best :)
VLSI Training at CETPA