[Next] [Up] [Previous] [Contents]
Next: Generic arrays Up: Data types and type Previous: Arrays

Multidimensional arrays

Arrays of arrays can also be declared. For example,

        matrix : array 0..1 of array 2..0 of boolean;
is equivalent to

        matrix[0] : array [2..0] of boolean;
        matrix[1] : array [2..0] of boolean;

The boolean signals declared in this way are

        matrix[0][0]        matrix[0][1]        matrix[0][2]
        matrix[1][0]        matrix[1][1]        matrix[1][2]

There is no fixed limit to the number of dimension of an array declared in this way.



Ken McMillan
Sat Jun 6 21:41:59 PDT 1998