Hello,
I have a covergroup that I want to sample when a specific state of the FSM ends.
For example, when state_1 ends (and the next state is different) then the group should be sampled.
One way I thought of doing it, is to have 2 variable of cur_state and next_state in my coverage file, and in the main_phase task compare them and if they are different then sample.
Is there a more elegant way? I have inspiration from transition sampling in bins (STATE_1 => STATE_2) or iff of some kind.
Thank you