# SVA- How we can write property such that it will check the value which is getting generated either by increments or decrements as below

**URL:** <https://verificationacademy.com/forums/t/sva-how-we-can-write-property-such-that-it-will-check-the-value-which-is-getting-generated-either-by-increments-or-decrements-as-below/33217>\
**Category:** SystemVerilog\
**Tags:** system-verilog-assertion, SystemVerilog\
**Created:** [June 15, 2017, 10:46am UTC](https://verificationacademy.com/forums/t/sva-how-we-can-write-property-such-that-it-will-check-the-value-which-is-getting-generated-either-by-increments-or-decrements-as-below/33217 "2017-06-15T10:46:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ADITYAABHISHEK](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/c77e96/32.png) [@ADITYAABHISHEK](https://verificationacademy.com/forums/u/ADITYAABHISHEK)\
**Post date:** [June 15, 2017, 10:46am UTC](https://verificationacademy.com/forums/t/sva-how-we-can-write-property-such-that-it-will-check-the-value-which-is-getting-generated-either-by-increments-or-decrements-as-below/33217/1 "2017-06-15T10:46:42Z")

</div>

There are below Input signals- WE,WR,RD.  
and output signal - USED  
When WE(Write Empty) = 1, WR(Write Request) = 1, RD(READ REQUEST) = 0 , USED == 0. on first clock cycle, // Need to start Assertion on this  
then till `depth-1 cycle , WE=0,WR=1,RD=0, //Need to check in entire depth-1 cycle.  
then finally on N cycle, USED should be equal to depth. //Need to check on the Nth Cycle  
We need to check on the N Cycle.

But if in between WR = 0 and RD =1 then Depth should increase by 1 for every such clock.

Any lead …

---

<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:** [June 15, 2017, 5:25pm UTC](https://verificationacademy.com/forums/t/sva-how-we-can-write-property-such-that-it-will-check-the-value-which-is-getting-generated-either-by-increments-or-decrements-as-below/33217/2 "2017-06-15T17:25:38Z")

</div>

_In reply to [ADITYA ABHISHEK](https://verificationacademy.com/forums/t/sva-how-we-can-write-property-such-that-it-will-check-the-value-which-is-getting-generated-either-by-increments-or-decrements-as-below/33217):_

see reply in  
[https://verificationacademy.com/forums/systemverilog/sva-how-we-can-write-property-such-it-will-check-value-which-getting-generated-either-increments-or-decrements-below](https://verificationacademy.com/forums/systemverilog/sva-how-we-can-write-property-such-it-will-check-value-which-getting-generated-either-increments-or-decrements-below)
