FONT SIZE : AAA
Array sizes are used when declaring many types in Lucid to turn them into arrays. Bit selection is used to index the various elements inside an array.
Array sizes are pretty simple and take the following form:
('[' expr ']')*
Here expr is an expression, but it must have a value that can be determined at synthesis time.
If no sizes are specified, the type is assumed to be 1 bit or one instance. For each size specified, the array will get another dimension. For example, something declared with [4][8] would be considered a 4 x 8 two-dimensional array.
Bit selectors are used to index into arrays. The most basic kind, simple indices, select a single element from the array. The more complex constant bit and fixed-width bit selectors allow selection of multiple elements.
When indexing into a multidimensional array, only the last index can be a constant bit selector or a fixed-width bit selectors. Every other index must be a simple array index.
The array index is the simplest form of indexing into an array. It selects a single ele‐ ment and takes the following form:
'[' expr ']'
Here expr is an expression. When indexing into a multidimensional array, the first index specified will index into the leftmost dimension when the array was declared. For example, sig mySig[4][7] can be indexed later with mySig[3]. This will have a width of 7. To index to a single bit, you could use mySig[3][6].
Constant bit selectors allow you to select everything between a fixed start and stop indices. It takes the following form:
'[' expr ':' expr ']'
Both expr elements are expressions, but they both must be constant values that can be determined at synthesis time.
The first expr must be greater or equal to the second expr in value. These specify an inclusive range to select from the array.
The fixed-width bit selector allows you to specify a start index and the number of elements to select above or below that index. The benefit of this over the constant index selector is that the start index doesn’t need to be a constant value.
It takes the following form:
'[' expr ('+'|'-') ':' expr ']'
Again, both expr elements are expressions. The first expr is the starting index. The second expr is the number of elements to select. If the selector uses the + symbol, it selects that many elements above the starting index. If it is a - symbol, it selects that many elements below the starting index. The starting index itself is always included.
Manufacturer:Xilinx
Product Categories: CPLDs
Lifecycle:Active Active
RoHS: No RoHS
Manufacturer:Xilinx
Product Categories:
Lifecycle:Obsolete -
RoHS: No RoHS
Manufacturer:Xilinx
Product Categories: Socle de fusible
Lifecycle:Obsolete -
RoHS:
Manufacturer:Xilinx
Product Categories: Contrôlleur 32 Bit
Lifecycle:Obsolete -
RoHS: No RoHS
Manufacturer:Xilinx
Product Categories: Contrôleur logique
Lifecycle:Active Active
RoHS:
Support