mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-31 01:34:16 +02:00
- cast functions in separate scopes are no longer omitted or removed - package item reordering excludes locally declared names - test runner ensures output is stable after first iteration
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
|