Computer Memory
Computer Memory
• Computer memory is just like the human brain. It is used to store data
/information and instructions. It is a data storage unit or a data
storage device where data is to be processed and instructions
required for processing are stored. It can store both the input and
output can be stored here.
How Does Computer Memory Work?
• Primary memory
• Secondary memory
• Cache memory
1. Primary Memory
• Static RAM
• Dynamic RAM
Static RAM
• Static RAM is the full form of SRAM. In this type of RAM, data is
stored using the state of a six transistor memory cell. Static RAM is
mostly used as a cache memory for the processor (CPU).
• Cache memory is a chip-based computer component that makes
retrieving data from the computer's memory more efficient. It acts as
a temporary storage area that the computer's processor can retrieve
data from easily. This temporary storage area, known as a cache, is
more readily available to the processor than the computer's main
memory source.
• DRAM stands for Dynamic Random Access Memory. It is a type of
RAM which allows you to stores each bit of data in a separate
capacitor within a specific integrated circuit. Dynamic RAM is a
standard computer memory of the many modern desktop computers.
• This type of RAM is a volatile memory that needs to be refreshed with
voltage regularly. Else it loses the information stored on it.
SRAM VS DRAM
SRAM DRAM
SRAM has lower access time, so it is faster compared DRAM has higher access time, so it is slower than
to DRAM. SRAM.
SRAM has a low packaging density. DRAM has a high packaging density.
ROM (Read Only Memory):
• It is a non-volatile memory. Non-volatile memory stores information
even when there is a power supply failed/ interrupted/stopped. ROM
is used to store information that is used to operate the system. As its
name refers to read-only memory, we can only read the programs and
data that is stored on it. It contains some electronic fuses that can be
programmed for a piece of specific information. The information
stored in the ROM in binary format. It is also known as permanent
memory.
ROM is of four types
• MROM(Masked ROM): Hard-wired devices with a pre-programmed collection of data
or instructions were the first ROMs. Masked ROMs are a type of low-cost ROM that
works in this way.
• PROM (Programmable Read Only Memory): This read-only memory is modifiable
once by the user. The user purchases a blank PROM and uses a PROM program to put
the required contents into the PROM. Its content can’t be erased once written.
• EPROM (Erasable Programmable Read Only Memory): EPROM is an extension to
PROM where you can erase the content of ROM by exposing it to Ultraviolet rays for
nearly 40 minutes.
• EEPROM (Electrically Erasable Programmable Read Only Memory): Here the written
contents can be erased electrically. You can delete and reprogramme EEPROM up to
10,000 times. Erasing and programming take very little time, i.e., nearly 4 -10
ms(milliseconds). Any area in an EEPROM can be wiped and programmed selectively.
2. Secondary Memory
• CD – ROM
• It’s called compact disk. Only read from memory.
• Information is written to the disc by using a controlled laser beam to burn pits on
the disc surface.
• It has a highly reflecting surface, which is usually aluminium.
• The diameter of the disc is 5.25 inches.
• 16000 tracks per inch is the track density.
• The capacity of a CD-ROM is 600 MB, with each sector storing 2048 bytes of data.
• The data transfer rate is about 4800KB/sec. & the new access time is around 80
milliseconds.
• WORM-(WRITE ONCE READ MANY)
• A user can only write data once.
• The information is written on the disc using a laser beam.
• It is possible to read the written data as many times as desired.
• They keep lasting records of information but access time is high.
• It is possible to rewrite updated or new data to another part of the disc.
• Data that has already been written cannot be changed.
• Usual size – 5.25 inch or 3.5 inch diameter.
• The usual capacity of 5.25 inch disk is 650 MB,5.2GB etc.
. Cache Memory