I am trying to write an assertion (my very first one) that checks if the value of an enum is within a defined set when the valid signal is high. This is what I have:
Assertions use sampled values, which are the values they have immediately before the clock edge. But the disable iff expression is asynchronous. What you probably meant to write is