verilator/test_regress/t/t_while_finish.v

22 lines
476 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2025 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t;
int loops;
initial begin
#1;
// verilator lint_off INFINITELOOP
while (1'b1) begin
$write("*-* All Finished *-*\n");
$finish; // Infinite loop, but for this finish
if (++loops > 100) $stop;
end
end
endmodule