1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
interface A #( parameter B = -1 ); localparam C = B / 8; typedef logic [B-1:0] by_t; b_t b; modport M ( output b ); modport S ( input b ); endinterface module D ( A.M another_interface ); A #(.B(2)) a_interface (); endmodule