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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 306|回复: 4

[求助] uvm覆盖率

[复制链接]
发表于 2024-7-23 15:08:19 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
定义一个覆盖点:

coverpoint  len {
           bins min            = {1024};
           bins others[8]    = {[1024:4096]};
           bins max           = {4096};
         }
这里边第二个仓 others[8]的意思是定义了8个独立的仓吗?也就是必须有1024-4096之间随便的8个长度才行吗?
发表于 2024-7-24 08:05:36 | 显示全部楼层
应该是每个bin (4096-1024)/8, 这个不是UVM,是Systemverilog
 楼主| 发表于 2024-7-24 10:36:24 | 显示全部楼层


yuanpin318 发表于 2024-7-24 08:05
应该是每个bin (4096-1024)/8, 这个不是UVM,是Systemverilog


好的 谢谢您 也就是说plen_other[8] 是8个独立的仓 这8个仓分别是 bins plen_other[0] = {[1024: 1408]}   bins plen_other[1] = {[1408:1792]} ......依次类推  是嘛
发表于 2024-7-25 10:09:05 | 显示全部楼层


小欢喜 发表于 2024-7-24 10:36
好的 谢谢您 也就是说plen_other[8] 是8个独立的仓 这8个仓分别是 bins plen_other[0] = {[1024: 1408]}  ...


应该是的。


下面是从 IEEE Std 1800™-2023 Section 19.5.1 里面复制的,希望能帮到你。

bins fixed [4] = {[1:10], 1, 4, 7};
In the above example, number of values = 13 and number of bins = 4; therefore B = 13/4 = 3. The 13 values
are distributed as follows: <1,2,3>, <4,5,6>, <7,8,9>, <10,1,4,7>.
If the number of bins exceeds the number of values, then some of the bins will be empty. For example:
bins fixed [5] = {1, 4, 7};
In the above example, number of values = 3 and number of bins = 5; therefore B = 1. The 3 values are
distributed as follows: <1>, <4>, <7>, < >, < >. Note the empty fourth and fifth bins.

 楼主| 发表于 2024-7-25 17:45:52 | 显示全部楼层


好的 十分感谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

×

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

GMT+8, 2024-9-19 09:05 , Processed in 0.018213 second(s), 7 queries , Gzip On, Redis On.

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