EmbDev.net

Forum: FPGA, VHDL & Verilog Can a Verilog function return an array indexed from one to a value passed as an input parameter?


von Kevin Simonson (Guest)


Rate this post
useful
not useful
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"?

von DeeTho (Guest)


Rate this post
useful
not useful
No.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.