mirror of https://github.com/zachjs/sv2v.git
15 lines
274 B
Systemverilog
15 lines
274 B
Systemverilog
|
|
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
|