# 'Do not use global\_stop\_request()' and 'Do not use uvm\_test\_done', can anyone please elaborate with examples?

**URL:** <https://verificationacademy.com/forums/t/do-not-use-global-stop-request-and-do-not-use-uvm-test-done-can-anyone-please-elaborate-with-examples/29500>\
**Category:** UVM\
**Tags:** end-of-test-mechanism-in-UVM, UVM\
**Created:** [May 23, 2014, 10:39am UTC](https://verificationacademy.com/forums/t/do-not-use-global-stop-request-and-do-not-use-uvm-test-done-can-anyone-please-elaborate-with-examples/29500 "2014-05-23T10:39:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![UVM\_Beginner](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/u/e56c9b/32.png) [@UVM\_Beginner](https://verificationacademy.com/forums/u/UVM_Beginner)\
**Post date:** [May 23, 2014, 10:39am UTC](https://verificationacademy.com/forums/t/do-not-use-global-stop-request-and-do-not-use-uvm-test-done-can-anyone-please-elaborate-with-examples/29500/1 "2014-05-23T10:39:34Z")

</div>

In the UVM cookbook it was given as,

“In the OVM, calling global\_stop\_request() was not recommended for large testbenches although it was not deprecated. In  
the UVM, it works but is now deprecated since it really is not consistent with having multiple time consuming phases” and

“The uvm\_test\_done objection works in the UVM, but it is not the recommended way of doing things. In the UVM there  
are many time consuming phases, so using a global variable is no longer a robust mechanism.”

Can anyone please elaborate the above two statemants given in UVM cookbook with some real time examples, as I am unable to visualize them with the limited explanation provided in it.

Thanks,  
Neith

---

<div class="post-metadata">

**Author:** ![Tudor\_Timi](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/tudor_timi/32/1897_2.png) [@Tudor\_Timi](https://verificationacademy.com/forums/u/Tudor_Timi)\
**Post date:** [May 23, 2014, 2:16pm UTC](https://verificationacademy.com/forums/t/do-not-use-global-stop-request-and-do-not-use-uvm-test-done-can-anyone-please-elaborate-with-examples/29500/2 "2014-05-23T14:16:39Z")

</div>

Try looking here: [https://verificationacademy.com/cookbook/objections](https://verificationacademy.com/cookbook/objections)

There aren’t concrete examples, but it’s a pretty good reference to objections.

---

<div class="post-metadata">

**Author:** ![tfitz](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/tfitz/32/3025_2.png) [@tfitz](https://verificationacademy.com/forums/u/tfitz)\
**Post date:** [May 23, 2014, 2:50pm UTC](https://verificationacademy.com/forums/t/do-not-use-global-stop-request-and-do-not-use-uvm-test-done-can-anyone-please-elaborate-with-examples/29500/3 "2014-05-23T14:50:24Z")

</div>

In OVM (and UVM1.0), there was only one time-consuming phase, run(). Since there was only one phase that had to be managed, having a single global objection, ovm\_test\_done, was sufficient. In UVM1.1, we added the additional run-time phases pre/post/reset-configure-main-shutdown\_phase(), each of which needs its own objection to be managed properly.  
Please see [Cookbook/endoftest.](https://verificationacademy.com/cookbook/endoftest)
