Forum Discussion
Altera_Forum
Honored Contributor
13 years agoYou cannot dynamically resize signals while a simulation is running. They have to be fixed size during a run, so you will have to go with the generic suggestion and make the size of the vector the worst case size. Think about it- trying to resize a signal is like trying to add more wires to a circuit while it is switched on, which is physically impossible.
The only way you can "dynamically" change an array size is with a pointer type, but you cannot synthesise them and are for testbenching only.