Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array as input/output how?

Status
Not open for further replies.

myggel

Programmer
Dec 11, 2005
15
DE
Hi there,

i'd like to store my values in an array in one component and give this array to another component.
to store the values works pretty well. but i don't know how to declare a port for an array.
i wrote this:
Code:
type array_for_pixels is array (integer range 63 downto 0) of bit_vector(13 downto 0);
signal pixel_array: array_for_pixels;
then i store some stuff in "pixel_array" and would like to use this in another component.

does anyone know how this will work?

thanks!
 
Hi Myggel,

Just declare your port with your custom type:

portname : in array_for_pixels;



Hope this helps!
 
If this doesn't work you will have to pass the array one bit_vector at a time, meaning you have 63 ports of bit_vector(13 downto 0), UUuuuups 64 ..
Bye
 
thanks.

meanwhile it works.

thanks a lot!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top