mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-31 09:44:27 +02:00
16 lines
376 B
Systemverilog
16 lines
376 B
Systemverilog
module top;
|
|||
|
|
parameter YES = 1;
|
||
|
|
if (YES) begin
|
||
|
|
function automatic [31:0] help;
|
||
|
|
input [31:0] inp;
|
||
|
|
help = inp + 1;
|
||
|
|
endfunction
|
||
|
|
initial $display("A %0d", help(0));
|
||
|
|
end
|
||
|
|
function automatic [31:0] help;
|
||
|
|
input [31:0] inp;
|
||
|
|
help = inp + 2;
|
||
|
|
endfunction
|
||
|
|
initial $display("B %0d", help(0));
|
||
|
|
endmodule
|