参考链接: http://www.lujun.org.cn/?p=4582
1). 在仿真参数中加入+fsdb+force选项(./simv +fsdb+force), 这时dump fsdb时就会得到force信息.
2). 使用verdi查看信号时, 如果该信号有force, 则波形上对应的时间点会有紫色箭头.
向下箭头表示当前时间有force应用到该信号.
向上箭头表示当前时间有release应用到该信号.
3). 如果环境中force比较多, 可以把force信息生成一个报告文件:
fsdbreport xx.fsdb -find_forces -s "/*" -level 0 -o xx.txt
其中:
xx.fsdb : 是输入的波形文件.
-find_force: 表示当前报告是要抓force.
-s : 指定查找force信息的层次, /*表示从最顶层开始查找.
-level : 指定向下查找的层次. 0表示查找-s指定的层次下所有的层次.
-o : 指定输出文件名.
4). 报告文件的格式:
#/xx/xx/fsdbreport xx.fsdb -find_forces -s / -level 0 -o xx.force.txt
Time(1fs), /tb/FCLK
0, Forced, ^x, design
20, Forced, ^0, external
...
Time(1fs), /tb/interposer/BP_TCK
0, Forced, ^?, design
0, Forced, ^0, design
20, Forced, ^1, design
...
...
line1: 生成该报告文件的命令.
line2: force信号的层次
line3: force时间, force/release值.
原文:https://www.cnblogs.com/gaiqingfeng/p/14212266.html