Integer Types
Bit
bit is an integer data type with default properties: unsigned, 1-bit width, {0, 1} domain.
Declare a bit
Declare 8-bit wide bit type
Possible values determined by the bit width are {0..(2width-1)}
dual bounds may be removed in a future version
Declared with a specified value domain
The values of the variable are within the intersection of the possible values by width and value domain.
Single value (e.g., [0, 1, 5] or [5, ..2, 6..8, 254..]) is not supported yet
Tip
Specifying a value domain is useful for random variables. The following examples are equivalent:
Integer
int is an integer data type with default properties: signed, 32-bit width, {-231..(231-1)} domain.
Declare an integer
Declare 8-bit wide int type
Possible values determined by the bit width are {-2width-1..(2width-1-1)}
dual bounds may be removed in a future version
Declared with a specified value domain
The values of the variable are within the intersection of the possible values by width and value domain.
Single value (e.g., [0, 1, 5] or [5, ..2, 6..8, 254..]) is not supported yet