The language provides 5 base types and 2 composite types that can be used.
- Base types :
UIntfor unsigned integers,
SIntfor signed integers and
- Composite types :
Finally, a special type is available for checking equality between a BitVector and a bits constant that contain hole (don’t care values). Below, there is an example :
val myBits = Bits(8 bits) val itMatch = myBits === M"00--10--" // - don't care value