VCS 生成代码覆盖率
来源:互联网 发布:软件保护壳 编辑:程序博客网 时间:2024/05/08 14:20
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强制退出,则不能生成用于代码覆盖率的test file。哥试了好久啊,才发现原因出现这里。
Step 3. Generate coverage reports
cmView 或者 vcs -cm_pp gui-----------------------------调用cmView观察代码覆盖率
或dve -cov-------------------------------------------------------调用dve观察代码覆盖率
If you compiled for more types of coverage, and if VCS monitored for more types of coverage during simulation, you could use arguments to the -cm command line option to tell cmView what types of reports to write. By default it writes reports for all types of coverage for which it has intermediate data files.
-cond
Specifies condition coverage.
-fsm
Specifies FSM coverage.
-line
Specifies line coverage.
-tgl
Specifies toggle coverage.
Look at the results in the cmView GUI
cmView -cm line
- VCS 生成代码覆盖率
- 使用VCS生成覆盖率报告
- phing生成phpunit报告,代码覆盖率
- 使用lcov生成代码覆盖率的报告
- gcov、lcov生成代码覆盖率的过程
- 代码覆盖率
- 代码覆盖率
- 代码覆盖率
- 代码覆盖率
- junit + ant + emma生成代码测试覆盖率报告
- 生成代码覆盖率报告插件 apply plugin: 'jacoco'
- lcov生成覆盖率常用命令
- VCS仿真器加密代码方法
- 什么叫代码覆盖率
- PHP 代码覆盖率分析
- Cobertura测试代码覆盖率
- 代码覆盖率工具大全
- 代码覆盖率lcov使用
- 框架网页中如何编写前进后退代码
- 塔式、机架式和刀片服务器区别
- Linux(centos/fedora/redhat/ubuntu....)下如何安装rpm,deb文件,如何解压,编译,安装*.tar.gz文件
- html中dl、dt、dd标记的使用实现菜单显示|隐藏
- robots的几种作用
- VCS 生成代码覆盖率
- ExtJs环境搭建
- php的PDO的详细介绍
- jquery的选择器$('')在IE6下对JS动态生成(比如ajax生成的)的元素失效的解决办法
- Bada学习-(二十八)服务器组件配置
- SourceGrid
- 非eclipse 下 实现,jni 调用 c++,自己第一次成功实现
- PHP cookie和session的分析(转)
- GET和POST的不同