# UVM sequence

**URL:** <https://verificationacademy.com/forums/t/uvm-sequence/33234>\
**Category:** UVM\
**Tags:** UVM\
**Created:** [June 21, 2017, 5:53pm UTC](https://verificationacademy.com/forums/t/uvm-sequence/33234 "2017-06-21T17:53:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shankar\_logic](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@shankar\_logic](https://verificationacademy.com/forums/u/shankar_logic)\
**Post date:** [June 21, 2017, 5:53pm UTC](https://verificationacademy.com/forums/t/uvm-sequence/33234/1 "2017-06-21T17:53:20Z")

</div>

Hi,

Please tell in which UVM phase, the body() function of the sequence exectues.  
Does it executes in the run phase?

Thanks  
Shankar

---

<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:** [June 21, 2017, 8:42pm UTC](https://verificationacademy.com/forums/t/uvm-sequence/33234/2 "2017-06-21T20:42:33Z")

</div>

_In reply to [shankar\_logic](https://verificationacademy.com/forums/t/uvm-sequence/33234/2):_

It does not make sense to ask which phase a sequence executes in. A sequence executes when its body() method gets called - t’s not tied to any phase. Calling the start() method essentially puts a sequence object in a sequencer queue, and the sequencer uses a variety of arbitration schemes to select a sequence and call its body() method.

---

<div class="post-metadata">

**Author:** ![debashis\_paul](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/d/d26b3c/32.png) [@debashis\_paul](https://verificationacademy.com/forums/u/debashis_paul)\
**Post date:** [June 26, 2017, 3:18am UTC](https://verificationacademy.com/forums/t/uvm-sequence/33234/3 "2017-06-26T03:18:09Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/uvm-sequence/33234/3):_

Hi Dave,  
I would like to ask a scenario where I am struck which is related to the subject of this question.

After starting the sequence , it doesn’t come out of it. Specifically saying, it is a ral\_sequence to write. From the waveform, I can confirm that the transaction is successful, and i expect the sequence to come out of it. On further debugging inside uvm bases classes, i found that it is hanging inside uvm\_sequence\_base.svh (sequencer.wait\_for\_item\_done) and inside uvm\_sequencer\_base::wait\_for\_item\_done in statement wait( m\_wait\_for\_item\_sequence\_id == sequence\_id );

Any suggestion how to resolve this issue?

Thanks,  
Debashis

---

<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:** [June 26, 2017, 6:08am UTC](https://verificationacademy.com/forums/t/uvm-sequence/33234/4 "2017-06-26T06:08:41Z")

</div>

_In reply to [debashis\_paul](https://verificationacademy.com/forums/t/uvm-sequence/33234/4):_

It Looks like you do not execute item\_done() in your Driver. This is requested if you are using get\_next\_item.
