2021-12-19 16:15:07 +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: 2021 Geza Lore
|
2021-12-19 16:15:07 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
module t(/*AUTOARG*/
|
2026-03-10 02:38:29 +01:00
|
|
|
// Inputs
|
|
|
|
|
clk
|
|
|
|
|
);
|
2021-12-19 16:15:07 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
/* verilator tracing_off */
|
2021-12-19 16:15:07 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
input clk;
|
2021-12-19 16:15:07 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
reg [7:0] cyc = 8'd0;
|
2021-12-19 16:15:07 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
always @(posedge clk) begin
|
|
|
|
|
cyc <= cyc + 1;
|
|
|
|
|
if (cyc == 20) begin
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
|
|
|
|
end
|
2021-12-19 16:15:07 +01:00
|
|
|
|
|
|
|
|
endmodule
|