ich würde so denken...bitte nicht gleich hauen wenns syntaktischer
Unsinn ist.
architecture Behavioral of MultidimArray is
type SmallArray is array (0 to 4) of std_logic_vector(3 downto 0);
type FeldTyp0 is array (0 to 8) of SmallArray;
FeldTyp0 := ((x"0",x"0",x"0",x"0",x"0"),
(x"0",x"1",x"1",x"1",x"0"),
(x"0",x"1",x"1",x"1",x"0"),
(x"0",x"1",x"0",x"0",x"1"),
(x"0",x"1",x"1",x"1",x"0"),
(x"0",x"1",x"1",x"1",x"0"),
(x"0",x"1",x"0",x"1",x"0"),
(x"0",x"1",x"0",x"1",x"0")
(x"0",x"0",x"0",x"0",x"0")); --A
type SmallArray is array (0 to 4) of std_logic_vector(3 downto 0);
type FeldTyp1 is array (0 to 8) of SmallArray;
FeldTyp1 := ((x"0",x"0",x"0",x"0",x"0"),
(x"0",x"1",x"1",x"1",x"0"),
(x"0",x"1",x"0",x"1",x"0"),
(x"0",x"1",x"0",x"1",x"1"),
(x"0",x"1",x"1",x"1",x"0"),
(x"0",x"1",x"0",x"1",x"0"),
(x"0",x"1",x"0",x"1",x"0"),
(x"0",x"1",x"1",x"1",x"0")
(x"0",x"0",x"0",x"0",x"0")); --B
...das würde ich dann noch 10 mal machen und hätte meine 12 kleinen
Array's
type BigArrayTyp is array (0 to 3)(0 to 2) of SmallArrayTyp;
Jetzt muss ich ja noch sagen das FeldTyp0 oben links hin soll daneben
Feldtyp1 etc. Feldtyp5 müsste er ja automatisch unter Feldtyp0 machen.