By the end of this introductory chapter, you will be able to:
✅ Identify the three core components inside a computer: CPU, Memory, and Motherboard.
✅ Explain the primary function of the Central Processing Unit (CPU).
✅ Describe the concept of a memory hierarchy and its levels.
✅ Explain the role of the motherboard and system buses in connecting components.
Let's Look Inside the Box 📦
This unit takes us inside the computer case to explore the fundamental hardware that powers everything you do.
🧠 The Brain
CPU (Central Processing Unit)
📚 The Workspace
Memory (RAM, Cache, Storage)
🛣️ The Nervous System
Interconnections (Motherboard, Buses)
🎬 Watch: A Tour Inside the Box
Activity: Match the Component
Click a Component, then click its matching Function.
Components
🧠 CPU
📚 RAM
🛣️ Motherboard
Functions
Connects all components so they can communicate
Fetches, decodes, and executes every program instruction
Temporary workspace holding active programs while running
The Brain: Central Processing Unit (CPU)
Definition: The CPU is the primary component of a computer that executes instructions. It performs most of the processing inside the computer.
Often called the "processor" or "microprocessor".
Its job is to fetch, decode, and execute program instructions.
Think of it as the chef in a kitchen, following a recipe (the program).
The exam block diagram
Block Diagram: What Each Unit Does
Unit
Job
Everyday example
Input unit
Takes data and instructions in
Keyboard, scanner, microphone
Control Unit (CU)
Directs every step: fetches and decodes instructions, then sends control signals to the other units
A traffic police officer at a busy chowk
Arithmetic Logic Unit (ALU)
Does calculations (+ − × ÷) and comparisons (>, <, =)
Adding up a bill
Registers
Tiny, ultra-fast stores inside the CPU for the data being worked on right now
The number on a calculator's display
Memory unit
RAM holds running programs; storage keeps files when the power is off
RAM, SSD
Output unit
Gives results back to the user
Monitor, printer, speaker
Exam tip: draw the arrows. Data flows Input → Memory ⇄ CPU (CU + ALU + registers) → Output, and the CU sends control signals to every unit.
From Sand to Chip: How a CPU Is Made 🏭
Sand to silicon: quartz sand is purified into a single, very pure silicon crystal (an ingot).
Wafers: the ingot is sliced into thin, polished discs about 30 cm across.
Patterning: light shone through masks prints billions of transistors, layer by layer (photolithography).
Cut, test, package: the wafer is cut into separate chips (dies); each is tested and sealed in a package with pins or pads.
A leading-edge chip factory (a "fab") costs well over US$10 billion. Taiwan's TSMC makes the most advanced chips for Apple, AMD and Nvidia.
🎬 Watch: From Sand to Silicon
One wafer, hundreds of CPUs
Moore's Law: Doubling Transistors 📈
In 1965 Intel co-founder Gordon Moore noticed that the number of transistors on a chip kept doubling. In 1975 he settled on about every two years.
Try it: Intel's 4004 (1971) had 2,300 transistors. From 1971 to 2023 is 26 doublings. Predict the 2023 count.
2,300 × 226 ≈ 2,300 × 67 million ≈ 154 billion
Reality: Apple's M3 Max (2023) has 92 billion. Same ballpark, so the "law" held for about 50 years.
The doubling is now slowing: transistors are approaching the size of atoms, and each new factory costs more.
CPU Performance: Speed and Power
⚡ Clock Speed
Measured in Gigahertz (GHz).
Represents how many cycles the CPU can execute per second.
Higher GHz generally means a faster processor.
🧠 Cores
A core is an individual processing unit within the CPU.
Modern CPUs are "multi-core" (Dual-core, Quad-core, etc.).
More cores allow the CPU to handle multiple tasks simultaneously (multitasking).
Quiz: GHz vs. Cores — Which Matters?
For each scenario, choose whether higher Clock Speed (GHz) or more CPU Cores is the bigger priority.
Single-player video game needing the fastest possible frame calculation each tick
Games are mostly single-threaded — a higher clock speed lets each instruction execute faster.
Video editor rendering multiple 4K streams simultaneously in the background
Video rendering splits work across threads — more cores means more streams processed in parallel.
Web server handling hundreds of independent user requests at the same time
Each request can run on its own core — more cores = more concurrent requests served without waiting.
Four Factors That Affect CPU Performance
1. Clock speed (GHz)
More cycles per second means more instructions per second.
2. Number of cores
More cores run more tasks at once, if the software can split the work.
3. Cache size
More cache means the CPU waits less for slower RAM.
4. Word size and bus width
A 64-bit CPU handles 64 bits at a time; a wider bus moves more data per trip.
A newer design (architecture) also does more work in each cycle, so a new chip can beat an old one at the same GHz.
🧮 Worked Example: Why GHz Alone Misleads
For one core, work per second ≈ clock speed × instructions per cycle (IPC).
Older chip: 3.5 GHz, about 1 instruction per cycle
Newer chip: 3.0 GHz, about 2 instructions per cycle
Older: 3.5 billion × 1 = 3.5 billion instructions per second
Newer: 3.0 billion × 2 = 6 billion instructions per second, faster despite the lower GHz
That is why reviewers compare CPUs with benchmarks (standard test programs), not GHz alone. The IPC figures here are simplified for the example.
🧮 Worked Example: Reading a Laptop's CPU Spec
A laptop in a New Road shop lists: Intel Core i5-1335U · 10 cores (2P + 8E) · 12 threads · up to 4.6 GHz · 12 MB cache
How many cores? 10: 2 Performance cores for heavy work and 8 Efficient cores for light background tasks
Why 12 threads, not 10? Each P-core runs 2 threads (hyper-threading): 2 × 2 + 8 × 1 = 12
Does it always run at 4.6 GHz? No. 4.6 GHz is the short turbo peak; heat and battery limits keep it lower most of the time
What is the 12 MB? The shared cache: fast memory on the chip that saves trips to RAM
Source: Intel product specifications for the Core i5-1335U (13th generation, launched 2023).
Decoding CPU Names 🔤
Take Intel Core i5-1335U apart:
i5
The tier: i3 (basic), i5 (mainstream), i7 and i9 (high end). AMD's Ryzen 3, 5, 7 and 9 work the same way.
13 + 35
13th generation (2023), model 35 within it. A higher generation usually means a newer design.
U
The suffix: U = low-power laptop, H = high-performance laptop, K = unlocked desktop, F = no built-in graphics.
Since late 2023 Intel also sells "Core Ultra" chips (e.g. Core Ultra 5 125H), so check the generation and suffix when you compare laptops.
The Workspace: Computer Memory
Not all memory is created equal. Computers use a memory hierarchy to balance speed, cost, and capacity.
🎯 The Trade-off: The faster the memory, the more expensive and smaller it is. The slower the memory, the cheaper and larger it is.
The Memory Hierarchy 📊
A pyramid model helps visualize the speed vs. size trade-off.
Level 1: Fastest & Smallest
CPU Registers & Cache
Instantly accessible by the CPU. Holds data being actively processed.
Level 2: Medium Speed & Size
Main Memory (RAM)
The computer's "working memory". Holds active programs and data. Volatile (loses data on power off).
Level 3: Slowest & Largest
Secondary Storage
Hard Drives (HDD), SSDs. Permanent storage for files and OS. Non-volatile.
Activity: Build the Memory Pyramid
Click the cards in order from Fastest & Smallest (top) to Slowest & Largest (bottom). Build the pyramid!
HDD / SSD
CPU Registers
RAM
CPU Cache (L1/L2/L3)
Fastest / Smallest
Slot 1
Slot 2
Slot 3
Slot 4
Slowest / Largest
Storage Showdown: SSD vs. HDD
SSD (Solid State Drive)
Uses flash memory (no moving parts).
✅ Pros: Extremely fast, durable, quiet.
❌ Cons: More expensive per GB.
HDD (Hard Disk Drive)
Uses spinning magnetic disks.
✅ Pros: Cheap, high capacity.
❌ Cons: Slower, fragile, noisy.
Decision: SSD or HDD?
Read each scenario and pick the best storage type. You will see why.
A student needs a laptop that boots in under 10 seconds and opens VS Code instantly
SSD — flash memory has no seek time, so boot and app launch speeds are dramatically faster than HDD.
A small media company needs to archive 20TB of old video footage at the lowest possible cost
HDD — for cold archive storage where cost-per-GB matters far more than speed, HDD is the economical choice.
A field engineer needs a laptop that survives bumps and drops in the field without data loss
SSD — no spinning platters means no risk of head-crash from physical shock; SSDs are far more durable.
The Nervous System: The Motherboard
Definition: The motherboard is the main printed circuit board (PCB) that connects all the hardware components of a computer together.
🔍 Analogy: If the CPU is the brain, the motherboard is the central nervous system, allowing communication between the brain, memory, and all other body parts (peripherals).
Connecting It All: System Buses
How do the components talk to each other on the motherboard?
Buses are the communication pathways or "data highways" on the motherboard.
They transfer data between the CPU, RAM, and other components.
The speed of the bus (bus width and clock speed) is critical for overall system performance.
A fast CPU is useless if the bus connecting it to RAM is slow. It creates a bottleneck!
Simulator: The Bus Bottleneck
Adjust CPU speed and Bus speed, then press Send Data to see how a slow bus chokes a fast CPU.
3 GHz
3 GHz
CPU 3 GHz
Bus: 3 GHz
RAM
Practical Application: Building a PC in Nepal
What's the best value for a student in Kathmandu?
Scenario: A university student needs a laptop for coding, research, and presentations.
Priority 1: Storage ⚡ An SSD is non-negotiable. The speed boost for booting up, opening apps, and compiling code is massive. Even a smaller 256GB SSD is better than a large 1TB HDD for performance.
Priority 2: Memory 📚 Aim for at least 8GB of RAM. This allows for smooth multitasking between a web browser (with many tabs), a code editor, and other applications.
Priority 3: CPU 🧠 A modern mid-range CPU (like an Intel Core i5 or AMD Ryzen 5) is more than enough. The performance gains from an SSD and sufficient RAM will be more noticeable for daily tasks.
CPU vs GPU: A Few Strong Cores or Thousands of Simple Ones?
🧠 CPU
A handful of powerful cores (typically 4–24 in a PC)
Best at varied, step-by-step work: the OS, Excel, a browser
🎮 GPU (graphics processing unit)
Thousands of small cores: Nvidia's GeForce RTX 4090 has 16,384
Best at one simple sum repeated millions of times: graphics, video and training AI
Analogy: a CPU is a few expert chefs; a GPU is a thousand kitchen helpers all chopping onions at once.
📱 Your Phone's Processor: A System on a Chip
A phone has no room for a board full of separate chips, so it uses a System on a Chip (SoC).
One chip holds the CPU, GPU, AI engine (NPU) and memory controller, and often the mobile modem too.
Example: Apple's A17 Pro (iPhone 15 Pro, 2023) packs 19 billion transistors, a 6-core CPU and a 6-core GPU.
Many Android phones sold in Nepal use SoCs from Qualcomm (Snapdragon) or MediaTek (Helio, Dimensity).
Benefit: less power and heat, so a phone lasts all day on its battery. Cost: you can't upgrade one part later.
A whole phone's computer on one small board
🗣️ Think-Pair-Share: Which CPU Tier?
Match each buyer to a sensible CPU tier, then reveal.
A BBM student: Word, Excel, Zoom and 20 browser tabs. Answer:Core i5 / Ryzen 5 is plenty; spend the rest on 16 GB RAM and an SSD
An accountant entering vouchers in Tally all day. Answer:Core i3 / Ryzen 3 is enough for light, one-at-a-time work
A YouTuber editing 4K video. Answer:Core i7 / Ryzen 7 or above, because rendering uses many cores
Buy for the work you actually do: an i9 for typing assignments is money that could have bought more RAM.
Unit 3.1: Key Takeaways
🎯 The CPU is the computer's brain, executing all instructions.
🎯 The Memory Hierarchy balances speed, cost, and size, from ultra-fast CPU cache to large, slow secondary storage.
🎯 The Motherboard acts as a central hub, using buses to connect and allow communication between all components.
🎯 For practical performance, a fast SSD and adequate RAM often provide a better user experience than just having the fastest CPU.
Exam Practice: Short Answer
What are the functions of the ALU and the control unit?
Name the three types of system bus and what each carries. (Covered in Session 3.7.)
List four factors that affect CPU performance.
Exam Practice: Long Answer
Draw the block diagram of a computer and explain the function of each unit.
Explain the fetch–decode–execute cycle with an example.
Revise the chapter note before writing these answers.
Image & Video Credits
Images
Computer architecture block diagram: Amila Ruwan 20, CC BY-SA 4.0, via Wikimedia Commons
Intel 4th-generation Core processor wafer: Intel in Deutschland, CC BY-SA 2.0, via Wikimedia Commons
iPhone 5 (A1429) main board: Raimond Spekking, CC BY-SA 4.0, via Wikimedia Commons
Videos (YouTube)
LearnFree, "Basic Computer Parts Explained for Beginners" (0:13–1:41), https://www.youtube.com/watch?v=HB4I2CgkcCo
Intel, "From Sand to Silicon: The Making of a Microchip – Intel" (0:46–1:55), https://www.youtube.com/watch?v=_VMYPLXnd7E