A constraint to generate odd_even_odd....... etc sequence

In reply to puttasatish:

In reply to sbellock:
Hello Sbellock,
I am getting a compilation error in the line where you have const’.
Can you plz check and correct it?

It compiles fine in Questa. If it’s not a syntax error on your side then you should consult with your simulator vendor about it.