# Stop and restart assertion from sequence

**URL:** <https://verificationacademy.com/forums/t/stop-and-restart-assertion-from-sequence/36061>\
**Category:** UVM\
**Tags:** UVM, sequence, assertoff, asserton\
**Created:** [May 7, 2019, 7:27am UTC](https://verificationacademy.com/forums/t/stop-and-restart-assertion-from-sequence/36061 "2019-05-07T07:27:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerin1](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/6de8d8/32.png) [@jerin1](https://verificationacademy.com/forums/u/jerin1)\
**Post date:** [May 7, 2019, 7:27am UTC](https://verificationacademy.com/forums/t/stop-and-restart-assertion-from-sequence/36061/1 "2019-05-07T07:27:34Z")

</div>

Is there a way to stop and restarts assertions from the uvm sequence.

I have a testbench requirement where in the middle of a sequence there is a dirty period,where the assertions are expected to fail. I want to disable  
all the assertions (under testbench heirarchy) during this dirty period and enable it again after this dirty period is over.

I tried adding following in my sequence, but it gave error  
$assertoff(1,uvm\_test\_top.testbench);

```
$assertoff(1,testbench);

```

\*The name (‘uvm\_test\_top.testbench’) was not found in the current scope. Please verify the spelling of the name ‘uvm\_test\_top.testbench’

\*\* Error (suppressible): …/…/…/…/verification/testcases/sequences/axi\_rgm\_seq\_lib\_hdmi\_2\_1\_b2b.sv(8943): (vlog-7027) The name (‘testbench’) was not found in the current scope. Please verify the spelling of the name ‘testbench’.\*

Could you please advice on what should be my approach for this requirement.

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:** [May 7, 2019, 1:50pm UTC](https://verificationacademy.com/forums/t/stop-and-restart-assertion-from-sequence/36061/2 "2019-05-07T13:50:16Z")

</div>

_In reply to [jerin](https://verificationacademy.com/forums/t/stop-and-restart-assertion-from-sequence/36061):_

Assertions are always signal- related. Defining a property/assertion allows you to switch-off thhe evaluation for certain periods using a corresponding signal.  
The construct is

```verilog
disable iff(your_signal).

```

As far as the value of your signal is high the evalution of your property is suppressed.

A reasobale solution would be to generate ‘your\_signal’ in your driver, depending on a special indication in your seq\_item.

---

<div class="post-metadata">

**Author:** ![jerin1](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/6de8d8/32.png) [@jerin1](https://verificationacademy.com/forums/u/jerin1)\
**Post date:** [May 8, 2019, 1:58am UTC](https://verificationacademy.com/forums/t/stop-and-restart-assertion-from-sequence/36061/3 "2019-05-08T01:58:25Z")

</div>

_In reply to [chr\_sue](https://verificationacademy.com/forums/t/stop-and-restart-assertion-from-sequence/36061/2):_  
Thanks chr\_sue.  
I will try it out.
