mirror of https://github.com/zachjs/sv2v.git
9 lines
187 B
Verilog
9 lines
187 B
Verilog
|
|
module top;
|
||
|
|
function automatic integer func;
|
||
|
|
input integer inp;
|
||
|
|
func = inp * 2;
|
||
|
|
endfunction
|
||
|
|
localparam integer X = func(1);
|
||
|
|
initial $display(X);
|
||
|
|
endmodule
|