Digital Logic

Hexadecimal

A base-16 number system using digits 0-9 and A-F, providing compact representation of binary values.

Detailed Explanation

Hexadecimal (hex) maps directly to binary—each hex digit represents four bits. This makes binary values much more readable: 0x1A3F is clearer than 0001101000111111. Memory addresses, opcodes, and register contents are typically shown in hex.

In SystemVerilog, hex literals use the 'h prefix (8'hFF for 8-bit value 255). Hex is essential for debugging, examining memory dumps, and working with hardware registers.