Ke-Haur Taur
06/09/2021, 3:59 PM2. Executing Verilog-2005 frontend: ./designs/src/opentitan_soc/ip/prim/rtl/prim_util_pkg.sv
./designs/src/opentitan_soc/ip/prim/rtl/prim_util_pkg.sv:28: ERROR: syntax error, unexpected TOK_FUNCTION
And the part of the code it is complaining about looks like: (line 28 is the function automatic...
)
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
Is it because Yosys has yet to support Systemverilog functions in packages?Ke-Haur Taur
06/09/2021, 4:21 PMKe-Haur Taur
06/09/2021, 4:22 PMmehdi
06/10/2021, 9:24 PMZeeshan Rafique
06/11/2021, 9:42 AMKe-Haur Taur
06/11/2021, 9:43 AMfunction
construct which is only supported by the latest build I thinkZeeshan Rafique
06/11/2021, 9:44 AMKe-Haur Taur
06/11/2021, 9:44 AMKe-Haur Taur
06/11/2021, 6:16 PM