Unit 3: Computer Memory Notes | BSc CSIT 1st Semester IIT

Unit 3: Computer Memory Notes | BSc CSIT 1st Semester IIT

Complete and detailed notes for BSc CSIT 1st Semester students on Unit 3: Computer Memory according to IIT syllabus. This chapter covers memory representation, memory hierarchy, CPU registers, cache memory, primary memory, secondary memory, storage device access types, magnetic tape, magnetic disk, optical disk, magneto-optical disk, and how computer uses memory.


Introduction to Computer Memory

Computer memory is the storage space used to store data, instructions, and results. Memory is one of the most important components of a computer because without memory, the CPU cannot process information.

Main functions of memory:

  • Stores operating system
  • Stores application programs
  • Stores input data
  • Stores processing results
  • Stores files permanently

1. Memory Representation

All data inside a computer is represented in binary form using only two digits: 0 and 1.

Basic Units of Memory

  • 1 Bit = Binary digit
  • 4 Bits = 1 Nibble
  • 8 Bits = 1 Byte
  • 1024 Bytes = 1 KB
  • 1024 KB = 1 MB
  • 1024 MB = 1 GB
  • 1024 GB = 1 TB
  • 1024 TB = 1 PB

Examples

  • Character A = ASCII Code
  • Numbers stored in binary
  • Images stored as pixels
  • Audio stored digitally

2. Memory Hierarchy

Memory hierarchy is the arrangement of storage devices based on speed, cost, and capacity.

Order of Memory Hierarchy

Registers → Cache Memory → Main Memory (RAM) → Secondary Memory → Backup Storage

Memory Type Speed Cost Capacity
Registers Fastest Highest Lowest
Cache Very Fast High Low
RAM Fast Medium Medium
Hard Disk / SSD Slow Low High

3. CPU Registers

Registers are small, high-speed storage locations inside CPU used for temporary storage.

Types of Registers

  • Program Counter (PC) – Holds address of next instruction
  • Instruction Register (IR) – Holds current instruction
  • Accumulator (AC) – Stores intermediate results
  • Memory Address Register (MAR) – Stores memory address
  • Memory Data Register (MDR) – Stores data from memory

Advantages

  • Very fast access
  • Improves CPU speed
  • Used during execution

4. Cache Memory

Cache memory is a very high-speed memory located between CPU and RAM. It stores frequently used data and instructions.

Purpose of Cache

  • Reduces CPU waiting time
  • Increases system speed
  • Stores frequently accessed data

Levels of Cache

  • L1 Cache – Fastest and smallest
  • L2 Cache – Larger than L1
  • L3 Cache – Larger shared cache

5. Primary Memory

Primary memory is directly accessed by CPU. It stores data currently in use.

Types of Primary Memory

a. RAM (Random Access Memory)

  • Volatile memory
  • Temporary storage
  • Data lost after power off

b. ROM (Read Only Memory)

  • Non-volatile memory
  • Permanent storage
  • Stores BIOS/Firmware

6. Secondary Memory

Secondary memory is used for permanent storage of data and programs.

Examples

  • Hard Disk Drive (HDD)
  • Solid State Drive (SSD)
  • Pen Drive
  • CD/DVD
  • Memory Card

Features

  • Large storage capacity
  • Non-volatile
  • Slower than RAM
  • Low cost per GB

7. Access Types of Storage Devices

a. Sequential Access

Data is accessed in sequence from beginning to end.

Example: Magnetic Tape

b. Direct Access

Data can be accessed directly from any location.

Example: Hard Disk

c. Random Access

Any memory location can be accessed instantly.

Example: RAM


8. Magnetic Tape

Magnetic tape is a storage medium coated with magnetic material used to store data.

Features

  • Low cost
  • Large storage
  • Sequential access
  • Used for backup

Uses

  • Bank records
  • Backup systems
  • Archiving data

9. Magnetic Disk

Magnetic disk stores data on rotating circular platters coated with magnetic material.

Examples

  • Hard Disk
  • Floppy Disk

Advantages

  • Direct access
  • Large capacity
  • Reusable

10. Optical Disk

Optical disk uses laser technology to read and write data.

Examples

  • CD
  • DVD
  • Blu-ray Disc

Advantages

  • Portable
  • Cheap
  • Good for media storage

11. Magneto-Optical Disk

Magneto-optical disk uses both magnetic and optical technology.

Features

  • Rewritable
  • Reliable
  • Long lifespan
  • Used in special storage systems

12. How the Computer Uses Its Memory

Computer uses memory during all operations.

Step-by-Step Process

  1. User opens a program
  2. Program loads from secondary storage into RAM
  3. CPU fetches instructions from RAM
  4. Registers store temporary data
  5. Cache speeds up repeated access
  6. Results saved back to storage

Example

When you open Microsoft Word:

  • Word loads from SSD/HDD to RAM
  • CPU processes commands
  • Temporary text stored in RAM
  • File saved permanently to disk

Important Differences

Primary Memory vs Secondary Memory

Primary Memory Secondary Memory
Fast Slower
Temporary Permanent
Expensive Cheap
Directly accessed by CPU Not directly accessed

RAM vs Cache

RAM Cache
Larger capacity Smaller capacity
Slower Faster
Main memory Support memory

Exam Questions

Short Questions

  • Define memory hierarchy.
  • What is cache memory?
  • What is RAM?
  • What is magnetic tape?
  • Define optical disk.

Long Questions

  • Explain memory hierarchy with diagram.
  • Describe types of storage access methods.
  • Explain cache memory and CPU registers.
  • Differentiate primary and secondary memory.
  • How does computer use memory while processing?

Conclusion

These detailed notes on Unit 3: Computer Memory are very useful for BSc CSIT 1st Semester IIT students. Study definitions, differences, and examples carefully for better exam preparation.

Previous Post Next Post

Contact Form