User manual

Verilog’s numbers
Size (decimal number, always), followed by the base, followed by the value, in
that base.
Bases are denoted:
’b, ’B binary
’o, ’O octal
’h, ’H hexadecimal
’d, ’D decimal
For example:
4’b0101 // is a four bit value specified using 4 binary digits
4’H5
// is a four bit binary value specified using a hex digit
16’d32767 // is a 16 bit binary value specified using a decimal value
-16’d1234 // is the 16 bit binary value specified in two’s complement
// form corresponding to decimal value -1234
EECS 452 Fall 2014 Lecture 5 Page 57/143 Tuesday September 16, 2014