verilator/test_regress/t/t_while_timing_control.v

25 lines
454 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2022 Antmicro Ltd
// SPDX-License-Identifier: CC0-1.0
2026-02-17 05:21:53 +01:00
module t;
logic clk = 0;
logic out = 1;
2026-02-17 05:21:53 +01:00
always #5 clk = ~clk;
2026-02-17 05:21:53 +01:00
initial begin
while (1) begin
if (out) begin
break;
end
2026-02-17 05:21:53 +01:00
@(negedge clk);
end
2026-02-17 05:21:53 +01:00
$write("*-* All Finished *-*\n");
$finish();
end
endmodule