Module 1: Foundations of Digital Logic · 1.1 Number Systems & Arithmetic

Why Computers Use Only Two Digits

This article explains why digital computing hardware operates exclusively with binary states. It examines electrical noise margins, signal regeneration, historical logic foundations, and standard binary data units.

Modern integrated circuits contain billions of transistors. These transistors switch continuously between two discrete electrical states: logic 1 and logic 0.

Electrical Noise and Voltage Margins

A field-effect transistor operates as a voltage-controlled switch. When an applied gate voltage exceeds a specific threshold, electrical current conducts between the source and drain terminals.

If an electronic system stored decimal digits (0 through 9) using voltage levels on a 5.0 V supply, each digit would require a distinct 0.5 V band (for example, 0.0 V for 0, 0.5 V for 1, through 4.5 V for 9).

Analog and digital waveforms
Figure 1: Comparison between continuous analog signals and two-level digital signals

Physical electronic circuits experience continuous electrical noise:

  • Power supply voltage ripple
  • Capacitive coupling between adjacent signal lines
  • Electromagnetic interference (EMI)
  • Thermal noise in semiconductor junctions

In a ten-level decimal system spaced by 0.5 V, an electrical noise spike of only 250 mV causes a data read error.

In contrast, a binary system uses two voltage bands: logic LOW near 0.0 V and logic HIGH near the supply rail. This separation provides a wide noise margin of 1.0 V or more.

Furthermore, digital logic gates perform signal restoration. A logic gate that receives an attenuated or noisy input voltage regenerates a clean, rail-to-rail voltage output. This prevents noise accumulation across long combinational logic paths.

Signal conditioning
Figure 2: Conversion of noisy physical voltage through a comparator threshold to a discrete binary state

Figure 2 shows the abstraction sequence: a continuous noisy voltage passes through a threshold detector, converts to a discrete binary state, and enables Boolean logic operations.

Multi-Valued Logic and Decimal Systems

Engineers have developed experimental ternary (base-3) computing systems. For example, the Setun computer (1958) used balanced ternary logic.

However, three-state semiconductor devices present severe manufacturing and design trade-offs:

  • Noise margins decrease by more than 50 percent.
  • Circuit complexity and component counts increase.
  • Component failure rates increase under operational voltage fluctuations.

Early computing systems also used decimal representations. However, semiconductor physics does not provide a direct 10-state component. Therefore, decimal architectures encode decimal values using binary bits, such as Binary Coded Decimal (BCD).

Binary representation remains the industry standard because it aligns directly with physical on-off semiconductor switches.

Mathematical and Historical Foundations

Three primary historical developments established digital logic:

  • Gottfried Wilhelm Leibniz (1703): Documented binary arithmetic in Explication de l’Arithmétique Binaire. Leibniz proved that all numeric values and arithmetic operations can be expressed using only digits 0 and 1.
  • George Boole (1847): Formulated two-valued algebraic logic in The Mathematical Analysis of Logic. Boole defined fundamental logical operations: AND, OR, and NOT.
  • Claude Shannon (1937): Demonstrated in his MIT master’s thesis that Boolean algebra models physical switching circuits. Shannon proved that electrical switches and relays implement Boolean operations directly. This discovery united formal mathematical logic with electronic circuit design.

Standard Binary Units

Binary systems use standard data width definitions:

A bit (binary digit) represents a single binary state: 0 or 1.

A byte consists of 8 bits. An 8-bit byte represents $2^8 = 256$ unique binary combinations.

Unit Bit Width Distinct Binary States
Bit 1 $2^1 = 2$
Nibble 4 $2^4 = 16$
Byte 8 $2^8 = 256$
Word 16 $2^{16} = 65{,}536$
Double Word (Dword) 32 $2^{32} \approx 4.29 \times 10^9$
Quad Word (Qword) 64 $2^{64} \approx 1.84 \times 10^{19}$

A 64-bit address bus addresses up to $1.84 \times 10^{19}$ discrete memory locations.

Digital Data Representation

Digital systems represent all complex data through binary numbers:

  • Audio signals are sampled at periodic intervals (for example, 44.1 kHz at 16 bits per sample) and converted to binary words.
  • Digital images are divided into pixels, where each pixel stores numeric intensity values for red, green, and blue channels.
  • Processors execute instructions encoded as binary operational codes (opcodes).

Binary logic provides high computational capacity by assembling large arrays of reliable, low-cost switching transistors.

Binary, Octal, and Hexadecimal Number Systems →