mirror of https://github.com/zachjs/sv2v.git
9 lines
182 B
Systemverilog
9 lines
182 B
Systemverilog
|
|
module top;
|
||
|
|
localparam i = 1234;
|
||
|
|
function automatic integer f;
|
||
|
|
input integer i;
|
||
|
|
f = i + 1;
|
||
|
|
endfunction
|
||
|
|
initial $display(i, f(0), f(i + 1));
|
||
|
|
endmodule
|