# 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:** 2

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [May 31, 2019, 9:16pm UTC](https://verificationacademy.com/forums/t/what-code-goes-into-main-phase/36139/2 "2019-05-31T21:16:58Z")

</div>

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

We do not recommend using the main\_phase for the very reason you are asking this question. Since there is no standard way of defining what goes in each phase, it becomes difficult to manage. This is especially a problem for the task based phases that execute in parallel with the run\_phase. The other function based phases become just a convenience to execute code in a particular ordering at time 0 or at the end of simulation.

---

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