Forum Discussion
Altera_Forum
Honored Contributor
9 years agoARRAY with a dynamic range
Hi All, I am tying to create an ARRAY dynamic size with range of 1-64 (XXX). (I will use it for creating a dynamic data delay that can be configured) Modelsim compile it with no errors ,...
Altera_Forum
Honored Contributor
9 years agoYou cannot resize an array inside FPGA logic - it makes no sense - you cannot add or remove resources while a design is running.
If this is for testbenching ONLY, you can create dynamic arrays using access types - but from your design example, you seem to want an implementable design. Your array needs to be sized for the worst case possible, and then assign the parts of the array you need at any given time.