2D array question

D

Divyang M

Guest
Hi,

How do I assign 8 bits of a 16-bit 2D array to an 8-bit 2D array:

I tried both the following and I get an error:

prim_out_n_re(9) <= prim_out_n(15 downto 8)(9);

AND

prim_out_n_re(9) <= prim_out_n(9)(15 downto 8);

where

prim_out_n_re is array(10 downto 0) of std_logic_vector(7 downto 0)
prim_out_n is array(10 downto 0) of std_logic_vector(15 downto 0)

Thanks,

Divyang M
 
I tried the following and it compiles..is it correct?

prim_out_n_re(i)(7 downto 0) <= prim_out_n(i)(15 downto 8);

Divyang M.
 

Welcome to EDABoard.com

Sponsor

Back
Top