How to use the undefined delay ($) in SVA

How ##[1:] behave in sva. how to control the assertion in sva If we don't know the exact delay. because while failing the condition ##[1:] delay is not working.

In reply to mukeshkumar.saha@reliabletechsys.com:

You need to clarify your question, possibly with an example.
In any case,

  1. the sequence (a ##[1:$] b) is same as
    (a ##1 b) or (a ##2 b) or …(a ##n b) // where n is infinity
  2. is a sequence in an antecedent has multiple possible matches, then all possible matches need to be tested. Thus,
    (a ##[1:] b) |-> c // can fail, but will never succeed because of above explanation. The fix first_match((a ##[1:] b) |-> c
  3. if consequent, the first_match is not needed because assertion will pass on a success.
    c |-> (a ##[1:$] b) // OK

Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us

  • SystemVerilog Assertions Handbook 3rd Edition, 2013 ISBN 878-0-9705394-3-6
  • A Pragmatic Approach to VMM Adoption 2006 ISBN 0-9705394-9-5
  • Using PSL/SUGAR for Formal and Dynamic Verification 2nd Edition, 2004, ISBN 0-9705394-6-0
  • Real Chip Design and Verification Using Verilog and VHDL, 2002 isbn 0-9705394-2-8
  • Component Design by Example ", 2001 ISBN 0-9705394-0-1
  • VHDL Coding Styles and Methodologies, 2nd Edition, 1999 ISBN 0-7923-8474-1
  • VHDL Answers to Frequently Asked Questions, 2nd Edition ISBN 0-7923-8115