Verdi VC Apps Batch mode 使用

Verdi VC Apps除了能在Verdi gui中启动之外,其实还可以使用batch mode. 下面我简单介绍一下如何使用:

$VERDI_HOME/share/VIA/Apps/Bin/ 目录下有各个Apps对应的perl脚本,我们使用该脚本来启动batch mode.

以listRegisters.pl 为例:

perl $VERDI_HOME/share/VIA/Apps/Bin/listRegisters.pl

有如下输出:

[VC App]
    listRegisters.pl

[Path]
    /share/VIA/Apps/Bin/

[Abstract]
    Run listRegisters in batch mode
[Usage]
    ./listRegisters.pl <design_import> \
        [-target_scope <target_scope>] \
        [-o <output_log>] \
        [-non_reset_flop] \
        [-report_sync_reset] 

[Example]
    ./listRegisters.pl -f run.f -path Design -target_scope "tb_CPUsystem.i_CPUsystem" -non_reset_flop

[Options]
    -target_scope: optional.
        specify the target scope full hierarchical name to list registers.

    -o: specify the output log name; default is "listRegisters.log"

    -non_reset_flop: optional.
        specify whether to only dump the non-resettable flop

    -report_sync_reset: optional.
        specify whether to dump the synchronous reset pin by the RTL coding style in the flop

如果仅仅用上面help 中提到的几个option,执行如下命令:

 perl $VERDI_HOME/share/VIA/Apps/Bin/listRegisters.pl -non_reset_flop  -target_scope ipsec_ss_tb_top.dut.core_0

是会报错的,因为找不到design的database
 

[listRegisters] Begin to list the inferred registers in the design...
[listRegisters] Target scope: ipsec_ss_tb_top.dut.core_0

novas: Please import design first!

[listRegisters]-Error. Failed to find the scope "ipsec_ss_tb_top.dut.core_0" in design.

其实listRegisters.pl 脚本隐含了一个-dbdir的option,上面的命令改为:
 

perl $VERDI_HOME/share/VIA/Apps/Bin/listRegisters.pl -dbdir /xxx/xxx/simv.daidir -non_reset_flop  -target_scope ipsec_ss_tb_top.dut.core_0

就能正确生成
 

[listRegisters] Begin to list the inferred registers in the design...
[listRegisters] Target scope: ipsec_ss_tb_top.dut.core_0
[listRegisters] Write to the log file "listRegisters.log"...
[listRegisters] End...

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Verdi是一款用于图形化仿真的工具,可以用于调试和观察变量情况。要使用Verdi的图形界面进行动态仿真,可以按照以下步骤操作: 1. 在启动Verdi时,使用以下命令来执行启动: ``` verdi -play <command_file_name> ``` 这里的`command_file_name`是一个TCL文件,用于执行Verdi的命令和设置。 2. 在vcs的编译选项中加入`-kdb`的选项进行编译。 3. 在执行`simv`的选项中加入`-gui=verdi`或者`-verdi`选项,这样就可以启动Verdi进行图形界面的动态仿真。 使用Verdi的图形界面可以方便地添加断点和观察变量的情况,以便进行调试和分析。请注意,这里只是简要介绍了Verdi的使用方法,具体的操作和功能可以参考相关的文档和教程。\[1\]\[2\] #### 引用[.reference_title] - *1* *3* [Verdi - GUI技能操作 Before you start (未完)](https://blog.csdn.net/ciscomonkey/article/details/111239840)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [verdi简单使用方法](https://blog.csdn.net/muyiwushui/article/details/119911977)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值