fsdb系统任务
$fsdbDumpfile(“file_name.fsdb”);
$fsdbAutoSwitchDumpfile(1000,"wave.fsdb",10,"fsdb_dump.log")
$fsdbDumpvars(0,"top.dut")
$fsdbDumpFlush
$fsdbDumpon
$fsdbDumpoff
$fsdbDumpFinish
$fsdbDumpvars 有三个参数:depth,scope和parameter。
depth:用来设置hierarchy tree层级结构的最大深度
scope:用来设置从哪个scope开始
parameter:用来控制某些特殊功能的打开或者关闭
使用方法:$fsdbDumpvars(depth, scope, parameter)
这三个参数是位置无关的,所以也可以这样写$fsdbDumpvars(depth, parameter,scope)
下面重点记录下各个parameter
"+mda"
Dump all memory and MDA signals in all scopes specified in fsdbDumpvars option or the entire design if no scope is specified. This option is covered by the "+all" option and is effective for SystemVerilog's MDAs only. For VCS users, the VCS option "+memcbk" may be needed while compiling the desing
"+packedmda"
Only dump the packed signals in the design (without array and memory types).
For example:
Table for packedmda and mda
"+functions"
Set to enable dumping the signals in function and task
"+Reg_Only"
Only reg type signals are dumped
"+packedmda"
dumps the packed signals in the desing. see example in table above
"+all"
dumps all
"+struct"
Dumps all structs in all scopes specified in fsdbDumpvars or in the entire design if no scope is specified