System Verilog Assertions - Nonconsecutive Repetition
Nonconsecutive Repetition : - Repeated, Nonconsecutive Boolean expressions can be defined using [=N] - Nonconsecutive - Not necessarily consecutive - Syntax : expr[=N]; expr must occur N times - Example : When A is high then from the same cycle , there must be two cycles of B before C property NONCONSECUTIVE_REPET; @(negedge CLK) A |-> B[=2] ##1 C; endproperty assert property (NONCONSECUTIVE_REPET); Note: In Non Consecutive Repetition Sequence , here there is no restrictions of number of cycles between second B and C. Go-To Repetition : - Syntax : expr[->N] - Go to repetition operator is similar to the Nonconsecutive operator except expr must be true in the last cycle of the sequence - Example : When A is high then from the same cycle , there must be two cycles of B before C , with C immediately following the second B ...