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
0 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
0 useful
not useful


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.