# 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/33210>\
**Category:** SystemVerilog\
**Tags:** system-verilog-assertion, SystemVerilog\
**Created:** [June 14, 2017, 3:26pm 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/33210 "2017-06-14T15:26:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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, 7:58am 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/33210/3 "2017-06-15T07:58:21Z")

</div>

Thanks ben.

Sorry for the typo actually scenario is like below-  
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 …

---

_[View the full topic](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/33210)._
