0% found this document useful (0 votes)
30 views3 pages

Memory RAM ROM Cache Notes

Memory

Uploaded by

zainab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views3 pages

Memory RAM ROM Cache Notes

Memory

Uploaded by

zainab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Understanding Memory, RAM, ROM, and Cache Types

1. Memory & Its Types


Memory is a critical component of a computer system that stores and processes data. It is classified into
two main types: RAM and ROM.

A. RAM (Random Access Memory)


RAM is a volatile memory, meaning it loses data when the power is turned off. It is used to store
temporary data and active processes for quick access by the CPU.

Types of RAM:
1. DRAM (Dynamic RAM)

- Slower and cheaper than SRAM.

- Used as the main system memory (RAM modules like DDR4, DDR5).

- Needs constant refreshing to retain data.

Reason (Extra Knowledge)


DRAM (Dynamic RAM) - Needs Refreshing
 DRAM stores each bit of data in a capacitor (tiny electrical storage).
 A capacitor naturally leaks charge over time, causing data loss.
 To maintain data, DRAM needs a refresh cycle where the capacitor's charge is periodically
restored (typically every few milliseconds).
 This refreshing process slows down DRAM compared to SRAM.

2. SRAM (Static RAM)

- Faster and more expensive than DRAM.

- Used in CPU cache memory (L1, L2, L3) and in Registers.

- Does not need to be refreshed continuously.

Reason (Extra Knowledge)


SRAM (Static RAM) - No Refresh Needed
 SRAM stores each bit using a flip-flop circuit made of transistors.
 A flip-flop holds its state (0 or 1) as long as power is supplied, without needing a refresh.
 This makes SRAM faster and more reliable but also more expensive and power-hungry than
DRAM.
Why Cache and Registers Use SRAM?
 Cache memory needs to be very fast to keep up with the CPU, so SRAM is used.
 Registers are even faster and are directly inside the CPU, requiring the fastest possible
storage, which SRAM provides.
 Since SRAM doesn’t need refreshing, it reduces delays and improves overall performance.
B. ROM (Read-Only Memory)
ROM is non-volatile memory, meaning it retains data even after power is turned off. It is used to
store firmware and essential boot-up instructions like BIOS/UEFI.

Types of ROM:
1. PROM (Programmable Read-Only Memory)

- Can be programmed only once and cannot be erased or modified.

- Used in embedded systems and firmware applications.

2. EPROM (Erasable Programmable Read-Only Memory)

- Can be erased using UV light and reprogrammed.

- Used in early computer systems and microcontrollers.

3. EEPROM (Electrically Erasable Programmable Read-Only Memory)

- Can be erased electrically (no UV light needed).

- Used in BIOS chips, flash memory, and USB drives.

2. Cache Memory & Its Types


Cache memory is a small but extremely fast memory located close to the CPU. It stores frequently used
instructions and data to speed up processing.

A. Cache
- A high-speed memory component that stores frequently accessed data and instructions.

- Helps reduce the time taken to access data from main memory (RAM).

B. Cache Levels (L1, L2, L3)


1. L1 Cache (Level 1)

- Smallest and fastest cache (usually 16KB - 128KB).

- Located inside the CPU core for ultra-fast access.

- Stores immediate instructions for the processor.

2. L2 Cache (Level 2)

- Larger but slower than L1 (typically 256KB - 8MB).

- Still inside the CPU but shared between multiple cores.

- Stores recently used instructions and data.

3. L3 Cache (Level 3)
- Largest but slowest cache (typically 4MB - 64MB).

- Shared among all CPU cores.

- Helps reduce bottlenecks in multi-core processors.

Final Summary
RAM is volatile and used for temporary storage, while ROM is non-volatile and stores firmware.

SRAM is faster than DRAM, but DRAM is used for system memory due to its low cost.

ROM types include PROM, EPROM, and EEPROM, with EEPROM being widely used today.

Cache memory (L1, L2, L3) speeds up CPU processing by storing frequently accessed data closer to the
processor.

Comparison Table: RAM vs ROM


Feature RAM (Random Access Memory) ROM (Read-Only Memory)

Function Stores temporary data and programs in use Stores firmware and startup instructions

Volatility Volatile (Loses data when power is off) Non-volatile (Retains data after power off)

Speed Much faster for read/write operations Slower compared to RAM


Used for active processes, applications, and
Usage Used for BIOS, firmware, and bootloader
OS execution
Modification Data changes frequently during operation Cannot be easily modified by users

You might also like