Assigning Values - Numbers
Are sized or unsized: <size>¡®<base format><number>
- Sized example: 3¡¯b010 = 3-bit wide binary number
- The prefix (3) indicates the size of number
- Unsized example: 123 = 32-bit wide decimal number by default
- Defaults
- No specified <base format> defaults to decimal
- No specified <size> defaults to 32-bit wide number
Base Format:
- Decimal (¡®d or ¡®D) 16¡¯d255 = 16-bit wide decimal number
- Hexadecimal (¡®h or ¡®H) 8¡¯h9a = 8-bit wide hexadecimal number
- Binary (¡®b or ¡®B) ¡¯b1010 = 32-bit wide binary numer
- Octal (¡®o or ¡®O) ¡®o21 = 32-bit wide octal number