--:-- --
↓ Scroll for more

Unit 3.1

Unit 3 Intro: CPU, Memory, and Hardware Interconnections | IT 231

IT 231: IT and Application

Learning Objectives

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.
  • ✅ Understand 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)

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).

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.

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.

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.

Thank You!

Any questions about the core components?


Next Up: Unit 3.2 - A Deeper Dive into the CPU