Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- For a 2D array just have one range in the brackets, instead of two.
type dataout is array (6 downto 0) of std_logic_vector(7 downto 0); --- Quote End --- Nope, thats not a 2d array, thats a 1d array of 1d array. So you access it like this: output <= dout(x). A 2d array is declared like the OP posted. He made a 2d array of 1d arrays. You would access it like this: output <= dout(x,y); --and then add 2nd set of brackets to get individual bits