Turning off assertion fail comments

253 views Asked by At

I'm writing assertions to detect a particular sequence occurrence. In case the sequence is not not true, I get prints in log for assertion failure. But I just want to check if sequence occurred or not. Is there any way to turn of these prints?

FYI: there is no uvm_error or uvm_fatal in the else part of the assertion

1

There are 1 answers

2
dave_59 On

You want to use a cover directive in this case, not an assert. A cover directive only has a pass action and no fail action.

If you had used an else clause in your assertion, you could have used $assertfailoff