Contents Up << >>
Slice names
A slice name denotes a sub-array of a one dimensional array. Since
hardware descriptions often use vectors (one dimensional arrays)
extensively, the slice name is a convenient way of accessing parts
of a vector. A slice name may appear as
The prefix of the slice name must denote a vector object. The bounds
of the discrete range must be within the bounds of the vector denoted by
the prefix. The prefix name denotes a one-dimensional array that contains the
elements of the vector, denoted by the prefix, within the specified range.
For example, if x is a vector with the index range 1 to 7 then
x(2 to 3) is a vector that contains elements 2 and 3 of vector x.