# What code goes into main\_phase

**URL:** <https://verificationacademy.com/forums/t/what-code-goes-into-main-phase/36139>\
**Category:** UVM\
**Tags:** UVM, Cookbook-Phasing, UVM-phases\
**Created:** [May 30, 2019, 6:56pm UTC](https://verificationacademy.com/forums/t/what-code-goes-into-main-phase/36139 "2019-05-30T18:56:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sj1992](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@sj1992](https://verificationacademy.com/forums/u/sj1992)\
**Post date:** [June 1, 2019, 4:17am UTC](https://verificationacademy.com/forums/t/what-code-goes-into-main-phase/36139/3 "2019-06-01T04:17:30Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/what-code-goes-into-main-phase/36139/2):_

Thanks Dave. But in most of the designs we are required to bring the system to default state using Reset. To do this in UVM do we write the Reset functionality in reset\_phase or is it ok to include the Reset functionality in run\_phase. And also can you explain what code goes into end\_of\_elaboration phase. I have seen some vague explanations like “Used to make any final adjustments to the structure, configuration or connectivity of the testbench before simulation starts.”

Thanks.

---

_[View the full topic](https://verificationacademy.com/forums/t/what-code-goes-into-main-phase/36139)._
