concatenation N vectors

Z

zlotawy

Hi,
I'd like to use concatenation in VHDL when number of vectors is unknown. For
example:

entity QAZ is
port (

P_I_ADC : In MyArray(NUMBER-1 downto 0);
end QAZ ;

and I have multiplexer.

constant N :Natural;

Output of multiplekser is concatenation two, or three or four or N vectors
of input Array.

Could You help me?

Thanks,
zlotawy
 
Joined
May 4, 2007
Messages
49
Reaction score
0
You can't do it. You cannot have an entity declared that has a variable length of port sizes or std_logic_vector lengths. Those things have to be defined explicitly because this is hardware, not software. You'll have to post the maximum posssible length of your array and then do a multiplex with all the possibilities.

Scott C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,920
Members
47,462
Latest member
ChanaLipsc

Latest Threads

Top