当前位置:   article > 正文

modelsim覆盖率设置_modelsim覆盖率合并多个用例

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


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/709094
推荐阅读
相关标签
  

闽ICP备14008679号