#VERDI# 助力验证之关于如何使用fsdbreport工具包

VERDI的fsdbreport工具包可以从fsdb波形中提取信号数值变化,生成txt文件,便于分析验证问题。本文介绍了其语法、选项、说明及多个使用示例,包括指定时间范围、报告多个信号、报告总线信号切片、不同输出格式、报告作用域及其后代、基于strobes点的报告以及使用配置文件等。
摘要由CSDN通过智能技术生成

目录

一 概论

二 语法

三 选项与说明

四 举例


一 概论

不知道大家在工作中有没有这么一个考虑:我们能不能基于测试用例产生的fsdb波形,从中得到我们关心的某一信号,在整个仿真期间,亦或者在某个仿真时间段内,其数值大小变化的情况。大家不要觉得思考这个很无趣。随着验证工作的复杂度提高,如果我们有时候能有一手这样的数据资料,将会对我们分析debug 问题,很有帮助。

Verdi的子工具 fsdbreport 应用程序包,可以帮我们从fsdb 波形中,抽离出想要的信号数值变化并产生一个列表txt 文件。

二 语法

fsdbreport fsdb_filename

[-f config_file]

[-bt time[unit]] 
[-et time[unit]] 
[-nocase]

[-w column_width]

[-of output_format]

[-verilog | -vhdl]

-s {signal [-level level_depth] [-a name] [-w column_width] [-af alias_file] 

[-of [b|o|d|u|h]] [-verilog|-vhdl] [-precision precision_value]}

[-strobe [signal=="value"] [-a name] [-w column_width] [-verilog|-vhdl]] 
[-levelstrobe "expression"]

[-a name]

[-w column_width] 
[-verilog|-vhdl]] 
[-shift shift_time | -shiftneg shiftneg_time]

[-period period_time] 
[-cn column_number]

[-log filename]

[-o reported_filename] 
[-pt time_precision]

[-csv]

[-find_forces  [-no_value] [-no_fdr_glitch]]

[-ignore_2G]

[-first_force]

三 选项与说明

-a alias_name  Defines the alias for the output signal.
-af alias_file Specifies an nWave waveform alias file.NOTE: Specifies the -af option must be specified for each signal. For example: -s
/tb/chip/lbu/core/dmac/haddr -a haddr -af novas.alias
/tb/chip/lbu/core/dmac/hwdata -a hwdata -af novas.alias
-bt time[unit] Specifies the begin time of the report. If omitted, the begin time of the FSDB file is used. The time unit is Ms, Ks, s, ms, us, ns, ps, or fs. The default time unit is ns.
-cn column_number Defines the number of columns for the report, including the time column. Column number is set to be 0 or an integer larger than 1. When setting to 0, the signal name and its value are not printed in the format of a table, but line by line.
NOTE: This option is ignored if the -csv option is also specified.
-csv Saves the output report file in the CSV format. If this option is specified with -cn and -w, these options are ignored.NOTE: If the selected signals contain stream, coverage, or SVA type signals, the -csv option is ignored and non-csv format is output.
-et time[unit] Specifies the end time of the report. If omitted, the end time of the FSDB is used. The time unit is Ms, Ks, s, ms, us, ns, ps, or fs. The default time unit is ns.
-exclude_scope "scope1" 
["scope2" … "scopeN"]
Excludes signals under the specified scopes. Each scope is enclosed with double quotes. To exclude subscopes of the specified scopes, the wildcard character "*" is appended at the end of the scopes.
Example:  -find_forces -exclude_scope "/system/cpu/*" "/system/s1" 
NOTE:
1) Use this option with the -find_forces option.
2) The -exclude_scope option has higher priority than the -s 
option.
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

那么菜

你的鼓励和批评是我最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值