Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
can't determine constant for FUNCREF when define parameter #952
The following code failed to compile in Verilator.
Verilator reports errors:
%Error: t/t_param_func.v:11: Expecting expression to be constant, but can't determine constant for FUNCREF 'sum'
%Error: t/t_param_func.v:29: ... Location of non-constant VARREF 'values': Array references/not basic
The issue is similar with #�, #�. But here the issue is caused by the multi-dimensional function input @values@.
Test case attached.
Original Redmine Comment
The issue can be fixed by patching the following lines. Verilator is able to handle packed array without problem, I think.
The patch with test is attached here.