# A grant must at some time have been preceded by a request

**URL:** <https://verificationacademy.com/forums/t/a-grant-must-at-some-time-have-been-preceded-by-a-request/40033>\
**Category:** SystemVerilog\
**Tags:** RTL, SystemVerilog, ASICIC-Verification-Trends, systemverilog-past\
**Created:** [February 7, 2022, 5:24pm UTC](https://verificationacademy.com/forums/t/a-grant-must-at-some-time-have-been-preceded-by-a-request/40033 "2022-02-07T17:24:12Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [May 28, 2022, 2:48pm UTC](https://verificationacademy.com/forums/t/a-grant-must-at-some-time-have-been-preceded-by-a-request/40033/8 "2022-05-28T14:48:27Z")

</div>

_In reply to [ben@SystemVerilog.us](https://verificationacademy.com/forums/t/a-grant-must-at-some-time-have-been-preceded-by-a-request/40033/7):_  
$rose(gnt) |-\> s\_req.triggered;  
For the triggered solution to work, use this sequence declaration

```verilog

sequence s_req;
  @(posedge clk). // updated. 
  first_match($rose(req) ##[1:$] gnt; // ##1 1'b1); // endpoint 1 cycle after gnt
endsequence
// the endpoint of the sequence must end when 
// the $rose(gnt) occurs
// Note: This solution has many threads for each successful attempt

```

Read my paper _Understanding the SVA Engine_,  
[https://verificationacademy.com/verification-horizons/july-2020-volume-16-issue-2](https://verificationacademy.com/verification-horizons/july-2020-volume-16-issue-2)

---

_[View the full topic](https://verificationacademy.com/forums/t/a-grant-must-at-some-time-have-been-preceded-by-a-request/40033)._
