# Assertion to ensure a signal comes up only few number of times in 100 clocks

**URL:** <https://verificationacademy.com/forums/t/assertion-to-ensure-a-signal-comes-up-only-few-number-of-times-in-100-clocks/32440>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, assetions\
**Created:** [October 19, 2016, 6:52pm UTC](https://verificationacademy.com/forums/t/assertion-to-ensure-a-signal-comes-up-only-few-number-of-times-in-100-clocks/32440 "2016-10-19T18:52:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ljgiordano](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/l/b77776/32.png) [@ljgiordano](https://verificationacademy.com/forums/u/ljgiordano)\
**Post date:** [October 19, 2016, 8:51pm UTC](https://verificationacademy.com/forums/t/assertion-to-ensure-a-signal-comes-up-only-few-number-of-times-in-100-clocks/32440/3 "2016-10-19T20:51:03Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/assertion-to-ensure-a-signal-comes-up-only-few-number-of-times-in-100-clocks/32440/2):_

Hi Dave, I was studying this problem too, and thought that that Nonconsecutive operator would be a robust way to check that the signal in question was asserted 5 times;

Nonconsecutive Repetition

> **[RenerTa.com is for sale | HugeDomains](https://www.hugedomains.com/domain_profile.cfm?d=renerta.com)**
>
> Choosing the right domain name can be overwhelming. Our personalized customer service helps you get a great domain.

Nonconsecutive repetition specifies finitely many iterative matches of the operand Boolean expression, with a delay of one or more clock ticks from one match of the operand to the next successive match and no match of the operand strictly in between. The overall repetition sequence matches at or after the last iterative match of the operand, but before any later match of the operand.

sequence Write\_4;  
@(negedge clk) (!WR & RD) [=4]  
endsequence

The Write\_4 sequence describes 4 not necessarily consecutive writes to memory.

---

_[View the full topic](https://verificationacademy.com/forums/t/assertion-to-ensure-a-signal-comes-up-only-few-number-of-times-in-100-clocks/32440)._
