-
Generally, I do not use assert. However, I have a rare occasion to use it in a resolution function as I cannot use an OSVVM alert there. I am running a test intentionally that triggers it. Do I expect to get a message of the following form and a return value from the simulation that indicates the simulation failed:
Is there a setting such that only Assert FAILURE triggers a simulation failure? I should note that the resolution functions I am testing are more of a "toy" and are not used as part of our main methodology. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Try |
Beta Was this translation helpful? Give feedback.
-
After thinking about it some more I've decided to change the default from |
Beta Was this translation helpful? Give feedback.
-
That would be more consistent with what other simulators do. In nvc 1.10-devel () (Using LLVM 16.0.5), I note that it does not fatal, however, the simulator returns an error code to tcl execution environment. This is just a minor step down from fatal and I do not see other simulators doing this. As a result of this, our tests run to completion and report PASSED, however, the script runner sees the error in simulate and reports it as test failed. If the simulator is reporting error, that means the test failed. |
Beta Was this translation helpful? Give feedback.
Try
nvc -r --exit-severity=failure
.