Technical data

Numbering conventions
CR-244 Command Syntax and Conventions ModelSim EE/SE Command Reference
Numbering conventions
Numbers in ModelSim /PLUS can be expressed in either VHDL or Verilog style.
Two styles can be used for VHDL numbers, one for Verilog.
VHDL numbering conventions
The first of two VHDL number styles is:
[ - ] [ radix # ] value[#]
Examples
16#FFca23#
2#11111110
-23749
The second VHDL number style is:
base "value"
Examples
B"11111110"
X"FFca23"
Element Description
- indicates a negative number; optional
radix can be any base in the range 2 through 16 (2, 8, 10, or 16); by default,
numbers are assumed to be decimal; optional
value specifies the numeric value, expressed in the specified radix; required
# is a delimiter between the radix and the value; the first # sign is required if
a radix is used, the second is always optional
Element Description
base specifies the base; binary: B, octal: O, hex: X; required
value specifies digits in appropriate base with optional underscore separators;
default is decimal; required