Technical data
Numbering conventions
248
-
Simulator Command Reference ModelSim EE/PLUS Reference Manual
Examples
16#FFca23#
2#11111110
-23749
The second VHDL number style is:
base "value"
Examples
B"11111110"
X"FFca23"
Verilo
g
numberin
g
conventions
Verilog numbers are expressed in the style:
[-][size ] [ base ] value
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
Element Description
- indicates a negative number; optional
size the number of bits in the number; optional
base specifies the base; binary: ‘b or ‘B, octal: ‘o or ‘O, decimal: ‘d or ‘D, hex:
‘h or ‘H; optional
value specifies digits in appropriate base with optional underscore separators;
default is decimal, required
Element Description