Executing code after a particular point, bin has been hit


I was wondering if there is any way to know when a particular bin(s) have been hit and after that calling your own code to do something. Something like generating an event once you hit set of bins, I know you can create your own sampling function and that in inside the coverpoint you can define when to sample and I’ve only seen methods to query the coverage in LRM, not to “react” to an actual hit.

Any pointers on this are really appreciated


In reply to rgarcia07:

Functional coverage in SystemVerilog was intentionally designed to be a passive activity with minimal overhead.

You might want to search the DVCon.org proceedings as there have been research in trying to close coverage holes by reaching to coverage data. It is not as easy as it may seem to know how to change your stimulus to improve coverage.