Files
iverilog/ivtest/ivltests/repeat_expr_probe.v
T
Stephen Williams cea237b407 Add ivtest to the iverilog source tree
By adding ivtest to the iverilog source tree, it is easier to keep
the regression test synchronized with the source that is being tested.
This should be especially helpful for PRs that add a new feature, and
have a matching ivtest PR with the regression test for that feature.
2022-01-15 10:18:50 -08:00

15 lines
356 B
Verilog

module top;
reg [2:0] delay;
integer lp;
initial begin
lp = 0;
delay = 3'b000;
// The delay+4 expression was failing because probe_expr_width() was
// not called before elab_and_eval() with an expression width of -1.
repeat (delay+4) lp = lp + 1;
if (lp != 4) $display("FAILED");
else $display("PASSED");
end
endmodule