Maxiumum hit for a bin

Hi all,
is there any way to set the maximum number of hits for all bins in a covergroup?

1 Like

SystemVerilog lacks such a feature. If you’re aiming to enhance performance, I don’t think this will help. Unless all bins within a covergroup have reached their maximum hits and there are no illegal_bins, it still requires the effort of determining which bin is being hit and then adding a check to verify if it has reached its maximum. This could actually slow things down rather than speed it up.

1 Like

you got the point Dave,
I just want to speed-up the coverpoint collection.
thanks anyway

I don’t think there’s a direct option to set a maximum hit count for all bins in a covergroup. The at_least option can define a minimum hit threshold for coverage, but it doesn’t cap hits. Vendor-specific callbacks or post-processing of coverage data offer tool-dependent solutions. For portability, custom logic with hit tracking is the most effective way to enforce a maximum hit count.