Files
iverilog/ivtest/ivltests/sv_root_task.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
235 B
Verilog

task a_task (input int id);
$display("This is task %0d.", id);
endtask
// This should print the following:
// This is task 2.
// This is task 1.
module top;
initial begin
a_task(2);
a_task(1);
end
endmodule