In reply to Have_A_Doubt:
- The .triggered can be used as a trigger for the cover group, but this is not going to work in this case because the framelength is computed within the sequences, and it’s value needs to be copied to the module variable.
- The reason Display statement "1st cnt at … " executes multiple times is because at every clocking event (the posedge clk) you start a new independent thread for the evaluation of the sequence Detect_EOP.
- On the multiple times, the issue is that you have a new thread at every clocking event.
# KERNEL: 1st cnt at 5 // First thread
# KERNEL: Property PASSes at 15 // 2nd new thread is vacuous (not a $rose(SOP))
// The PASS action block is displayed, assertion is vacuously TRUE
# KERNEL: Property PASSes at 25 // 3rd new thread is vacuous
# KERNEL: Property PASSes at 35 // 4th new thread is vacuous
# KERNEL: Property PASSes at 45 // 5th new thread is vacuous
# KERNEL: cnt is 1 // First thread is nonvacuously TRUE
// "cnt is 1" message is not the same as "1st cnt at" message
# KERNEL: Property PASSes at 55 // First thread passes nonvacuously
# KERNEL: Property PASSes at 55 // ?? don't know why the repeat here
#
Read my paper Understanding the SVA Engine (item 3 below)
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
- A Pragmatic Approach to VMM Adoption
http://SystemVerilog.us/vf/VMM/VMM_pdf_release070506.zip
http://SystemVerilog.us/vf/VMM/VMM_code_release_071806.tar
- 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/