mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-03 16:39:06 +02:00
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:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user