# Using sequence as event contol

**URL:** <https://verificationacademy.com/forums/t/using-sequence-as-event-contol/42961>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, Using-sequence-as-event-contol\
**Created:** [October 8, 2023, 5:08pm UTC](https://verificationacademy.com/forums/t/using-sequence-as-event-contol/42961 "2023-10-08T17:08:44Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![user49](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/user49/32/1084_2.png) [@user49](https://verificationacademy.com/forums/u/user49)\
**Post date:** [October 9, 2023, 6:45pm UTC](https://verificationacademy.com/forums/t/using-sequence-as-event-contol/42961/6 "2023-10-09T18:45:48Z")

</div>

_In reply to [MICRO\_91](https://verificationacademy.com/forums/t/using-sequence-as-event-contol/42961/5):_

> _In reply to [ben@SystemVerilog.us](https://verificationacademy.com/forums/t/using-sequence-as-event-contol/42961/5):_  
> Ben,  
> As per our discussion a few months ago, we both concluded that a void function/task called as part of sequence\_match\_item executes in Reactive region similar to action block.

NO, that is only true for action blocks.  
LRM Section 16.11 says  
_All subroutine calls attached to a sequence are executed at every end point of the sequence. For each end point, the attached calls are executed in the order they appear in the list._  
[Ben] Moving into another topic  
_Assertion evaluation does not wait on or receive data back from any attached subroutine.  
The subroutines are scheduled in the **Reactive region,like an action block**._  
[Ben] thus, **" … ##0 (1, data = len , Length( data )**, which causes the variable _length_ to be modified, does not affect the assertion evaluation.  
_length_ is modified in the Observed region.

A side comment, module variables modified in an assertion should be used only for support logic. A user should be concerned with these timing regions/  
Ben

---

_[View the full topic](https://verificationacademy.com/forums/t/using-sequence-as-event-contol/42961)._
