网站公告列表

  没有公告

加入收藏
设为首页
联系站长
您现在的位置: 61EDA中国电子网 >> 技术文库 >> Modelsim仿真 >> 正文
  [组图]How to quickly use ModelSim Coverage in Simulation           ★★★ 【字体:
How to quickly use ModelSim Coverage in Simulation
作者:Free    文章来源:电子开发    点击数:    更新时间:2008-4-15    

1. Star ModelSim and Make filelist
Star your modelsim and change the directory  to youre project folder.
Use “pwd “  to show your current directory.
Use “cd d:\verilog  “  to change directory.
 
Use “dir *.v /b/s >filelist.f “ to make file list.
  
The file list is as follow, which contains all the .v files under current folder ,including file in subfolders.
              
 Tips:  if  codes are written in Verilog HDL , there is no need to adjust the sequence of the filelist , while in VHDL, some files should be compiled first , so the filelist sequence may need some adaptation.

2.  use UltraEdit to replace “” with “/”.
  

3. create your modelsim .lib and .work.
change the directory  to youre project folder ,and copy filelist.f there.
Here we “cd projects”
Use “vlib work “ to build work lib.
Use “vmap work work “ to  map work lib.

4. compile the filelist.f with coverage to build work lib.
  
-cover cbse means compile with  condition , branch , statement ,expression coverage.
-f filelist.f   means compile files listed in this file.

5. start simulation and check the coverage
  start simulation with “vsim – coverage work.top” and “run 10us “ for some time.
  
And you can see the coverage like this.
  
More detailed coverage information is as follow,
  
  

You can get all the coverage information here . If you have any problem in the use of modelsim coverage ,please contact me and I am glad to help .
                                                                                 Written by:   Xiao Jie  
                                                                                          06-18-2007  

文章录入:admin    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章: 没有了
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
    没有相关文章
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    湘ICP备08001332号 站长:61EDA