Altera_Forum
Honored Contributor
12 years agopartially assigning values to std_logic_vector array
Hi to all,
I have declared the following type and i have a problem , how should i assigning the x,y, and D std_logic vector (8 bit ) to the pixel ( 24 bit) in the following order pixel ( x(8 bit),y(8 bit),d(8 bit)) TYPE ref_array IS Array (natural Range<>) of std_logic_vector(23 DOWNTO 0); signal ref_array_xyd : ref_matrix (0 to 25343); for i IN ref_array_xyd'Range LOOP ref_array_xyd(i) ( 7 down to 0)<= data; ref_array_xyd(i) ( 8 down to 15)<= data; ref_array_xyd(i) ( 16 down to 23)<= data; END LOOP; is this right??? please, help Regards, sam