2025-08-24 03:16:53 +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: 2025 Wilson Snyder
|
2025-08-24 03:16:53 +02:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
2025-12-21 03:46:43 +01:00
|
|
|
module t (
|
|
|
|
|
input a,
|
|
|
|
|
input clk
|
|
|
|
|
);
|
2025-08-24 03:16:53 +02:00
|
|
|
|
|
|
|
|
function logic func(input logic i);
|
|
|
|
|
return i;
|
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
global clocking @(posedge clk);
|
|
|
|
|
endclocking
|
|
|
|
|
|
|
|
|
|
assert property (@(posedge clk) $future_gclk(a) == func(a));
|
|
|
|
|
|
|
|
|
|
endmodule
|