Assertion on req and gnt signals

In reply to pk_94:

 
// req forllowed by 2 grants
ap_req_grant_grant: assert property(@ (posedge clk)
  $rose(req) |=>  grant[->2] );  
// No req until after the 2nd grant
// a grant cannot occur in the same cycle as req 
ap_grant_noreq_grant: assert property(@ (posedge clk) 
  $rose(grant) |-> !req[*1:$] ##1 grant );  

Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us
For training, consulting, services: contact Home - My cvcblr


  1. SVA Alternative for Complex Assertions
    Verification Horizons - March 2018 Issue | Verification Academy
  2. SVA: Package for dynamic and range delays and repeats | Verification Academy
  3. SVA in a UVM Class-based Environment
    SVA in a UVM Class-based Environment | Verification Horizons | Verification Academy