Unit 3 Session 1: CPU, Memory, and Hardware Interconnections | IT 231 BBA Slides

--:-- --
↓ Scroll for more

Unit 3 · Session 1

CPU, Memory, and Hardware Interconnections

IT 231: IT and Applications (BBA)

🎯 Learning Objectives

By the end of this session, you will be able to:

  • ✅ Draw the block diagram: input, memory, CPU, output, storage — and how buses join them.
  • ✅ 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.

Core Components: CPU, Memory, and Motherboard

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)

Draw This: The Block Diagram

Five units plus the joins. Exam Long Q1 asks you to reproduce this — copy it now.

Input (keyboard, mouse, scanner) → Memory (RAM holds work now) ⇄ CPU (transforms) → Output (monitor, printer)

Memory ⇄ Secondary storage (SSD, HDD keeps work later) · Buses carry everything between the units.

Without the connections, each unit is a capable island with no trade. Data enters, waits, is transformed, and leaves.

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

Three jobs in one chip: Control Unit directs (supervisor with the work order — fetches, decodes, never calculates) · ALU computes (worker with the calculator — add, compare, AND/OR, only on what registers hand it) · Registers keep close (hands holding the current sheet — bytes, not gigabytes; their smallness is the point).

🎬 Fetch, Decode, Execute

Trace It: C = A + B

  1. Fetch: CU fetches "add A and B" from RAM via the address and data buses.
  2. Decode: CU interprets it — addition, operands A and B, destination C.
  3. Execute: A and B load into registers; the ALU adds them.
  4. Store: the result writes back to memory location C.

The cycle repeats billions of times per second — and a fast CPU still waits when RAM or disk is slow.

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

Also Group A: word size — a 64-bit CPU moves 8 bytes per tick vs 4 for 32-bit. Bigger words help big numbers and big memory.

Many Cores on One Chip

Labelled die of an Intel Core i9-13900K showing its separate performance and efficiency cores

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.

The Memory Pyramid

Pyramid from registers and cache at the top, through RAM and flash, to hard drives and tape at the bottom

🎬 Why Cache Exists

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.

Inside an HDD and an SSD

Opened 3.5-inch hard drive showing the platter and read/write arm
HDD
Samsung 960 EVO M.2 SSD beside a centimetre ruler: a small circuit board with no moving parts
SSD

🎬 A Hard Drive in Slow Motion

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

The board holds the CPU socket, RAM slots and expansion slots — and the chipset, the traffic controller between CPU, RAM and peripherals.

A Labelled Motherboard

Labelled motherboard: CPU socket, memory slots, PCI and PCI Express slots, SATA connectors, power connectors

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!

Three Buses, Three Questions

BusCarriesDirectionAnswers
Address busWhich memory location the CPU wantsOne way (CPU → memory/I/O)Where?
Data busThe actual data read or writtenTwo wayWhat?
Control busCommands and timing (read, write, clock)Two wayWhen?

Wider buses move more per tick — but need more pins and power. A design choice, not just a speed number.

The System Bus

CPU, memory and input/output connected by a shared system bus

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.

Worked saving (Lalitpur firm, 6 PCs): replace-all at Rs 78,000 × 6 = Rs 468,000 vs RAM + SSD at Rs 10,800 × 6 = Rs 64,800 → saves Rs 403,200, and day-end closing falls 22 → 7 minutes. The CPU was starved, not weak.

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.
  • 🎯 Buses answer where (address, one way), what (data, two way), and when (control).

Image & Video Credits

Images (Wikimedia Commons)

Videos (YouTube)

  • Tom Scott, "The Fetch-Execute Cycle: What's Your Computer Actually Doing?" (1:54 to 3:14)
  • PowerCert Animated Videos, "CPU Cache Explained - What is Cache Memory?" (1:52 to 2:33)
  • The Slow Mo Guys, "How a Hard Drive works in Slow Motion" (0:09 to 0:50)

Exam Practice 📝

Short answer

  1. What are the functions of the ALU and the control unit?
  2. Name the three types of system bus and what each carries.
  3. List four factors that affect CPU performance.

Long answer

  1. Draw the block diagram of a computer and explain the function of each unit.
  2. Explain the fetch–decode–execute cycle with an example.

Revise the answers in the full note linked on the last slide.

Thank You

Questions before we wrap this hour?


Next: Unit 3 · Session 2 — Inside a Computer Cabinet

Course Home · Next session

📖 Read the full note

📖 Related chapter notes

Read first, then revise with this deck: