Is There a Specific Way to Stop the Test/Simulation in Case Condition Failure?

I want the test to stop in the case of a failure condition. I used UVM_ERROR, but this only produces a text message. Is there a specific way to stop the test/simulation in case condition failure in addition to the text message (something like assert in systemVerilog)?

0

1 Answer

Add the +UVM_MAX_QUIT_COUNT=1 runtime option on your simulator command line. This will end the simulation after the 1st UVM_ERROR.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest