If an input parameter to a Verilog function is integer "lg" then can the function return an array of integers indexed from one to (lg)? Perhaps more to the point, if I get value (lg) as a value returned from a function, can I then declare "integer[1..lg] someArray"?
Re: Can a Verilog function return an array indexed from one to a value passed as an input parameter?
No.