mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 01:18:10 +02:00
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
|