VCS/Xcelium dump fsdb

文摘   2024-09-08 08:40   上海  

1. FSDB Dump Command Supported Simulators


2.General Dumping Commands

2.1  $fsdbDumpfile
$fsdbDumpfile("FSDB_Name" | FSDB_Name_var [ ,Limit_Size | ,Limit_Size_var ]);

2.2  $fsdbDumpFinish

This command closes all FSDB files in the current simulation and stops dumping of signals. 

2.3  $fsdbDumpflush

This command forces the signal values to be flushed to the FSDB file while the simulation is running.

NOTE: The Novas object files for FSDB dumping automatically flushes the value change data to the FSDB file on the disk based on following conditions:
- The simulation stop is due to a $stop statement in the design.
- The simulation stops at a user specified breakpoint.

- The user uses Ctrl-C to break the simulation.

2.4  $fsdbDumpon

$fsdbDumpon([ "option"| option_var| ]);
2.5  $fsdbDumpoff
$fsdbDumpoff([ "option"| option_var]);

2.6  $fsdbDumpvars
$fsdbDumpvars([ depth, | "level=",depth_var, ] [instance | "instance=",instance_var] [ ,"option" | ,"option=",option_var ]*);option: "+mda", "+all", "+fsdbfile+filename"$fsdbDumpvars(1, "instance=", instance_string);

Use Environment Variable(s) in the String Argument
setenv MY_FSDB_FILE_PATH /home/test

setenv MY_FSDB_FILE test

2.7  $fsdbLog

$fsdbLog(["label"], ["message"], [severity], ["stream_name"] [["format"]*, variables | "string"]* );$fsdbLog( , , , , var1);

2.8 $fsdbDumpSVA

参考文章《fsdbDump用法》、《fdsb那些事》《将fsdb波形文件dump到多个文件中》

2.9 FSDB Dumping Command Line Options

eg: simv +fsdb+dump_log=off可以关闭novas_dump.log

2.10 使用TCL

编写ucli.do
fsdbDumpfile test.fsdbfsdbDumpvars 0 tb_topfsdbDumpvars 0 top.instance
run
vcs ucli -i ucli.doxrun -input ucli.do
demo
#run 0#show#set name [get tb_top.testname]#dump -file $name.fsdb -type FSDB#dump -add tb_top -depth 0 -fsdb_opt +sva -aggregates -fid FSDB0 run ############################################ call {cmd}#### call {$fsdbDumpvars(0, tb_top)}; #### dump after a break#fsdbDumpfile break.fsdb#fsdbDumpvars 0 top#fsdbDumpoff#stop -file tb.v -line 13 -once -continue -command {fsdbDumpon}#run#quit

付费文章汇总(截止2024年06月02日)

欢迎加入知识星球。每天都会解答大家提出的技术问题。欢迎加入知识星球,助您快速成长。
最后,由于TX修改规则,为了不错过后续内容,欢迎加入QQ群,

另外,由于微信群已经超过200人,添加小编的微信,拉你进入WX学习群。

最后的最后,如果对您有帮助,希望点个“在看”。好好学习,天天向上

芯片验证日记
分享芯片验证相关的知识。
 最新文章