In reply to akivama:
1800 defines one of options for a sequence as:
sequence_expr ::=
| (sequence_expr {, sequence_match_item}) [sequence_abbrev]
For example:
property p;
int v;
(a , v=data) [*2] |-> ##1 sig==data;
// (sequence_expr {, sequence_match_item}) [sequence_abbrev]
endproperty
// for your example:
bit[15:0] sig;
property p;
bit[15:0] v; // same type as the type for sig
($rose(result_valid)) |->
##1 (1,v=sig) ##1 v==sig[*0:$] ##1 ($rose(result_valid));
// The "1" in (1, v=sig) is the sequence_expr, alwasy true to set the local variable
Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us
** SVA Handbook 4th Edition, 2016 ISBN 978-1518681448
…
- SVA Package: Dynamic and range delays and repeats SVA: Package for dynamic and range delays and repeats | Verification Academy
- 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) https://rb.gy/cwy7nb - Papers:
- Understanding the SVA Engine,
Verification Horizons - July 2020 | Verification Academy - Reflections on Users’ Experiences with SVA
Reflections on Users’ Experiences with SVA | Verification Horizons - March 2022 | Verification Academy - SVA Alternative for Complex Assertions
Verification Horizons - March 2018 Issue | Verification Academy - SVA in a UVM Class-based Environment
SVA in a UVM Class-based Environment | Verification Horizons | Verification Academy
Udemy courses by Srinivasan Venkataramanan (http://cvcblr.com/home.html)
https://www.udemy.com/course/sva-basic/
https://www.udemy.com/course/sv-pre-uvm/