Computer Memory
Computer Memory
Features of Memory
Following are the different features of the memory system that includes:
1. Location: It represents the internal or external location of the memory
in a computer. The internal memory is inbuilt in computer memory. It
is also known as primary memory. the example of primary memory are
registers, cache and main memory. Whereas, external memory is the
separate storage device from the computer, such as disk, tape, USB pen
drive.
2. Capacity: It is the most important feature of computer memory.
Storage capacity can vary in external and internal memory. External
devices' storage capacity is measured in terms of bytes, whereas the
internal memory is measured with bytes or words. The storage word
length can vary in bits, such as 8, 16 or 32 bits.
3. Access Methods: Memory can be accessed through four modes of
memory.
o DMA: As the name specifies, Direct Memory Address (DMA) is a
method that allows input/output (I/O) devices to access or
retrieve data directly or from the main memory.
o Sequential Access Method: The sequential access method is
used in a data storage device to read stored data sequentially
from the computer memory. Whereas, the data received from
random access memory (RAM) can be in any order.
o Random Access Method: It is a method used to randomly
access data from memory. This method is the opposite of SAM.
For example, to go from A to Z in random access, we can directly
jump to any specified location. In the Sequential method, we
have to follow all intervening from A to Z to reach at the
particular memory location.
o Associative Access Method: It is a special type of memory that
optimizes search performance through defined data to directly
access the stored information based on a memory address.
4. Unit of transfer: As the name suggests, a unit of transfer measures the
transfer rate of bits that can be read or write in or out of the memory
devices. The transfer rate of data can be different in external and
internal memory.
o Internal memory: The transfer rate of bits is mostly equal to the
word size.
o External memory: The transfer rate of bit or unit is not equal to
the word length. It is always greater than a word or may be
referred to as blocks.
5. Performance: The performance of memory is majorly divided into
three parts.
o Access Time: In random access memory, it represents the total
time taken by memory devices to perform a read or write
operation that an address is sent to memory.
o Memory Cycle Time: Total time required to access memory
block and additional required time before starting second access.
o Transfer rate: It describes the transfer rate of data used to
transmit memory to or from an external or internal memory
device. Bit transfer can be different for different external and
internal devices.
6. Physical types: It defines the physical type of memory used in a
computer such as magnetic, semiconductor, magneto-optical and
optical.
7. Organization: It defines the physical structure of the bits used in
memory.
8. Physical characteristics: It specifies the physical behavior of the
memory like volatile, non-volatile or non-erasable memory. Volatile
memory is known as RAM, which requires power to retain stored
information, and if any power loss has occurred, stored data will be
lost. Non-volatile memory is a permanent storage memory that is used
to obtain any stored information, even when the power is off. Non-
erasable memory is a type of memory that cannot be erased after the
manufactured like ROM because at the time of manufactured ROM are
programmed.
Classification of Memory
The following figure represents the classification of memory:
Primary memory is also known as the computer system's main memory that
communicates directly within the CPU, Auxiliary memory and the Cache
memory. Main memory is used to kept programs or data when the processor
is active to use them. When a program or data is activated to execute, the
processor first loads instructions or programs from secondary memory into
main memory, and then the processor starts execution. Accessing or
executing of data from primary memory is faster because it has a cache or
register memory that provides faster response, and it is located closer to
the CPU. The primary memory is volatile, which means the data in memory
can be lost if it is not saved when a power failure occurs. It is costlier than
secondary memory, and the main memory capacity is limited as compared
to secondary memory.
Random Access Memory (RAM) is one of the faster types of main memory
accessed directly by the CPU. It is the hardware in a computer device to
temporarily store data, programs or program results. It is used to read/write
data in memory until the machine is working. It is volatile, which means if a
power failure occurs or the computer is turned off, the information stored
in RAM will be lost. All data stored in computer memory can be read or
accessed randomly at any time.
o SRAM
o DRAM
The access time of SRAM is slow. The access time of DRAM is high.
It uses flip-flops to store each bit of information. It uses a capacitor to store each bit of
information.
It does not require periodic refreshing to preserve It requires periodically refreshing to preserve
the information. the information.
Advantages of RAM
Types of ROM
Advantages of ROM
Read and write operations can be performed. Only Read operation can be performed.
Data can be lost in volatile memory when the Data cannot be lost in non-volatile memory
power supply is turned off. when the power supply is turned off.
Storage data requires to be refreshed in RAM. Storage data does not need to be refreshed in
ROM.
The size of the chip is bigger than the ROM chip The size of the chip is smaller than the RAM chip
to store the data. to store the same amount of data.
Types of RAM: DRAM and SRAM Types of ROM: MROM, PROM, EPROM,
EEPROM
Secondary Memory
Secondary memory is a permanent storage space to hold a large amount
of data. Secondary memory is also known as external memory that
representing the various storage media (hard drives, USB, CDs, flash drives
and DVDs) on which the computer data and program can be saved on a long
term basis. However, it is cheaper and slower than the main memory. Unlike
primary memory, secondary memory cannot be accessed directly by the CPU.
Instead of that, secondary memory data is first loaded into the RAM (Random
Access Memory) and then sent to the processor to read and update the data.
Secondary memory devices also include magnetic disks like hard disk and
floppy disks, an optical disk such as CDs and CDROMs, and magnetic tapes.
Hard Disk
CD (Compact Disc)
Types of CDs
DVD Drive/Disc
DVD is an optical disc storage device, stands for Digital Video Display or
Digital Versatile Disc. It has the same size as a CD but can store a larger
amount of data than a compact disc. It was developed in 1995 by Sony,
Panasonic, Toshiba and Philips four electronics companies. DVD drives are
divided into three types, such as DVD ROM (Read Only Memory), DVD
R (Recordable) and DVD RW (Rewritable or Erasable). It can store multiple
data formats like audio, videos, images, software, operating system, etc. The
storing capacity of data in DVD is 4.7 GB to 17 GB.
Blu Ray is an Optical disc storage device used to store a large amount of data
or high definition of video recording and playing other media files. It uses
laser technology to read the stored data of the Blu-ray Disk. It can store more
data at a greater density as compared to CD/ DVD. For example, compact
discs allow us to store 700 MB of data, and in DVDs, it provides up to 8 GB
of storage capacity, while Blu-ray Discs provide 28 GB of space to store data.
Pen Drive
A pen drive is a portable device used to permanently store data and is also
known as a USB flash drive. It is commonly used to store and transfer the
data connected to a computer using a USB port. It does not have any
moveable part to store the data; it uses an integrated circuit chip that stores
the data. It allows the users to store and transfer data like audio, videos,
images, etc. from one computer to any USB pen drive. The storing capacity
of pen drives from 64 MB to 128 GB or more.
Cache Memory
Register Memory
The register memory is a temporary storage area for storing and transferring
the data and the instructions to a computer. It is the smallest and fastest
memory of a computer. It is a part of computer memory located in the CPU
as the form of registers. The register memory is 16, 32 and 64 bits in size. It
temporarily stores data instructions and the address of the memory that is
repeatedly used to provide faster response to the CPU.
Primary Vs. Secondary Memory
Primary Memory Secondary Memory
Data can be access directly by the processor or CPU. Data cannot be accessed directly by the I/O
processor or CPU.
Stored data can be a volatile or non-volatile memory. The nature of secondary memory is always non-
volatile.
It is more costly than secondary memory. It is less costly than primary memory.
It required the power to retain the data in primary It does not require power to retain the data in
memory. secondary memory.
Examples of primary memory are RAM, ROM, Examples of secondary memory are CD, DVD,
Registers, EPROM, PROM and cache memory. HDD, magnetic tapes, flash disks, pen drive, etc.