mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-28 16:53:45 +02:00
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.
15 lines
356 B
Verilog
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
|