# UVM Phase customization

**URL:** <https://verificationacademy.com/forums/t/uvm-phase-customization/32698>\
**Category:** UVM\
**Tags:** UVM, UVM-phase-scheduler, UVM-Phase-customization\
**Created:** [December 28, 2016, 9:12am UTC](https://verificationacademy.com/forums/t/uvm-phase-customization/32698 "2016-12-28T09:12:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepak\_infy](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/d/a587f6/32.png) [@deepak\_infy](https://verificationacademy.com/forums/u/deepak_infy)\
**Post date:** [December 28, 2016, 9:12am UTC](https://verificationacademy.com/forums/t/uvm-phase-customization/32698/1 "2016-12-28T09:12:28Z")

</div>

I got a requirement, where I need to execute sequences on different intervals in run phase. (Example: Reset sequence, configuration sequence, link training sequence)

run\_phase ----\> Reset phase ----\> sequence 1  
----\> Config phase ----\> sequence 2  
----\> LTSSM phase ----\> sequence 3

Going through UVM papers got to know that it can be implemented through UVM phase scheduler and custom phasing.

I am very new to this, it will be great if someone point me to papers on UVM phase customization and some example code for reference.

Thanks in Advance.

---

<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:** [December 28, 2016, 1:57pm UTC](https://verificationacademy.com/forums/t/uvm-phase-customization/32698/2 "2016-12-28T13:57:02Z")

</div>

_In reply to [deepak\_infy](https://verificationacademy.com/forums/t/uvm-phase-customization/32698):_

It looks like you are mixing two different things, reset\_phase and reset\_sequence.If you have a reset\_sequence and a configuration\_sequence you can run them in the run\_phase in a serial order:  
In run\_phase you are executing:  
(1) reset\_sequence  
sequence1  
(2) configuration\_sequence  
sequence2  
(3) link training sequence  
sequence3

In this case you do not need the reset\_phase and the configuration\_phase.

---

<div class="post-metadata">

**Author:** ![S.P.Rajkumar.V](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@S.P.Rajkumar.V](https://verificationacademy.com/forums/u/S.P.Rajkumar.V)\
**Post date:** [December 29, 2016, 6:48am UTC](https://verificationacademy.com/forums/t/uvm-phase-customization/32698/3 "2016-12-29T06:48:44Z")

</div>

_In reply to [deepak\_infy](https://verificationacademy.com/forums/t/uvm-phase-customization/32698/2):_

Hi Deepak,

In UVM run time phase is divided into multiple internal phases reset, configure, main, shutdown.

Seems like your intention is to call each sequence in the corresponding phase. To know more about those phases, refer this [verificationacademy link](https://verificationacademy.com/cookbook/phasing)

But as chr\_sue mentioned, you could rather use run\_phase by calling the reset, configure, ltssm sequences sequentially. Both will essentially be the same as reset, configure, main, shutdown will run sequentially but in parallel to the run() phase (to be backward compatible with OVM).

Note that the Accellera committee has identified that this phasing mechanism may be changed in future releases, so better to avoid using the internal phases of run() unless required; like in the case of reset-testing (where internal run phase jumping is required). It is outlined in this [SNUG paper](http://www.sunburst-design.com/papers/HunterSNUGSV_UVM_Resets_paper.pdf).

Thanks,

---

<div class="post-metadata">

**Author:** ![deepak\_infy](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/d/a587f6/32.png) [@deepak\_infy](https://verificationacademy.com/forums/u/deepak_infy)\
**Post date:** [January 4, 2017, 5:23am UTC](https://verificationacademy.com/forums/t/uvm-phase-customization/32698/4 "2017-01-04T05:23:09Z")

</div>

Thanks chr\_sue & Rajkumar for your valuable inputs.

Regards,  
Deepak
