最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

code coverage - How to add ignore_bins for coverpoint which is defined in base class - Stack Overflow

programmeradmin6浏览0评论

How should I add ignore_bin in child class for a coverpoint which is defiened in base class?

I tried extending base covergroup but it shows compilation errors for keyword extend in this context covergroup cg_rand extends Base_class::cg;

How should I add ignore_bin in child class for a coverpoint which is defiened in base class?

I tried extending base covergroup but it shows compilation errors for keyword extend in this context covergroup cg_rand extends Base_class::cg;

Share Improve this question edited Mar 21 at 2:20 Basheer Jarrah 5983 silver badges16 bronze badges asked Mar 19 at 14:06 SamSam 1
Add a comment  | 

1 Answer 1

Reset to default 0

The IEEE 1800-2023 SystemVerilog LRM recently added the ability to extend a embedded covergroup in a derived class. Tools are now just beginning to implement it.

However, this new feature only allows you to override coverpoints—not individual bins.

My suggestion to you is putting the bins you want to ignore as a separate coverpoint. Then, even without this enhancement, you can set the weight of the coverpoint to zero in the extended class.

发布评论

评论列表(0)

  1. 暂无评论