Files
iverilog/ivtest/ivltests/program5b.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

14 lines
241 B
Verilog

module test(input wire foo);
initial $display("FAILED", foo);
final $display(foo);
endmodule // test
program main;
reg foo = 1;
// It is not legal to instantiate modules in program blocks
test dut(foo);
endprogram // main