verilator/test_regress/t/t_trace_empty.v

27 lines
469 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2021 Geza Lore
// SPDX-License-Identifier: CC0-1.0
module t(/*AUTOARG*/
2026-03-10 02:38:29 +01:00
// Inputs
clk
);
2026-03-10 02:38:29 +01:00
/* verilator tracing_off */
2026-03-10 02:38:29 +01:00
input clk;
2026-03-10 02:38:29 +01:00
reg [7:0] cyc = 8'd0;
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
endmodule