T
thomasc
Guest
Is it possible to pass or refer to an array of constants in multiple
modules?
I need to input an array of constants across multiple modules so it can be
referred to by the modules. The array consists of 16 8-bit elements and
needs to be used in a procedural block. But when I tried to do so, it
generated an error.
First, I declared the array as input into a module. However while
compiling, ModelSim says <Illegal reference to net array "array_table">.
So I declared the input array as wire in the module to use it in a
procedural block and compiled again. This time ModelSim says "#'Port' must
not be declared to be an array: array_table."
Any comment will be a help for me.
Thanks!
*I will eventually have to synthesize this project. So please keep that in
mind when you reply.
modules?
I need to input an array of constants across multiple modules so it can be
referred to by the modules. The array consists of 16 8-bit elements and
needs to be used in a procedural block. But when I tried to do so, it
generated an error.
First, I declared the array as input into a module. However while
compiling, ModelSim says <Illegal reference to net array "array_table">.
So I declared the input array as wire in the module to use it in a
procedural block and compiled again. This time ModelSim says "#'Port' must
not be declared to be an array: array_table."
Any comment will be a help for me.
Thanks!
*I will eventually have to synthesize this project. So please keep that in
mind when you reply.