# What is the work of disable iff (expression)?

**URL:** <https://verificationacademy.com/forums/t/what-is-the-work-of-disable-iff-expression/34081>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, Assertion-system-verilog\
**Created:** [February 13, 2018, 3:40pm UTC](https://verificationacademy.com/forums/t/what-is-the-work-of-disable-iff-expression/34081 "2018-02-13T15:40:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahota](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/b5e925/32.png) [@ahota](https://verificationacademy.com/forums/u/ahota)\
**Post date:** [February 13, 2018, 3:40pm UTC](https://verificationacademy.com/forums/t/what-is-the-work-of-disable-iff-expression/34081/1 "2018-02-13T15:40:05Z")

</div>

What is the work of disable iff (expression)?  
Can someone please tell this

---

<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:** [February 13, 2018, 4:59pm UTC](https://verificationacademy.com/forums/t/what-is-the-work-of-disable-iff-expression/34081/2 "2018-02-13T16:59:42Z")

</div>

_In reply to [big123](https://verificationacademy.com/forums/t/what-is-the-work-of-disable-iff-expression/34081):_

It is an asynchronous reset. When the   
disable iff _expression_ is true, any active attempts of the property gets terminated (neither passes or fails).

---

<div class="post-metadata">

**Author:** ![Ankit\_Bhange](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@Ankit\_Bhange](https://verificationacademy.com/forums/u/Ankit_Bhange)\
**Post date:** [June 14, 2021, 3:29am UTC](https://verificationacademy.com/forums/t/what-is-the-work-of-disable-iff-expression/34081/3 "2021-06-14T03:29:00Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/what-is-the-work-of-disable-iff-expression/34081/2):_

Hi Dave,

Please look at the waves below:

 ![](https://verificationacademy.com/forums/uploads/default/original/1X/5e1c4e74f7a2e6d96a7f4e03096d9569adbd9198.png)

for the following property:

```verilog
property sig1_high_throughout_sig2 (sig1, sig2);
        $rose(sig2) |-> sig1 throughout ($rose(sig2) ##1 sig2[*1:$] ##1 $fell(sig2));
    endproperty

```

```verilog
assert property (@(posedge test_clk iff rstb)sig1_high_throughout_sig2(sig1,!sig2));

```

Here, the assertion is enabled when rstb is 1. The rstb goes to 0 (disabling the assertion) then comes back up after a while. When it comes back up the assertion is resumed and consequently, fails. My understanding was that if the assertion is disabled, the ongoing check is terminated, and a new check will begin at the trigger condition.

Could you clarify if I have misunderstood it?  
Could it be a tool issue?

Thanks  
Ankit

---

<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 14, 2021, 6:03am UTC](https://verificationacademy.com/forums/t/what-is-the-work-of-disable-iff-expression/34081/4 "2021-06-14T06:03:55Z")

</div>

_In reply to [Ankit Bhange](https://verificationacademy.com/forums/t/what-is-the-work-of-disable-iff-expression/34081/3):_

You did not use the **disable iff** construct. I think you meant to write

```verilog
assert property (@(posedge test_clk) disable iff (!rstb) sig1_high_throughout_sig2(sig1,!sig2));

```
