Verilog-A: pass an array without predefined size as input to a function
You can do parameterised functions:

localparam WIDTH = 8; //Or module parameter
function integer ArrayIsZeros;
input [WIDTH-1:0] array;
integer array [WIDTH-1:0];
begin
...
end
endfunction


But this is only useful if you are using the function for one data width in the module. Basically you can use the module parameters to parameterise the width of the function, but you couldn't use the same function with two different widths in the same module.