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)?

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

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.