# A problem when using $past() for systemverilog assertion

**URL:** <https://verificationacademy.com/forums/t/a-problem-when-using-past-for-systemverilog-assertion/31197>\
**Category:** SystemVerilog\
**Tags:** SVA, SystemVerilog, assertion, past\
**Created:** [November 6, 2015, 1:56pm UTC](https://verificationacademy.com/forums/t/a-problem-when-using-past-for-systemverilog-assertion/31197 "2015-11-06T13:56:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![caowangyang](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/caowangyang/32/2164_2.png) [@caowangyang](https://verificationacademy.com/forums/u/caowangyang)\
**Post date:** [November 7, 2015, 3:55am UTC](https://verificationacademy.com/forums/t/a-problem-when-using-past-for-systemverilog-assertion/31197/4 "2015-11-07T03:55:52Z")

</div>

_In reply to [ben@SystemVerilog.us](https://verificationacademy.com/forums/t/a-problem-when-using-past-for-systemverilog-assertion/31197/4):_

Hi, Ben,

Thanks again for your great information.

I still have question on @(SAMPCNT). I didn’t get your point there. In Verilog LRM, @(SAMPCNT) will be explained by “any value changed”, so why I can’t use this expression here to indicate whenever the SAMPCNT changed, is there any side-effect ?

Since I am new to SVA, so thanks for your patience :-)

WangYang

---

_[View the full topic](https://verificationacademy.com/forums/t/a-problem-when-using-past-for-systemverilog-assertion/31197)._
