How to stop the simulation only when specific errors occur

I use the following command in the simulation file for stop the simulation:
+UVM_MAX_QUIT_COUNT

The issue is that the simulation stops when any error (uvm_error/uvm_fatal_ occur). Is there an option to manage the errors, so some errors will cause the simulation to stop and some no?

May be you can change that specific error to fatal :)

Thanks,
-Yashwanth

In reply to yaswanth021:

The simulation stop also in case of error when I use +UVM_MAX_QUIT_COUNT.

In reply to saritr:

On which value you are setting UVM_MAX_QUIT_COUNT?
In case of a fatal the simulation stops immidiately

In reply to chr_sue:

1

In reply to saritr:

With UVM_MAX_QUIT_COUNT=1 you are advicing the simulator to stop after the first error. You see it works perfectly. If you want the simulator to tolerate some errors you have to set UVM_MAX_QUIT_COUNT to any value different from 1. In my projects I use a value between 10 and 30.

In reply to chr_sue:

In reply to saritr:
With UVM_MAX_QUIT_COUNT=1 you are advicing the simulator to stop after the first error. You see it works perfectly. If you want the simulator to tolerate some errors you have to set UVM_MAX_QUIT_COUNT to any value different from 1. In my projects I use a value between 10 and 30.

How can I manage the simulator to tolerate some errors?

In reply to saritr:

Youz have 2 options:
(1) from the CLI (command line interface) you can issue:
+UVM_MAX_QUIT_COUNT=10
(2) from your test you can call
set_report_max_quit_count(10).

In both cases the simulation will stop after 10 errors.

In reply to saritr:
If you want to change how a message behaves, you can either override the severity of a message (i.e. change from error to warning) or you can change the actions associated with a message (remove the UVM_COUNT action so it does not stop when reaching the max_quit_count).

https://verificationacademy.com/verification-methodology-reference/uvm/docs_1.1a/html/files/base/uvm_report_object-svh.html#uvm_report_object.set_report_severity_override
https://verificationacademy.com/verification-methodology-reference/uvm/docs_1.1b/html/files/base/uvm_object_globals-svh.html#uvm_action
https://www.vmmcentral.org/uvm_vmm_ik/files3/base/uvm_cmdline_processor-svh.html#uvm_cmdline_processor.+uvm_set_action