2022-11-09 02:01:08 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
2026-01-27 02:24:34 +01:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
|
|
|
// SPDX-FileCopyrightText: 2022 Antmicro Ltd
|
2022-11-09 02:01:08 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
module t (
|
|
|
|
|
input clk
|
|
|
|
|
);
|
2022-11-09 02:01:08 +01:00
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
function void infinite_loop;
|
|
|
|
|
do begin
|
|
|
|
|
continue;
|
|
|
|
|
end while (1);
|
|
|
|
|
endfunction
|
2022-11-09 02:01:08 +01:00
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
always @(posedge clk) begin
|
|
|
|
|
infinite_loop();
|
|
|
|
|
$stop;
|
|
|
|
|
end
|
2022-11-09 02:01:08 +01:00
|
|
|
endmodule
|