In reply to kishan patel:
The intersect operator only works between two sequences. You are trying to intersect two properties.
So, for intersect it is not valid …
But it is valid for “and”
property and_1;
@(posedge clk) (a |-> ##[1:2] b) and (c |-> ##[2:3] d);
endproperty
//above code is running without any compilation error.
so, can you tell me what is the exact problem while using it with intersect because, “and” & “intersect” is almost same. only the difference is length of sequence.
or it is like LRM says that we can’t use implication_operator with “intersect” but we can use it with “and”.
There is a difference between and used between two sequences from and used between two properties. You are correct that the only difference between the and and intersect sequence operators is whether the ending time of the two sequences need to match.
When you and properties together, there are no connections between the timings of the two properties. The expression is true simply if, and only if, both properties are true. You have to look at the context know which and operator to apply.
In reply to kishan patel:
There is a difference between and used between two sequences from and used between two properties. You are correct that the only difference between the and and intersect sequence operators is whether the ending time of the two sequences need to match.
When you and properties together, there are no connections between the timings of the two properties. The expression is true simply if, and only if, both properties are true. You have to look at the context know which and operator to apply.
What is the difference between and used between two sequences from and used between two properties…??
When you andproperties together, there are no connections between the timings of the two properties. The expression is true simply if, and only if, both properties are true.
When you andsequences together, the two sequences must start on the same cycle. There is a match when both sequences match- the matches do not have to come on the same cycle.