verilator/test_regress/t/t_func_inconly.v

22 lines
498 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2020 Wilson Snyder
// SPDX-License-Identifier: CC0-1.0
module t;
task main;
integer varintask;
varintask = 0;
while (varintask < 4) begin
varintask = varintask + 1;
end
if (varintask != 4) $stop;
endtask
initial begin
main;
$write("*-* All Finished *-*\n");
$finish;
end
endmodule