# Assertion to check stability of a signal for 'n' clocks

**URL:** <https://verificationacademy.com/forums/t/assertion-to-check-stability-of-a-signal-for-n-clocks/31698>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, stability-of-a-signal\
**Created:** [April 11, 2016, 12:06pm UTC](https://verificationacademy.com/forums/t/assertion-to-check-stability-of-a-signal-for-n-clocks/31698 "2016-04-11T12:06:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Jayaraj](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@Jayaraj](https://verificationacademy.com/forums/u/Jayaraj)\
**Post date:** [January 22, 2018, 5:09pm UTC](https://verificationacademy.com/forums/t/assertion-to-check-stability-of-a-signal-for-n-clocks/31698/5 "2018-01-22T17:09:52Z")

</div>

_In reply to [ben@SystemVerilog.us](https://verificationacademy.com/forums/t/assertion-to-check-stability-of-a-signal-for-n-clocks/31698/5):_

Hi Ben,

i want to check an assertion similar;  
LEGAL: assert property(@(posedge clk) disable iff (rst) $rose (signal) |=\>  
$stable(signal)[\*5]);

one addition to above; the signal which i check want to be HIGH for all remaining clk cycles & it should not go unknown(X).

assert\_check: assert property(@(posedge clk) disable iff (rst) $rose (signal) |=\> !($isunknown (signal)) & stable(signal)[\*]) else $error();

pls advise.  
Thanks

---

_[View the full topic](https://verificationacademy.com/forums/t/assertion-to-check-stability-of-a-signal-for-n-clocks/31698)._
