赞
踩
Modelsim覆盖率测试方法
一、在工程下选中全部文件或者需要测试覆盖率文件右键 、properties 。
二、选中Coverage 中 source code coverage前四项other coverage 中前两项
三、Compile all。
四、选中菜单simulate 中start simulate
五、选中others项 coverage 中 enable code coverage
六、库 library work中 测试顶层文件 test_top 右键 simulate with coverage 或者 在transcript中输入命令 vsim –coverage work.test_top test_top为testbench 测试顶层名
七、run-all 后即可出现下图
八、双击即可打开相关表达式expression或块block的覆盖情况
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。