is there a way to cover signal value increment/decrement/doesn’t changed with no declaring of prev_sig for each signal?
The simple way I know to cover data wasn’t changed is to save the data after sampling and to hit the coverpoint when current sample value is equal to previous data we saved.
Is there other way to do it?
It is like transition coverage but with no fix value.
Transitions in coverpoints is limited. You can use the $past() sampling function to make it a little easier so you don’t have to declare a separate variable.