Scott, I think I am going to let Matt handle this one as he deals with LRM issues.
It doesn't look like the code above is LRM compliant, there should be braces around the (!(a==1'b1)). I'm looking at the 2012 version of the LRM, not sure if there has been an update since then that allows the code above.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you give an example in an iff statement.
cp_read_write : coverpoint trans.kind iff !(a == 1'b) {
type_option.comment = "Read/Write";
bins cp_read = {READ};
bins cp_write = {WRITE};
}
Scott, I think I am going to let Matt handle this one as he deals with LRM issues.
It doesn't look like the code above is LRM compliant, there should be braces around the (!(a==1'b1)). I'm looking at the 2012 version of the LRM, not sure if there has been an update since then that allows the code above.
Hah, wouldn't be the first time the simulator happily digests code that isn't LRM compatible :)
No worries, I can clean up my code to match the LRM if that is what it specifies.