14 min read Beginner to Intermediate Lesson 09 (of 30)
Part 2 — Electricity & Digital Logic

How Data Moves Inside a Computer: Bus Architecture

A computer is far more than just a CPU. The CPU, RAM, storage drive, GPU, keyboard, and display are all independent physical devices. To exchange data, addresses, and control signals, they rely on an astonishing communication fabric.

The Hidden Conversations Between Hardware

Suppose the CPU needs to retrieve a number from system RAM. How does the processor tell memory: "Send me the data sitting at this exact memory address?" And how does RAM route that data back to CPU registers?

How does the CPU communicate with SSD storage, keyboards, mice, graphics cards, and network controllers? This coordination is powered by Interconnects, Buses, Controllers, and Interfaces.

1. A Computer Is Not Just a CPU

In earlier lessons, we simplified the system to: CPU + Memory. But real personal computers, servers, and smartphones comprise an expansive network of components.

Network of Components Within a Computer

CPU (Processor)
RAM (System Memory)
SSD / Storage
GPU (Graphics)
Keyboard & Mouse
USB Peripherals
Network (Wi-Fi / LAN)
Display (Monitor)
┌───────────┐ │ CPU │ └─────┬─────┘ │ Communication │ ┌───────────────┼───────────────┐ ↓ ↓ ↓ RAM Storage I/O

2. What Is a Bus?

In computer architecture, a Bus is a shared communication pathway or group of electrical signal wires through which digital data, addresses, and control instructions are transmitted between subsystems.

The City Roadway Analogy

  • 🚗 Roadway (Physical Highway) → The physical transmission path carrying traffic
  • 📍 Address Sign (Destination) → Where the vehicle or payload is destined to go
  • 🚦 Traffic Signal (Control) → Directing who moves, when, and in which direction

💡 The bus concept is the classical architectural model for transmitting information between disparate computing elements.

3. The Classical Three-Bus Architecture

To understand computer systems cleanly, architects divide internal interconnects into three functional buses:

Data Bus

Transfers the actual payload values (integers, strings, pixels, instructions).

Address Bus

Carries the target memory location or device register address to be accessed.

Control Bus

Carries command timing signals (Read, Write, Clock, Interrupt, Reset).

CPU │ ┌───────┼────────┐ │ │ │ ▼ ▼ ▼ Address Data Control Bus Bus Bus │ │ │ └───────┼────────┘ │ Memory / I/O

4–7. Data Bus, Address Bus, and Memory Addressing

Think of system memory as an immense apartment complex with billions of mailboxes. Every mailbox has a unique numeric Address, and the message inside is the Data.

Address = 5000

Where? Locate memory cell number 5000.

Data = 42

What? The integer value 42 stored inside that location.

📌 Formula: Address defines Location, while Data defines Content.

8–10. Control Signals and Memory Read/Write Operations

If the CPU simply puts an address on the bus, how does RAM know whether the CPU wants to inspect the data (READ) or overwrite it with a new value (WRITE)? That is the job of the Control Bus.

Memory Read (Step-by-step)
  1. CPU asserts target address on Address Bus: 1000
  2. CPU asserts control line signal: READ
  3. Memory controller activates bank address 1000.
  4. RAM places stored bits onto Data Bus: 10101100
  5. CPU latches the data bus bits into its internal register.
Memory Write (Step-by-step)
  1. CPU asserts target address on Address Bus: 1000
  2. CPU places output payload onto Data Bus: 11001100
  3. CPU asserts control line signal: WRITE
  4. RAM controller commits the data bits into cell 1000.

11–12. How the CPU Uses RAM to Perform Arithmetic

The Complete Datapath for Computing 5 + 3:
1. Reading Operands:
READ Address 1000 → Register R1 = 5
READ Address 1004 → Register R2 = 3
2. Computing & Storing:
ALU(R1 + R2) → 5 + 3 = 8
R3 = 8 → WRITE to Address 1008 in RAM

13–14. The Motherboard: The Physical Interconnect Backbone

The motherboard is a dense multi-layer Printed Circuit Board (PCB) etched with thousands of microscopic copper traces that physically and electrically tie the processor, RAM, storage slots, expansion buses, power phases, and chipset together.

15–18. Controllers and Peripheral I/O Communication

External hardware peripherals do not wire raw electrical pulses directly into the CPU core. Dedicated Controllers bridge peripheral interfaces:

Keyboard Input
Key press 'A'
↓ Microcontroller scan
↓ USB serial packet
↓ OS Input subsystem
↓ Application buffer
Mouse Tracking
Optical sensor movement
↓ Mouse controller
↓ USB / Bluetooth stream
↓ OS delta coordinates
↓ Cursor repositioning
Display Output
Render engine geometry
↓ Compositor stack
↓ GPU framebuffer
↓ DisplayPort / HDMI link
↓ Screen pixel LEDs

19–24. Modern High-Speed Interconnects: PCIe, NVMe, and USB

PCI Express (PCIe)

Replacing legacy shared parallel buses, modern computers rely on point-to-point differential serial lanes. GPUs, NVMe drives, and high-speed NICs connect directly to CPU lanes with tens of gigabytes per second of dedicated throughput.

SATA vs. NVMe SSDs

Legacy SATA III topped out at 600 MB/s. NVMe over PCIe Gen 4/5 enables flash storage to blast past 7,000 to 14,000 MB/s with minimal software driver overhead.

25–27. DMA (Direct Memory Access) and Interrupts

If the CPU had to manually move every single byte between drives, network cards, and RAM, it would be paralyzed by endless data copy routines.

⚡ DMA (Direct Memory Access)

Storage controllers and network adapters stream gigabytes of payloads directly into main RAM without involving CPU cycles. Once the batch is complete, a completion notification is signaled.

🔔 Polling vs. Hardware Interrupts

  • Polling: CPU continuously queries: "Are you done yet?" (Wasteful).
  • Interrupts: The device rings an electrical bell line when ready (Efficient).

29–31. Concrete Datapath: Opening a Photo on Your Screen

Mouse Click → OS File System → SSD Read → RAM Memory → CPU Decode → GPU Render → Display Pixels

All Computer Hardware Interconnected

┌───────────────┐ │ CPU │ │ │ │ ALU │ │ Registers │ │ Control Logic │ └───────┬───────┘ │ Interconnect │ ┌────────────┬───────┼────────┬────────────┐ ▼ ▼ ▼ ▼ ▼ RAM SSD GPU Network USB │ │ │ │ │ │ │ │ │ ├── Keyboard │ │ │ │ ├── Mouse │ │ │ │ └── Other Devices │ │ │ │ └────────────┴───────┴────────┴────────────── │ Motherboard

🧠 Key Takeaways

  • Buses & Interconnects: The shared electrical and logical pathways that tie disparate hardware together.
  • Address: specifies where; Data: carries what; Control: directs the operation.
  • Motherboard: The multi-layer physical substrate routing copper signal lines across all devices.
  • PCIe & NVMe: Ultra-fast point-to-point serial links delivering tens of gigabytes per second.
  • DMA & Interrupts: Allow peripherals to autonomously transfer data directly into RAM without stalling the CPU.
🚀 Next Lesson

Lesson 10 — What Happens When You Press the Power Button?

Trace the complete boot sequence from cold hardware reset through UEFI/BIOS, POST checks, bootloader execution, kernel initialization, and the desktop GUI.