0
\$\begingroup\$

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
\$\endgroup\$
1
  • \$\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\$ Commented Feb 22, 2023 at 7:15

1 Answer 1

1
\$\begingroup\$

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
\$\endgroup\$
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.