Altera_Forum
Honored Contributor
12 years agoHow to cast a large std_logic_vector to an array of smaller ones?
Hi again,
For my project, I've defined a custom data type which actually is an array of 16 8-bit std_logic_vectors:
TYPE census_line IS ARRAY(0 TO 15) OF std_logic_vector(7 downto 0);
However from a memory module, all I get is a single, large 128-bit std_logic_vector. I tried to cast the large vector tor a census_line, but all I get is:
census_line(vector):
Error (10305): VHDL Type Conversion error at stereo.vhd(61): cannot convert type "std_logic_vector" to type "census_line"
Is there any way to cast it still? Thank you and regards, Reggi