How to write the assertions

In reply to srbeeram:
Rephrasing the requirements:

[list=1]
Following a new “b” signal “a” is asserted after any number of cycles. This is then followed by the signal “a” being deasserted after any number of cycles.


ap: assert property(
    @(posedge clk) $rose(b) |-> a[->1] ##1 !a[->1]);  

Note: b[->1] is equivalent to:
!b[*0:$] ##1 b

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

** 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 | Verification Academy
  2. Free books: Component Design by Example FREE BOOK: Component Design by Example … A Step-by-Step Process Using VHDL with UART as Vehicle | Verification Academy
    Real Chip Design and Verification Using Verilog and VHDL($3) Amazon.com
  3. Papers: