VCS 生成代码覆盖率

本文档介绍了如何使用VCS编译源文件、运行仿真并生成代码覆盖率报告。首先,通过vcs命令编译设计文件,生成包含覆盖率信息的数据。接着,运行simv进行仿真,并在命令行模式下退出以确保生成test文件。最后,通过cmView或vcs -cm_pp gui、dve -cov等工具查看不同类型的覆盖率报告,如条件覆盖、FSM覆盖、行覆盖和toggle覆盖。
摘要由CSDN通过智能技术生成

Step 1. Compile the source files

vcs -Mupdate -cm line    +v2k    -sverilog  source.v   tb_source.sv

The db/verilog directory contains data files written by VCS about the design such as cm.format_info, cm.map_info, cm.mod_info, and cm.src_info.
The coverage/verilog directory is initially empty, but during simulation VCS writes intermediate data files (also called test files) in this directory. cmView reads these files.
The reports directory where cmView writes its report files.

Step 2. Run the simulation and monitor for coverage

simv -cm line

注意:第二步完成后仿真进入命令行模式:ucli%。这时要输入exit命令,退出ucli%模式。若按ctr+c强制退出,则不能生成

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值