Array Problem

Gast #3014036
Lesenswert?

Ich versuche einen std_logic_vector in ein array zu schreiben.
Warum bekommt ich immer wieder diesen Fehler????

ERROR:HDLCompiler:410 - 
"E:\Schmid\2013_14_10_Lady_V6_5th_16Pixel_Reg_TTF\V6_Code\vhd\DDC264.vhd 
"  Line 161: Expression has 0 elements ; expected 16
1
type t_data_DDC246      is array (0 to 59) of std_logic_vector (15 downto 0); -- aus einem Package
2

3

4
entity DDC264 is
5
    Port ( clk : in  STD_LOGIC;
6
    ...
7
           data_o : out  t_data_DDC246);
8
end DDC264;
9

10
-- code
11

12
signal s_data : std_logic_vector (1023 downto 0);
13

14
-- code
15

16
end process;
17

18
data_o(0) <= s_data (15 downto 0);
19
data_o(1) <= s_data (640 downto 655);
20
data_o(2) <= s_data (528 downto 543);
21
data_o(3) <= s_data (544 downto 559);
22
data_o(4) <= s_data (560 downto 575);
23
data_o(5) <= s_data (672 downto 687);
24

25

26
...

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren