返回介绍

20.4.3 Wildcard specification of coverage point bins

发布于 2020-09-09 22:55:56 字数 1167 浏览 954 评论 0 收藏 0

By default, a value or transition bin definition can specify 4-state values. When a bin definition includes an X or Z, it indicates that the bin count should only be incremented when the sampled value has an X or Z in the same bit positions, i.e., the comparison is done using ===. The wildcard bins definition causes all X, Z, or ? to be treated as wildcards for 0 or 1 (similar to the =?= operator). For example:

wildcard bins g12_16 = { 4’b11?? };

The count of bin g12_16 is incremented when the sampled variable is between 12 and 16:

1100 1101 1110 1111

Similarly, transition bins can define wildcard bins. For example:

wildcard bins T0_3 = (2’b0x => 2’b1x);

The count of transition bin T0_3 is incremented for the following transitions (as if by (0,1=>2,3)):

00 => 10 00 => 11 01 => 10 01 => 11

A wildcard bin definition only consider 2-state values; sampled values containing X or Z are excluded. Thus, the range of values covered by a wildcard bin is established by replacing every wildcard digit by 0 to compute the low bound and 1 to compute the high bound.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文