EmbDev.net

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


Author: Kevin Simonson (Guest)
Posted on:

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"?

Author: DeeTho (Guest)
Posted on:

Rate this post
0 useful
not useful
No.

Reply

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]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig