next up previous contents
Next: Generic arrays Up: Data types and type Previous: Arrays   Contents

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 dimensions of an array declared in this way.



2002-10-28