I want to hit sfd_bins bins once, and then I don’t want to hit that bin repeatedly. But the triggering event should be posedge of clock only Can you help me?
Depends on what your testing requirements are, but usually one hit is good enough. The default at_least covergroup option is 1 hit for s bin to be considered covered. But tools may still keep counting hits for debug usage.
Why? It won’t affect the overall coverage calculation. And it won’t help performance. The most effort goes into figuring out which bin needs to be hit. Adding another check to see if the counter needs to be disabled might just add to the effort.