Add negative-min unbounded test for line coverage

This commit is contained in:
Yilou Wang 2026-04-06 21:35:00 +02:00
parent eca9cf0009
commit 0ddbb88b62
2 changed files with 8 additions and 0 deletions

View File

@ -20,4 +20,8 @@
: ... note: In instance 't'
30 | a5: assert property (@(posedge clk) a |-> ##[cyc:$] b);
| ^~
%Error: t/t_property_sexpr_range_delay_bad.v:34:45: Range delay bounds must be non-negative (IEEE 1800-2023 16.7)
: ... note: In instance 't'
34 | a6: assert property (@(posedge clk) a |-> ##[NEG:$] b);
| ^~
%Error: Exiting due to

View File

@ -29,4 +29,8 @@ module t;
// Non-constant minimum in unbounded range
a5: assert property (@(posedge clk) a |-> ##[cyc:$] b);
// Negative minimum in unbounded range
localparam int NEG = -1;
a6: assert property (@(posedge clk) a |-> ##[NEG:$] b);
endmodule