Sep 10, 2010 #1 K kakarala Member level 1 Joined Jun 22, 2010 Messages 40 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,288 Activity points 1,801 Hi Can anyone tell me how to initialize a 2D array ? for 1D array we use signal x : arraytype(0 to 7) := (1 2 3 4 5 6 7 8);
Hi Can anyone tell me how to initialize a 2D array ? for 1D array we use signal x : arraytype(0 to 7) := (1 2 3 4 5 6 7 8);
Sep 10, 2010 #2 P permute Advanced Member level 3 Joined Jul 16, 2010 Messages 918 Helped 295 Reputation 590 Reaction score 266 Trophy points 1,343 Activity points 8,543 ( array1, array2, ... arrayN); which can break down to ( (a0, a1, ... an), (b0, b1, ... bn), ... (z0, z1, ... zn) ); the same works for arrays of record types: ( record1, record2, ... recordN)
( array1, array2, ... arrayN); which can break down to ( (a0, a1, ... an), (b0, b1, ... bn), ... (z0, z1, ... zn) ); the same works for arrays of record types: ( record1, record2, ... recordN)