A simple [msb:lsb] style range.
This is a product type introduced by defprod.
- msb — vl-expr
- Most significant bit of the range.
- lsb — vl-expr
- Least significant bit of the range.
Ranges are discussed in Section 7.1.5 of the Verilog-2005
standard. Typically a range looks like [msb:lsb]. This same
syntax is used in many places, such as part selects, with
expressions in streaming expressions, etc.
In general, the msb is not required to be greater than
lsb, and neither index is required to be zero. However, for
instance, if a wire is declared with a range such as [7:0],
then it should be selected from using ranges such as [3:0] and
attempting to select from it using a "backwards" part-select such
as [0:3] is an error.
See range-tools for many functions for working with
- Option type; vl-range or nil.
- Recognizer for vl-range structures.
- Basic equivalence relation for vl-range structures.
- Basic constructor macro for vl-range structures.
- Get the msb field from a vl-range.
- Get the lsb field from a vl-range.
- Modifying constructor for vl-range structures.
- A list of vl-range-p objects.
- Fixing function for vl-range structures.
- Measure for recurring over vl-range structures.