# Assertion to check req holds until ack

**URL:** <https://verificationacademy.com/forums/t/assertion-to-check-req-holds-until-ack/38707>\
**Category:** SystemVerilog\
**Tags:** throughout, SystemVerilog, Assertion-system-verilog, assertion\
**Created:** [February 11, 2021, 2:06am UTC](https://verificationacademy.com/forums/t/assertion-to-check-req-holds-until-ack/38707 "2021-02-11T02:06:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 11, 2021, 5:12am UTC](https://verificationacademy.com/forums/t/assertion-to-check-req-holds-until-ack/38707/2 "2021-02-11T05:12:11Z")

</div>

_In reply to [lisa.lalice](https://verificationacademy.com/forums/t/assertion-to-check-req-holds-until-ack/38707):_  
Your assertion does not meet the waveform you display  
(dcr\_usr\_rfsh\_req throughout ($rose(dsr\_usr\_rfsh\_ack)[-\>1] ##0 $fell(dcr\_usr\_rfsh\_req)));

 ![](https://verificationacademy.com/forums/uploads/default/original/1X/ea24b8b0dce3ce187f10c04236010deecdccfdb2.png)

 ![](https://verificationacademy.com/forums/uploads/default/original/1X/ea24b8b0dce3ce187f10c04236010deecdccfdb2.png)

If you want anassertion to meet your waveform where dcr\_usr\_rfsh\_req==0 when  
$rose(dsr\_usr\_rfsh\_ack)==1 then do the following:

```verilog
$rose (dcr_usr_rfsh_req) |-> 
  (dcr_usr_rfsh_req[*1:$] ##1 !dcr_usr_rfsh_req intersect
  ($rose(dsr_usr_rfsh_ack)[->1] ##0 $fell(dcr_usr_rfsh_req)));

```

Ben Cohen  
[http://www.systemverilog.us/](http://www.systemverilog.us/) [ben@systemverilog.us](mailto:ben@systemverilog.us)  
For training, consulting, services: contact [http://cvcblr.com/home.html](http://cvcblr.com/home.html)  
\*\* SVA Handbook 4th Edition, 2016 ISBN 978-1518681448  
…

1. SVA Package: Dynamic and range delays and repeats [SVA: Package for dynamic and range delays and repeats - SystemVerilog - Verification Academy](https://rb.gy/a89jlh)
2. Free books: Component Design by Example [https://rb.gy/9tcbhl](https://rb.gy/9tcbhl)  
Real Chip Design and Verification Using Verilog and VHDL($3) [Amazon.com](https://rb.gy/cwy7nb)
3. Papers:

- Understanding the SVA Engine,  
[Verification Horizons](https://verificationacademy.com/verification-horizons/july-2020-volume-16-issue-2)
- SVA Alternative for Complex Assertions  
[https://verificationacademy.com/news/verification-horizons-march-2018-issue](https://verificationacademy.com/news/verification-horizons-march-2018-issue)
- SVA in a UVM Class-based Environment  
[https://verificationacademy.com/verification-horizons/february-2013-volume-9-issue-1/SVA-in-a-UVM-Class-based-Environment](https://verificationacademy.com/verification-horizons/february-2013-volume-9-issue-1/SVA-in-a-UVM-Class-based-Environment)

---

_[View the full topic](https://verificationacademy.com/forums/t/assertion-to-check-req-holds-until-ack/38707)._
