mirror of https://github.com/zachjs/sv2v.git
16 lines
277 B
Systemverilog
16 lines
277 B
Systemverilog
|
|
package PKG;
|
||
|
|
function automatic logic f;
|
||
|
|
return 0;
|
||
|
|
endfunction
|
||
|
|
|
||
|
|
function automatic logic g;
|
||
|
|
automatic logic res = f();
|
||
|
|
return res;
|
||
|
|
endfunction
|
||
|
|
endpackage
|
||
|
|
|
||
|
|
module top;
|
||
|
|
localparam A = PKG::g();
|
||
|
|
initial $display("%b", A);
|
||
|
|
endmodule
|