data/full_repos/permissive/138961980/powlib_std.vh
 line:10: before: "function"
1: b"%Error: data/full_repos/permissive/138961980/powlib_std.vh:59: Unsupported: Parameters in functions.\n  parameter                      BASE = 10;          \n                                 ^~~~\n%Error: data/full_repos/permissive/138961980/powlib_std.vh:60: Unsupported: Parameters in functions.\n  parameter                      CW   = 8;  \n                                 ^~\n%Error: data/full_repos/permissive/138961980/powlib_std.vh:68: Unsupported: Parameters in functions.\n  parameter                      BASE = 10;          \n                                 ^~~~\n%Error: data/full_repos/permissive/138961980/powlib_std.vh:69: Unsupported: Parameters in functions.\n  parameter                      CW   = 8;  \n                                 ^~\n%Error: data/full_repos/permissive/138961980/powlib_std.vh:63: Can't find definition of variable: 'BASE'\n    powlib_itoaw = (powlib_digits(value,BASE)+1)*CW;\n                                        ^~~~\n%Error: data/full_repos/permissive/138961980/powlib_std.vh:63: Can't find definition of variable: 'CW'\n    powlib_itoaw = (powlib_digits(value,BASE)+1)*CW;\n                                                 ^~\n%Error: Exiting due to 6 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n"
function integer powlib_graydecode;
  input reg     [`POWLIB_DW-1:0] encoded;
        reg     [`POWLIB_DW-1:0] value;
        integer                  i;
  begin
    value[`POWLIB_DW-1] = encoded[`POWLIB_DW-1];
    for (i=`POWLIB_DW-2; i>=0; i=i-1) begin
      value[i] = encoded[i]^value[i+1];
    end
    powlib_graydecode = value;
  end 
endfunction
function integer powlib_graydecode;

  input reg     [`POWLIB_DW-1:0] encoded;
        reg     [`POWLIB_DW-1:0] value;
        integer                  i;
  begin
    value[`POWLIB_DW-1] = encoded[`POWLIB_DW-1];
    for (i=`POWLIB_DW-2; i>=0; i=i-1) begin
      value[i] = encoded[i]^value[i+1];
    end
    powlib_graydecode = value;
  end 
endfunction