Free tutorials & notes in Hindi & English · Clean code examples 🧰 Free PDF & Image Tools →
🖥️ Unit 1 – Computer Systems & Organisation  ·  Lesson 02

Memory, Buses & Microprocessor

Units of memory

A computer stores everything as bits. A bit (binary digit) is the smallest unit and is either 0 or 1. Eight bits make one byte, which is enough to store one English character such as A. Four bits are called a nibble.

1 byte →0011020304050617
The letter "A" stored as 8 bits (01000001)
UnitEqual toReal-life size
1 Byte (B)8 bitsOne character
1 Kilobyte (KB)1024 BA short text file
1 Megabyte (MB)1024 KBA phone photo ≈ 3 MB
1 Gigabyte (GB)1024 MBA 1-hour HD movie ≈ 1.5 GB
1 Terabyte (TB)1024 GBA laptop hard disk
1 Petabyte (PB)1024 TBData centres of big companies

After PB come Exabyte (EB), Zettabyte (ZB) and Yottabyte (YB), each 1024 times the previous one.

🧮 Solved example

A pen drive is 16 GB. How many MB is it? 16 × 1024 = 16384 MB. How many photos of 4 MB fit? 16384 ÷ 4 = 4096 photos.

Memory hierarchy

No single memory is fast, big and cheap at the same time. So a computer uses a hierarchy: small and very fast memory close to the CPU, large and slower memory further away.

Registersinside the CPU · fastest · a few bytes← speed ↑Cache memoryon the CPU chip · KB to a few MBRAM (main memory)GBs · loses data when power goesSSD / Hard diskhundreds of GB to TB · permanentPen drive, DVD, cloud backupportable or remote · slowest to reach← capacity ↓
Top = fastest and costliest per byte, bottom = largest and cheapest

Primary memory: RAM and ROM

Primary memory is directly accessed by the CPU. Programs must be loaded into it before they can run.

RAM – Random Access Memory

  • Read and write
  • Volatile: data lost when power is off
  • Holds the OS, open apps and files right now
  • Bigger RAM = more apps open smoothly (e.g. 8 GB)

ROM – Read Only Memory

  • Mostly read only (written at the factory)
  • Non-volatile: keeps data without power
  • Holds the firmware / BIOS that starts the computer
  • Small in size
RAM vs ROM

Types: SRAM (fast, used for cache) and DRAM (cheaper, used as main memory). ROM types are PROM (write once), EPROM (erase with UV light) and EEPROM (erase electrically; flash memory in pen drives is a type of EEPROM).

Cache memory

RAM is much slower than the CPU, so the CPU would waste time waiting. Cache is a small, very fast memory that keeps a copy of the data and instructions the CPU is likely to need next. If the data is found in cache it is a cache hit; otherwise it is a miss and data is fetched from RAM.

Example: in a loop that adds 1000 marks, the same few instructions run again and again. After the first time they stay in cache, so the loop runs much faster.

Secondary storage

Secondary memory (storage) is non-volatile and much bigger, but the CPU cannot use it directly; data is first copied into RAM.

DeviceHow it storesTypical use
Hard Disk Drive (HDD)Magnetic spinning plattersCheap large storage, 1–4 TB
Solid State Drive (SSD)Flash chips, no moving partsFast laptops; boots in seconds
Pen drive / memory cardFlash memoryCarry files, phone storage
CD / DVD / Blu-rayOptical (laser)Old software, movies
Cloud storageRemote servers via internetGoogle Drive, backups

Data transfer between memory and CPU: the system bus

Parts of a computer are connected by sets of wires called buses. The system bus has three parts:

CPURAMAddress bus: "give me address 2048"Control bus: READ signalData bus: value stored at 2048Data bus + WRITE: store result at 2052
How the CPU reads and writes memory using the three buses
BusCarriesDirection
Data busActual data / instructionsTwo-way (bidirectional)
Address busMemory location numberOne-way: CPU → memory
Control busSignals like READ, WRITE, clockBoth ways
🧮 Address bus width

An address bus of n wires can point to 2ⁿ different locations. With 16 lines: 2¹⁶ = 65536 locations (64 KB). With 32 lines: 2³² ≈ 4 GB. That is why old 32-bit computers could not use more than about 4 GB of RAM.

Microprocessor

A microprocessor is a complete CPU on a single integrated-circuit chip. Intel 4004 (1971) was the first; today's chips like Intel Core, AMD Ryzen, Apple M-series and Qualcomm Snapdragon hold billions of transistors.

4-bitIntel 4004 · 19718-bitIntel 8080 · 197416-bitIntel 8086 · 197832-bitIntel 80386 · 198564-bittoday: multi-core
Word size of microprocessors grew over time

Multi-core: one chip has 2, 4, 8 or more cores; each core is a separate processor, so many tasks run in parallel. Microcontroller: a small chip that has a CPU, memory and I/O together, used in washing machines, remote controls and Arduino boards.

Reading a processor specification

TermMeaningExample
Word sizeBits the CPU processes at once64-bit
Clock speedInstruction cycles per second3.2 GHz = 3.2 billion cycles/second
CoresIndependent processors on the chip8 cores
Cache sizeFast memory on the chip16 MB L3 cache
PowerHeat / battery use15 W for thin laptops

Summary & practice

  • bit → nibble (4) → byte (8 bits) → KB → MB → GB → TB → PB (×1024 each).
  • Registers > cache > RAM > SSD/HDD in speed; the reverse in size.
  • RAM is volatile; ROM is non-volatile and stores startup firmware.
  • Buses: data (two-way), address (one-way), control.
  • Microprocessor = CPU on a chip; multi-core chips run tasks in parallel.
✅ Practice

1) Convert 2 GB into KB. 2) A CPU has 20 address lines. How many memory locations can it address? 3) Why do we need cache when RAM is already there?

Answers: 1) 2 × 1024 × 1024 = 2097152 KB. 2) 2²⁰ = 1048576 (1 M) locations. 3) Cache is much faster than RAM, so the CPU waits less.

Frequently Asked Questions

Why is RAM called volatile memory?
Because its contents are lost when power is switched off. That is why you must save a file to secondary storage before shutting down.
How many bytes are there in 1 KB?
In computer memory 1 KB = 1024 bytes (2 to the power 10). Similarly 1 MB = 1024 KB and 1 GB = 1024 MB.
What is the difference between data bus and address bus?
The address bus carries the location (address) the CPU wants to read or write and is one-way. The data bus carries the actual data and is two-way.
← Class 11 Computer Science
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

Next topicData, Software & Operating System Your progress: 2 / 29 (7%) · Lesson 3 / 29 Continue →

How was this lesson?

Your feedback helps us make the content better.

Write a review or suggestion (optional)

After approval, your name and city may appear publicly with your review. Please do not write your email or phone number.

▶ CodingEasily on YouTube

Learn with video lessons in easy Hindi

Featured video: RDBMS Part 3 – Class XI Commerce IT

▶ Subscribe – it’s free