\$\begingroup\$
\$\endgroup\$
1
What is the most efficient way to assert multiple properties in SV ?
Example:
property x;
if(expr1)
a===b;
endproperty
property y;
if(expr2)
c===d;
endproperty
Is something like this is needed: assert (x && y)
?
Greg
4,4881 gold badge23 silver badges32 bronze badges
asked Mar 5, 2018 at 5:38
-
\$\begingroup\$ Hi @ECEVLSI, can you please explain what you are trying to do in property x? Are you checking if a is logically equivalent to b whenever expr1 is true? \$\endgroup\$penguin99– penguin992023年02月22日 07:15:24 +00:00Commented Feb 22, 2023 at 7:15
1 Answer 1
\$\begingroup\$
\$\endgroup\$
0
You can use the property and
operator
assert (x and y);
For your example, there's not much difference from the logical &&
operator, but that operator can only be used on Boolean expressions.
answered Mar 5, 2018 at 6:13
lang-vhdl