Forum Discussion
Altera_Forum
Honored Contributor
7 years agoBest to write a counter to count the number of cycles signal is high, then assert the counter when the signal goes low.
Int cnt;
Always @(posedge clk) begin
If signal = 1'b0 cnt = 0;
Else cnt = cnt + 1;
End;
Assert property ( @(posedge clk) $fell(sig) |-> (cnt >= 10 && cnt <= 20); )