[Tool] Verdi 用法(dump waveform)

1.1 Basic Usage(add in top module)

  • Specifying fsdb file : $fsdbDumpfile(file_name,file_size(MB))
  • Dumping fsdb information : $fsdbDumpvars(depth, instance, options)
  • Depth :
    • 0 : all signals in all scopes.
    • 1 : all signals in current scope.
    • 2 : all signals in the current scope and all scopes one level below.
    • n : all signals in the current scope and all scopes n-1 levels below.
  • Options (Optional) :
OptionsDescription
+allDump all signals including memory, MDA, packed array, structure, union, power-related, and packed structure
+mdaDump all memory and MDA signals
+strengthEnable strength dumping
+structDump all structs (default on)
+powerDump power-related signals (default on)
otherscheck on verdi -doc //$VERDI_HOME/doc/linking_dumping.pdf
  • vcs compile option : -debug_pp is needed
    • Recommend : VCS and Verdi should align at least same version
$fsdbDumpfile("test.fsdb",50)
$fsdbDumpvars(0, chip_top,"+power","+struct", "+mda");

1.2 Q: How to split fsdb file?

  • Split by FSDB Size
    • $fsdbAutoSwitchDumpfile(File_size(MB), File_name, number_of_file)
    • Recommend File Size: RTL not over 2G, netlist not over 5G:
initial begin
    $fsdbDumpvars(0, dut);
    $fsdbAutoSwitchDumpfile(2000, XXX, 20);
en
  • Split by Time Period
integer i;
initial begin
    $fsdbDumpvars(0, dut);
    i=0;
    forever begin
        $fsdbSwitchDumpfile($sformatf("XXX_%0d", i));
        #time period;
        i = i+1;
    end
end

1.3 Q: How to dump a certain time interval only?

  • Use $fsdbDumpon, $fsdbDumpoff to specify time interval
initial begin
    $fsdbDumpvars(0, dut, "+fsdbfile+interval.fsdb");
    #40 $fsdbDumpoff;
    #40 $fsdbDumpon;
    #40 $fsdbDumpoff;
    #40 $finish;
end

1.4 Q: How to not dump a certain instance?

  • Use $fsdbSupress(instance) to specify certain instance
  • NOTE : $fsdbSuppress must be specified before $fsdbDumpvars
initial begin
    $fsdbSuppress(dut.inst_a, dut.inst_b);
    $fsdbDumpvars(0, dut);
end

1.5 Q: How to dump assertion?

  • Use $fsdbDumpSVA(depth, instance)
  • vcs compile option : -sverilog -debug_pp is needed
  • NOTE: After Verdi 1703SP1-1, please add runtime option "+fsdb+sva_success"
initial begin
    $fsdbDumpSVA(0, dut);
end

1.6 Q: How to dump memory arrays?

  • Use $fsdbDumpMDA(depth, instance)
  • vcs compile option : -debug_pp, +memcbk  is needed
initial begin
    $fsdbDumpMDA(1, dut.i_pram);
end

1.7 Q: How to dump lib cells signal to fsdb?

  • vcs compile option : -debug_acc -debug_region=cell+lib is needed
Example: vcs -debug_acc -debug_region=cell+lib <other options>

1.8 Q: How to dump glitch information?

  • By simulation command
    • Before Verdi/1509, simv +fsdb+sequential +fsdb+glitch=0 +fsdb+region
    • After Verdi/1509, simv +fsdb+delta
%> simv +fsdb+sequential +fsdb+glitch=0 +fsdb+region
  • By Environment variable
%> setenv NOVAS_FSDB_ENV_DUMP_SEQ_NUM 1
%> setenv NOVAS_FSDB_ENV_MAX_GLITCH_NUM 0
%> setenv FSDB_REGION
then re-run simulation

1.9 Q: How to dump force information?

  • By simulation command
    • simv +fsdb+force
%> simv +fsdb+force
  • By Environment variable
%> setenv FSDB_FORCE
then re-run simulation
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值