interface conversion supports positional port bindings

- also fixes an issue where system tasks were inadvertently prefixed
  during the interface conversion
This commit is contained in:
Zachary Snow
2020-02-09 13:42:45 -05:00
parent 7a00c36a70
commit 8a008c3024
3 changed files with 50 additions and 15 deletions
+14
View File
@@ -0,0 +1,14 @@
interface Interface;
logic x;
modport Modport(
input x
);
initial $display("Interface", x);
endinterface
module Module(Interface.Modport foo);
initial $display("Module", foo.x);
endmodule
module top;
Interface i();
Module m(i);
endmodule
+8
View File
@@ -0,0 +1,8 @@
module Module(input wire x);
initial $display("Module", x);
endmodule
module top;
wire i_x;
initial $display("Interface", i_x);
Module m(.x(i_x));
endmodule