# Unbounded delay range in Assertion Property

**URL:** <https://verificationacademy.com/forums/t/unbounded-delay-range-in-assertion-property/30879>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, unbounded-delay-range, concurrent-assertion\
**Created:** [July 17, 2015, 7:17am UTC](https://verificationacademy.com/forums/t/unbounded-delay-range-in-assertion-property/30879 "2015-07-17T07:17:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dilip\_Bagadi](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dilip_bagadi/32/2350_2.png) [@Dilip\_Bagadi](https://verificationacademy.com/forums/u/Dilip_Bagadi)\
**Post date:** [July 17, 2015, 7:17am UTC](https://verificationacademy.com/forums/t/unbounded-delay-range-in-assertion-property/30879/1 "2015-07-17T07:17:46Z")

</div>

Hi,

If unbounded delay range is used in an assertion property, it will be checking till the end of simulation and it will not give a fail status at the end of test.  
For example,  
property p1;  
@(posedge clk)  
 |-\> ##[1:$] ;  
endproperty

In the above example, if consequent doesn’t occur throughout the simulation, this assertion won’t give a FAIL.

Is there any way to get a fail status from this assertion before the simulation ends?  
Note: Number of cycles the test runs may be varying.  
Additional information: My TB has an ‘event’ that triggers just before some cycles the test ends.

I had a solution of asserting a flag at the start and deasserting after the consequent occurs; and at the ‘event’ checking for the flag through one more assertion, but this will increase the code as i have to write similar checks for all the flags in many assertions.

Regards,  
Dilip

---

<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:** [July 17, 2015, 7:40am UTC](https://verificationacademy.com/forums/t/unbounded-delay-range-in-assertion-property/30879/2 "2015-07-17T07:40:24Z")

</div>

Qualify as **strong** sequences that have range delays or consecutive repetition operators (e.g., [\*, [-\>, [= , and are consequents in an assertion. This is important when it is necessary to qualify an assertion as a failure if the consequent never terminates at the end of simulation. Example:

```verilog

   ap_ab_recommend: assert property(@ (posedge clk) a |-> strong([1:$] b)); // YES!!!
   ap_ab_weak: assert property(@ (posedge clk) a |-> ([1:$] b)); // !!!NO
   ap_abc_recommend: assert property(@ (posedge clk) a |-> strong(b[*) ##1 c); // YES!!!
   ap_abc_weak: assert property(@ (posedge clk) a |-> (b[*) ##1 c); // !!!NO 

```

## In Questa, vsim has a switch named “-onfinish”. Specifying “-onfinish stop” on the vsim command line customizes the kernel shutdown behavior at the end of simulation when $finish() is exersized in the model (e.g., initial #4000 $finish();). Valid modes for " onfinish" include ask, stop, exit, final (Default: ask).

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

* * *

---

<div class="post-metadata">

**Author:** ![Dilip\_Bagadi](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dilip_bagadi/32/2350_2.png) [@Dilip\_Bagadi](https://verificationacademy.com/forums/u/Dilip_Bagadi)\
**Post date:** [July 20, 2015, 1:24pm UTC](https://verificationacademy.com/forums/t/unbounded-delay-range-in-assertion-property/30879/3 "2015-07-20T13:24:06Z")

</div>

Hi Ben,

Is “strong” supported by all the tools? Is this recommended in LRM?

Regards,  
Dilip

---

<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:** [July 20, 2015, 2:28pm UTC](https://verificationacademy.com/forums/t/unbounded-delay-range-in-assertion-property/30879/4 "2015-07-20T14:28:16Z")

</div>

_In reply to [Dilip Bagadi](https://verificationacademy.com/forums/t/unbounded-delay-range-in-assertion-property/30879/3):_

I believe that it is supported, as the concept of “strong” was in the original 1800’2005.  
I know that the major 3 vendors (Mentor, Cadence, Synopsys) do support it.  
Ben

---

<div class="post-metadata">

**Author:** ![Dilip\_Bagadi](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dilip_bagadi/32/2350_2.png) [@Dilip\_Bagadi](https://verificationacademy.com/forums/u/Dilip_Bagadi)\
**Post date:** [July 21, 2015, 3:28am UTC](https://verificationacademy.com/forums/t/unbounded-delay-range-in-assertion-property/30879/5 "2015-07-21T03:28:47Z")

</div>

_In reply to [ben@SystemVerilog.us](https://verificationacademy.com/forums/t/unbounded-delay-range-in-assertion-property/30879/4):_

Thanks Ben!!!
