Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

vectors in VHDL 2

Altera_Forum
Honored Contributor II
1,478 Views

hi every body 

im new to vhdl 

i wanna write a code for this picture but for its N-scale 

http://i41.tinypic.com/35ksllh.png  

so i need to have N vectors with different length.N is a parameter. 

how i should write the code?
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
489 Views

just have an array of vectors to the maximum length, and only use the number of bits you need. Bits left unconnected will be removed by the synthesisor.

0 Kudos
Altera_Forum
Honored Contributor II
489 Views

Another option is to build a recursive component that reduces the width of the input and output vector with each recursion.

0 Kudos
Altera_Forum
Honored Contributor II
489 Views

 

--- Quote Start ---  

Another option is to build a recursive component that reduces the width of the input and output vector with each recursion. 

--- Quote End ---  

 

 

thanks,but how i should do it? 

and in the main entity how i can use components output since the output has different length!?
0 Kudos
Altera_Forum
Honored Contributor II
489 Views

thank u my friend

0 Kudos
Reply