# How to stop the simulation only when specific errors occur

**URL:** <https://verificationacademy.com/forums/t/how-to-stop-the-simulation-only-when-specific-errors-occur/32748>\
**Category:** UVM\
**Tags:** UVM, uvm\_error\
**Created:** [January 15, 2017, 1:10pm UTC](https://verificationacademy.com/forums/t/how-to-stop-the-simulation-only-when-specific-errors-occur/32748 "2017-01-15T13:10:57Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [January 16, 2017, 2:33pm UTC](https://verificationacademy.com/forums/t/how-to-stop-the-simulation-only-when-specific-errors-occur/32748/6 "2017-01-16T14:33:39Z")

</div>

_In reply to [saritr](https://verificationacademy.com/forums/t/how-to-stop-the-simulation-only-when-specific-errors-occur/32748/5):_

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.

---

_[View the full topic](https://verificationacademy.com/forums/t/how-to-stop-the-simulation-only-when-specific-errors-occur/32748)._
