mirror of https://github.com/zachjs/sv2v.git
12 lines
181 B
Systemverilog
12 lines
181 B
Systemverilog
|
|
interface Foo;
|
||
|
|
function bar;
|
||
|
|
input integer x;
|
||
|
|
return x * x;
|
||
|
|
endfunction
|
||
|
|
endinterface
|
||
|
|
|
||
|
|
module top;
|
||
|
|
Foo foo();
|
||
|
|
initial $display(foo.bar(3));
|
||
|
|
endmodule
|