# Cover data increment/decrement/doesn't changed with transition statement

**URL:** <https://verificationacademy.com/forums/t/cover-data-increment-decrement-doesnt-changed-with-transition-statement/41278>\
**Category:** Coverage\
**Tags:** System-Verilog, Coverage\
**Created:** [February 15, 2023, 12:50pm UTC](https://verificationacademy.com/forums/t/cover-data-increment-decrement-doesnt-changed-with-transition-statement/41278 "2023-02-15T12:50:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [February 16, 2023, 12:34am UTC](https://verificationacademy.com/forums/t/cover-data-increment-decrement-doesnt-changed-with-transition-statement/41278/2 "2023-02-16T00:34:53Z")

</div>

_In reply to [rraa](https://verificationacademy.com/forums/t/cover-data-increment-decrement-doesnt-changed-with-transition-statement/41278):_

Transitions in coverpoints is limited. You can use the $past() sampling function to make it a little easier so you don’t have to declare a separate variable.

```verilog
covergroup inc_cg @(posedge clk);
inc_cp: coverpoint signal==$past(signal,,,@(posedge clk)+1 {
   bins T = {1};
}

```

It’s slightly easier using a cover directive

```verilog
cover property (@(posedge clk) signal == $past(signal)+1;);

```

---

_[View the full topic](https://verificationacademy.com/forums/t/cover-data-increment-decrement-doesnt-changed-with-transition-statement/41278)._
