2006-08-26 13:35:28 +02: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: 2005 Wilson Snyder
|
2020-03-21 16:24:24 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2006-08-26 13:35:28 +02:00
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
module t (
|
|
|
|
|
input clk
|
|
|
|
|
);
|
2006-08-26 13:35:28 +02:00
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
reg [65:0] idx /*verilator public*/;
|
|
|
|
|
initial idx = 1;
|
2006-08-26 13:35:28 +02:00
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
always @(posedge clk) begin
|
|
|
|
|
case (idx)
|
|
|
|
|
1: idx = 100;
|
|
|
|
|
100: begin
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
|
|
|
|
default: $stop;
|
|
|
|
|
endcase
|
|
|
|
|
end
|
2006-08-26 13:35:28 +02:00
|
|
|
|
|
|
|
|
endmodule
|