mirror of https://github.com/zachjs/sv2v.git
12 lines
233 B
Systemverilog
12 lines
233 B
Systemverilog
|
|
module top;
|
||
|
|
function automatic integer f;
|
||
|
|
input integer x;
|
||
|
|
output integer y;
|
||
|
|
f = x * 3;
|
||
|
|
y = x * 5;
|
||
|
|
endfunction
|
||
|
|
integer x, y;
|
||
|
|
initial x = f(-1, y);
|
||
|
|
initial $display(x, y);
|
||
|
|
endmodule
|