22 lines
435 B
Systemverilog
22 lines
435 B
Systemverilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
// SPDX-FileCopyrightText: 2025 Wilson Snyder
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
module t (
|
|
input a,
|
|
input clk
|
|
);
|
|
|
|
function logic func(input logic i);
|
|
return i;
|
|
endfunction
|
|
|
|
global clocking @(posedge clk);
|
|
endclocking
|
|
|
|
assert property (@(posedge clk) $future_gclk(a) == func(a));
|
|
|
|
endmodule
|