在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
楼主: cihchenlin

[资料] modelsim的覆盖率使用方法

[复制链接]
发表于 2012-3-8 21:02:22 | 显示全部楼层
学习了 谢啦
发表于 2012-3-27 17:21:22 | 显示全部楼层
谢谢谢谢谢谢谢谢
发表于 2012-3-27 18:36:38 | 显示全部楼层
Thanks for it..
发表于 2012-4-11 09:50:42 | 显示全部楼层
这年头,啥都要钱
发表于 2012-4-11 09:53:38 | 显示全部楼层
Modelsim覆盖率
步骤:

1.compile选项 => compile options  Covrage setting  (或者可以点击选中文件,编辑properties,在coverage中选择要实现的覆盖选项)
2.对所设计文件进行编译
3.最关键的一步,仿真,选择simulate,选中文件,一定要在others选项中选择enable code coverage.
4.OK ,总算看到我望眼欲穿的覆盖率了,
英文原文;
Enabling code coverage is a two-step process:
    1. Use the -cover argument to vcom or vlog when you compile your design. This argument
       tells ModelSim which coverage statistics to collect. For example:
           vlog top.v proc.v cache.v -cover bcesxf
       Each character after the -cover argument identifies a type of coverage statistic: "b"
       indicates branch, "c" indicates condition, "e" indicates expression, "s" indicates
       statement, "t" indicates 2-transition toggle, "x" indicates extended 6-transition toggle
       coverage (t and x are mutually exclusive), and “f” indicates Finite State Machine
       coverage. See Enabling Toggle Coverage for details on two other methods for enabling
       toggle coverage.
You can use graphic interface to perform the same task. Select Compile > Compile
Options and select the Coverage tab. Alternatively, if you are using a project, right-click
on a selected design object (or objects) and select Properties.
2. Use the -coverage argument to vsim when you simulate your design. For examp
     vsim -coverage work.top
Or, use the graphic interface. Select Simulate > Start Simulation and select the design
unit to be simulated in the Design tab. Then select the Others tab and check Enable code
coverage box as shown below.

对R80515进行集体编译命令:
do tools/mti/ee_macros/compile.do
R80515 算法结构仿真覆盖结果如下图:




PS:总算给我一点点的信心,发现自己还有那么一点点可救药的地方,呵呵终于搞定一个了覆盖率,这几天把我打击的都不行了,做什么什么不对,郁闷死了,自己哪怕是亲手做出一点点东西,也是满有成就感的嘛,呵呵,通过这件事有几点体会:
1.一定要学会看user manual,虽然英文的,但是只要耐下心来看,收获肯定是很大的。
2.你离成功也许只有一点点,一定坚持再坚持那么一点点,今天中午的时候真的是快撑不住了,差一点就想放弃了。多动手,说不准就能碰出来呢。
发表于 2012-7-13 16:46:57 | 显示全部楼层
下来看看先
发表于 2012-11-6 18:38:49 | 显示全部楼层
看看顶一下。
发表于 2012-11-21 00:37:54 | 显示全部楼层
不错。。下来看看怎么样。。。
发表于 2013-1-28 15:21:36 | 显示全部楼层
muyouqian
发表于 2013-2-25 21:27:19 | 显示全部楼层
学习一下,希望有用
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-1 01:25 , Processed in 0.027001 second(s), 5 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表