In reply to shahparth08:
@(posedge CLK) disable iff(~resetb)…
Thus, resetb is a reset signal that goes from 0 to 1.
Assertion is disabled when resetb==0.
@(posedge CLK) disable iff(~resetb) ((start === 1'b1),addr_l=reg_addr,apid_l=ap_id) ##1 @(posedge CLK_OUT) (~resetb) [*4]|=>...
//If (~resetb==0) the assertion is disabled, thus never fires.
// Since you are trying to test the after effect of a reset, you need to delete the disable. Thus,
property req_to_out_chk;
logic [19:0] addr_l;
logic [11:0] apid_l;
@(posedge CLK) ((start === 1'b1),addr_l=reg_addr,apid_l=ap_id) ##1 @(posedge CLK_OUT) (~resetb) [*4]
|=>( (start_out == 1) && (addr_out == addr_l) && (ap_id_out == apid_l) );
endproperty
// BTW, arethe clocks working at startup?
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
…
- 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) Amazon.com - Papers:
- 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 - Understanding the SVA Engine,
Verification Horizons - July 2020 | Verification Academy