# Phases in UVM

**URL:** <https://verificationacademy.com/forums/t/phases-in-uvm/29265>\
**Category:** UVM\
**Tags:** UVM, UVM-phase-methods\
**Created:** [March 18, 2014, 11:45am UTC](https://verificationacademy.com/forums/t/phases-in-uvm/29265 "2014-03-18T11:45:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidharth.sankar77](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/5f8ce5/32.png) [@sidharth.sankar77](https://verificationacademy.com/forums/u/sidharth.sankar77)\
**Post date:** [March 18, 2014, 11:45am UTC](https://verificationacademy.com/forums/t/phases-in-uvm/29265/1 "2014-03-18T11:45:51Z")

</div>

In my driver i have broken run\_phase to sub phase like reset\_phase and main\_phase.  
In my test case if i am using run phase it is not driving anything and the test bench is hanged.  
But if i am using main\_phase instead of run\_phase it is working fine.

What can be the possible reason for this problem?

---

<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:** [March 18, 2014, 12:42pm UTC](https://verificationacademy.com/forums/t/phases-in-uvm/29265/2 "2014-03-18T12:42:28Z")

</div>

The recommendation is that drivers and monitors should only implement the run\_phase. The only thing you should be using main\_phase etc. for (and we don’t recommend it) is in the test to control which sequence gets run.  
It sounds like you’re in a situation where the test in run\_phase is waiting for some handshaking that is prevented by your driver executing something in reset\_phase before it gets to main\_phase. When you have your test execute main\_phase, then whatever it’s doing doesn’t start until after reset\_phase has completed.  
You driver should just execute run\_phase since all it will do is receive transactions from a sequence and put them on the bus. In your test, if you want to do a reset, that should be a specific transaction that the driver recognizes and “does the reset” - whatever that means.

---

<div class="post-metadata">

**Author:** ![venkstart](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/v/919ad9/32.png) [@venkstart](https://verificationacademy.com/forums/u/venkstart)\
**Post date:** [March 26, 2014, 10:11pm UTC](https://verificationacademy.com/forums/t/phases-in-uvm/29265/3 "2014-03-26T22:11:31Z")

</div>

_In reply to [tfitz](https://verificationacademy.com/forums/t/phases-in-uvm/29265/2):_

Hi Tom,

In addition to the question posed above, I would like to know what is the recommended way to handle different sequences to be run during different run phases of the sequencer?

The sequencer hook for default\_sequence is only applicable for the main\_phase of the sequencer? If I need to explicitly specify preset\_sequence, reset\_sequence, post\_reset sequence etc all of which need to be run on the same sequencer, DO I need to take care of this in the test and explicitly call start() method on each sequence?

Thanks  
Venkat

---

<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:** [April 2, 2014, 3:38pm UTC](https://verificationacademy.com/forums/t/phases-in-uvm/29265/4 "2014-04-02T15:38:47Z")

</div>

_In reply to [venkstart](https://verificationacademy.com/forums/t/phases-in-uvm/29265/3):_

Actually, the sequencer supports a default\_sequence for each phase. But we still don’t recommend you use them. We recommend that you explicitly start each sequence from the appropriate phase in your test.
