Altera_Forum
Honored Contributor
14 years agoDividing array in parts.
Hi, I'm having a problem when I try to take just one part of an array, for example:
I have a 512x512 array, and want just the first 8x8 samples. I'm having the following error: "slice of object cannot be specified for object that has an array type of more than one dimension" Here's part of the code: Type array_t IS ARRAY (0 to 7, 0 to 7) OF STD_LOGIC_VECTOR(0 to 7); Type array_t2 IS ARRAY (0 to 511, 0 to 511) OF STD_LOGIC_VECTOR(0 to 7); SIGNAL input: array_t SIGNAL output: array_t2 input<=output(0 to 7, 0 to 7); Thank you!!