Hello, has anyone use sv2v? I have this problem:
$ sv2v --write=adjacent
prim_util_pkg.sv
Warning: Source includes packages but no modules. Please convert packages alongside the modules that use them.
And the verilog is as follows:
package prim_util_pkg;
function automatic integer _clog2(integer value);
integer result;
integer v = value;
v = v - 1;
for (result = 0; v > 0; result++) begin
v = v >> 1;
end
return result;
endfunction
function automatic integer vbits(integer value);
`ifdef XCELIUM
return (value == 1) ? 1 : _clog2(value);
`else
return (value == 1) ? 1 : $clog2(value);
`endif
endfunction
endpackage