NAME ASAD HUSSAIN
ROLL NO 22-BSIT-2025
TOPIC RAM AND ROM IT’S TYPES
SUBJECT IT INFRASTRUCTURE
INSTRUCTOR SIR MUDASIR
Introduction
Memory plays a very important role in the working of a computer. It is the place where
data, instructions, and results are stored temporarily or permanently. The speed and
efficiency of a computer largely depend on its memory. There are two main types of
primary memory in a computer — RAM (Random Access Memory) and ROM (Read
Only Memory). Both are crucial for the smooth functioning of the system, but they
serve different purposes. This assignment will explain what RAM and ROM are, how
they work, their types, and their differences.
What is RAM (Random Access Memory)?
RAM stands for Random Access Memory. It is a type of volatile memory, which
means that all the data stored in RAM is erased when the computer is turned off. RAM
is called “random access” because the CPU can directly access any location in it, unlike
sequential storage devices such as hard drives or tapes.
RAM is used to store data and instructions that the CPU needs while performing
operations. It acts as a temporary workspace for the computer. When you open a
program, a file, or a web browser, that data is first loaded into RAM so the CPU can
access it quickly. The more RAM a computer has, the more tasks it can perform at once
without slowing down.
Functions of RAM
1. Temporary Storage: RAM temporarily stores data and instructions while the
computer is on.
2. Fast Access: It allows very fast data access compared to hard drives or SSDs.
3. Program Execution: All active programs and operating system processes run
inside RAM.
4. System Performance: More RAM means smoother multitasking and faster
processing.
Types of RAM:
There are two main types of RAM: Static RAM (SRAM) and Dynamic RAM (DRAM).
Each type has its own features, speed, and use.
1: Static RAM (SRAM)
Static RAM stores data using flip-flops. As long as power is supplied, the data remains
stable. It does not need to be refreshed continuously like DRAM.
• Speed: SRAM is faster than DRAM.
• Cost: It is more expensive.
• Usage: Commonly used in cache memory of processors due to high speed.
• Volatility: Data is lost when power is off.
Advantages of SRAM:
1. Very fast in speed.
2. More reliable because it doesn’t need refresh cycles.
3. Used for high-speed cache memory.
Disadvantages of SRAM:
1. Expensive compared to DRAM.
2. Occupies more physical space.
2: Dynamic RAM (DRAM)
Dynamic RAM stores each bit of data in a capacitor within an integrated circuit.
Because capacitors leak charge, DRAM needs to be refreshed thousands of times per
second to retain information.
• Speed: Slower than SRAM.
• Cost: Cheaper and more compact.
• Usage: Used in main memory (system RAM).
• Volatility: Data is lost when power is off.
Advantages of DRAM:
1. Less expensive and more storage capacity.
2. Compact and efficient for main system memory.
Disadvantages of DRAM:
1. Slower than SRAM.
2. Requires constant refreshing, which consumes more power.
Modern RAM Types
Modern computers use advanced forms of DRAM such as:
• SDRAM (Synchronous DRAM) – Works in sync with the CPU clock.
• DDR SDRAM (Double Data Rate SDRAM) – Transfers data twice per clock
cycle. Versions include DDR2, DDR3, DDR4, and DDR5, each faster and more
efficient than the previous.
What is ROM (Read Only Memory)?
ROM stands for Read Only Memory. Unlike RAM, ROM is non-volatile, which means
that its data remains stored even after the power is turned off. ROM contains permanent
instructions that are used to start up the computer and perform basic input/output
operations.
ROM stores the firmware — a small program that helps boot the computer and load the
operating system. Since the data in ROM cannot be easily changed or erased, it
ensures that the system has the basic instructions it needs to function correctly every
time it starts.
Functions of ROM
1. Permanent Storage: Stores essential programs like BIOS or firmware.
2. Booting Process: Provides instructions to initialize hardware during startup.
3. Security: Prevents unauthorized modifications to system instructions.
4. Non-volatile Memory: Retains data even without power.
Types of ROM:
There are several types of ROM, each designed for specific uses and with different
levels of reprogramming capability.
1: PROM (Programmable Read Only Memory)
PROM is a type of ROM that is manufactured as blank memory and can be
programmed once by the user using a special device called a PROM programmer.
After programming, the data becomes permanent and cannot be changed or erased.
• Use: Often used in manufacturing or testing where one-time data storage is
needed.
Advantages:
1. Can be programmed by the user.
2. Useful for small production batches.
Disadvantages:
1. Cannot be reprogrammed once written.
2: EPROM (Erasable Programmable Read Only Memory)
EPROM can be erased and reprogrammed multiple times. It is erased by exposing it to
ultraviolet (UV) light for a certain period. Once erased, new data can be written to it.
• Use: Often used in early microcontrollers and embedded systems.
Advantages:
1. Reusable after erasing.
2. Suitable for development and testing.
Disadvantages:
1. Erasing process is slow and requires special UV light.
2. Physically removing the chip is necessary for reprogramming.
3: EEPROM (Electrically Erasable Programmable Read Only
Memory)
EEPROM can be erased and rewritten electrically without removing it from the circuit. It
is more flexible and efficient than EPROM.
• Use: Used in modern BIOS, microcontrollers, and smart cards.
Advantages:
1. Can be erased and reprogrammed in-circuit.
2. Faster and easier to update.
Disadvantages:
1. Slower than RAM.
2. Limited number of write cycles before wear.
Differences Between RAM and ROM
Feature RAM ROM
Meaning Random Access Memory Read Only Memory
Nature Volatile (data lost when power off) Non-volatile (data
permanent)
Usage Used to store data temporarily Stores permanent
while programs run system instructions
Data Read and Write Read Only
Access
Speed Very fast Slower compared to
RAM
Examples DRAM, SRAM PROM, EPROM,
EEPROM
Importance of RAM and ROM in a Computer
Both RAM and ROM are essential for computer operation. Without RAM, the CPU
would have no space to temporarily store and access data, making processing
extremely slow. Without ROM, the computer would not know how to start or load the
operating system.
• RAM improves performance, multitasking, and responsiveness.
• ROM ensures the system starts correctly and securely.
Together, they form the foundation of a computer’s memory system.
Conclusion :
In conclusion, RAM and ROM are the two fundamental types of primary memory that
work together to make a computer functional. RAM acts as a fast, temporary workspace
for all running programs, while ROM holds the permanent startup instructions required
to boot the system.
Different types of RAM (SRAM, DRAM) and ROM (PROM, EPROM, EEPROM) serve
different purposes based on speed, cost, and usability.
Understanding these memory types helps us appreciate how computers store, process,
and manage information effectively. Without RAM and ROM, a computer could neither
run smoothly nor start at all — proving that memory truly is the heart of every computing
system.