verilator/test_regress/t/t_mod_interface_clocking_bad.v

36 lines
553 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain
// SPDX-FileCopyrightText: 2025 Antmicro
// SPDX-License-Identifier: CC0-1.0
interface mem_if (
input wire clk
);
logic reset;
clocking cb @(posedge clk);
output reset;
endclocking
modport mp(input clk, clocking reset, clocking cx);
endinterface
module sub (
mem_if.mp x
);
initial begin
x.cb.reset <= 1;
end
endmodule
2026-03-03 13:21:24 +01:00
module t;
logic clk = 0;
mem_if m_if (clk);
sub i_sub (m_if);
endmodule