// DESCRIPTION: Verilator: Verilog Test module // // This file ONLY is placed into the Public Domain, for any use, // without warranty, 2017 by Josh Redford. // SPDX-License-Identifier: CC0-1.0 interface my_if; logic valid; logic [7:0] data ; modport slave_mp ( input valid, input data ); modport master_mp ( output valid, output data ); endinterface module t ( input wire clk, my_if.slave_mp in_if, my_if.master_mp out_if ); my_if my_i (); always @(posedge clk) begin my_i.valid <= in_if.valid; my_i.data <= in_if.data; end assign out_if.valid = my_i.valid; assign out_if.data = my_i.data; endmodule