# Assertion to check if A does not rise between pulse B and Pulse C

**URL:** <https://verificationacademy.com/forums/t/assertion-to-check-if-a-does-not-rise-between-pulse-b-and-pulse-c/30429>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, assertion-systemverilog\
**Created:** [March 7, 2015, 3:51am UTC](https://verificationacademy.com/forums/t/assertion-to-check-if-a-does-not-rise-between-pulse-b-and-pulse-c/30429 "2015-03-07T03:51:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![user49](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/user49/32/4533_2.png) [@user49](https://verificationacademy.com/forums/u/user49)\
**Post date:** [March 18, 2015, 4:35pm UTC](https://verificationacademy.com/forums/t/assertion-to-check-if-a-does-not-rise-between-pulse-b-and-pulse-c/30429/4 "2015-03-18T16:35:33Z")

</div>

_In reply to [cool\_cake20](https://verificationacademy.com/forums/t/assertion-to-check-if-a-does-not-rise-between-pulse-b-and-pulse-c/30429/3):_

What I initially wrote was correct for the original requirements:  
“Pulse A should **not fall** between these two pulses(B and C). It be either before B or after C.”  
meaning (my interpretation) that if A==0, it should fail.  
ap\_abc: assert property(reject\_on (!a) // reject if a==0, since !a==1, and abort condition is true  
@(posedge b) 1’b1 |-\> @(posedge c) 1’b1); / is correct.

For this requirement  
“If in between B and C there may be any number of clock cycles like [1:$] in a given simulation but A should **not be become high** (meaning must be 0, if 1 → fail) in between B and C.” then  
ap\_abc: assert property(reject\_on (a)  
@(posedge b) 1’b1 |-\> @(posedge c) 1’b1); / is correct.

From the syntax of a property  
property\_expr ::= // includes  
reject\_on ( expression\_or\_dist ) property\_expr  
Thus,

assert property (@(posedge clk) rose(b) |-\> (reject\_on(a) ##[1:] c); // is correct  
// The " c[1:]" is incorect, unless you mean c[\*1:], which is a repeat operator

* * *

Ben Cohen  
[http://www.systemverilog.us/](http://www.systemverilog.us/) [ben@systemverilog.us](mailto:ben@systemverilog.us)

- SystemVerilog Assertions Handbook 3rd Edition, 2013 ISBN 878-0-9705394-3-6
- A Pragmatic Approach to VMM Adoption 2006 ISBN 0-9705394-9-5
- Using PSL/SUGAR for Formal and Dynamic Verification 2nd Edition, 2004, ISBN 0-9705394-6-0
- Real Chip Design and Verification Using Verilog and VHDL, 2002 isbn 0-9705394-2-8
- Component Design by Example ", 2001 ISBN 0-9705394-0-1
- VHDL Coding Styles and Methodologies, 2nd Edition, 1999 ISBN 0-7923-8474-1
- VHDL Answers to Frequently Asked Questions, 2nd Edition ISBN 0-7923-8115

* * *

---

_[View the full topic](https://verificationacademy.com/forums/t/assertion-to-check-if-a-does-not-rise-between-pulse-b-and-pulse-c/30429)._
