2023-10-21 08:36:29 +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: 2023 Alex Mykyta
|
2023-10-21 08:36:29 +02:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
2026-03-03 13:21:24 +01:00
|
|
|
module t;
|
2026-03-08 23:26:40 +01:00
|
|
|
logic clk = 0;
|
|
|
|
|
logic x;
|
|
|
|
|
logic y;
|
|
|
|
|
always #1ns clk = ~clk;
|
|
|
|
|
clocking cb @(posedge clk);
|
|
|
|
|
output #1ns x;
|
|
|
|
|
input #1step y;
|
|
|
|
|
endclocking
|
|
|
|
|
initial begin
|
|
|
|
|
repeat (10) @(posedge clk);
|
|
|
|
|
$display("*-* All Finished *-*");
|
|
|
|
|
$finish();
|
|
|
|
|
end
|
2023-10-21 08:36:29 +02:00
|
|
|
endmodule
|