# Assertion using $stable with |-\> #\[...\]

**URL:** <https://verificationacademy.com/forums/t/assertion-using-stable-with/37547>\
**Category:** SystemVerilog\
**Tags:** SVA-stable, SystemVerilog, stable, assertion\
**Created:** [May 6, 2020, 12:01pm UTC](https://verificationacademy.com/forums/t/assertion-using-stable-with/37547 "2020-05-06T12:01:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![shanthi](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/54ee81/32.png) [@shanthi](https://verificationacademy.com/forums/u/shanthi)\
**Post date:** [May 6, 2020, 12:36pm UTC](https://verificationacademy.com/forums/t/assertion-using-stable-with/37547/2 "2020-05-06T12:36:40Z")

</div>

_In reply to [ingamara](https://verificationacademy.com/forums/t/assertion-using-stable-with/37547):_  
Your code will be checked as below.

> 

```verilog
assert property(@(posedge clock) $rose(A) |-> ##[1:2] $stable(B));

```

Once $rose(A) is true $stable(B) can be true either in the first or second cycle after $rose(A) is true.

You can write the code as below using continuous repetition operator[\*n]. Using this operator $stable(B) will be checked for true condition continuously for two cycles after $rose(A) is true.

```verilog

 property p1;
    @(posedge clk) $rose(A)|=> $stable(B)[*2];
endproperty

```

---

_[View the full topic](https://verificationacademy.com/forums/t/assertion-using-stable-with/37547)._
