I am reading "Verilog HDL Hardware Description Language" written by J. Bhasker. I have doubts about the cardinal notation in Chapter 3, please correct me:

The following is the content of the book:

7'Hx 7-bit x (extended x), ie xxxxxxx

'hAF 8-digit hexadecimal number

5'H0FFF is equal to 5'H1F


My question: Does the bit length refer to the number of bits in binary or the number of bits in a specific number?

If it refers to a binary bit, then the description of 1 above is wrong, and if it is a specific number of bits, the description of 2, 3 is also wrong.

Reply