Memory 2nd Assignment
Memory 2nd Assignment
What are the different types of computer memory? Briefly Explain the various type of
Memory also includes figures and table in your report, if required.
1. Computer memory representation
The computer memory stores different kinds of data and instructions.
Binary digit or bit is the basic unit of memory.
A bit is a single binary digit, i.e., 0 or 1.
A bit is the smallest unit of representation of data in a computer. A group of 8 bits
form a byte.
1 bit = 0 or 1
1 Byte (B) = 8 bits
1 Kilobyte (KB) =1024 bytes
1 Megabyte (MB) = 1024KB
1 Gigabyte (GB) = 1024 MB
1 Terabyte (TB) = 1024 GB
2. Memory Hierarchy
The memory in a computer can be divided into five levels / hierarchies based on the
speed as well as use.
The processor can move from one level to another based on its requirements. The five
hierarchies in the memory are registers, cache, main memory, magnetic discs, and magnetic
tapes.
The first three hierarchies are volatile memories, whereas the last two hierarchies are non-
volatile.
1
Memory hierarchy is divided into two types
3. 1. Primary Memory
The memory unit that establishes direct communication with the CPU is called Primary
Memory. This memory includes main, cache, as well as CPU registers.
I/O Processor
The primary function of an I/O Processor is to manage the data transfers between auxiliary
memories and the main memory.
Main Memory
The main memory in a computer system is often referred to as Random Access Memory
(RAM). This memory unit communicates directly with the CPU and with auxiliary memory
devices through an I/O processor.
The programs that are not currently required in the main memory are transferred into
auxiliary memory to provide space for currently used programs and data.
2
5. Cache Memory
Cache memory is a high-speed memory inside CPU, which is small in size but faster than
the main memory (RAM).
Cache memory acts as a buffer between RAM and the CPU. Cache memory is used to reduce
the average time to access data from the Main memory.
Whenever the CPU requires data, it first checks the cache. If the data is found, it is read from
the cache memory (Finding data or instruction in cache is called cache hit). Otherwise, the
CPU moves onto the main memory (cache miss).
The cache memory stores the program currently being executed or which may be executed
within a short period of time.
6. Types of Cache
1. Primary Cache (L1 cache) –
A primary cache is always located on the processor chip. This cache is small and its access
time is comparable to that of processor registers.
2. Secondary Cache (L2 cache) –
Secondary cache is placed between the primary cache and the rest of the memory. It is
referred to as the level 2 (L2) cache.
7. Primary memory
The memory unit that establishes direct communication with the CPU is called Primary
Memory.
Primary memory stores the intermediate results and final results of the processing
before it is stored in the permanent storage. Some of this memory is volatile i.e. contents
stored will get erased if power is switched off and some of them are non-volatile i.e. contents
cannot be erased.
3
8. Read-Only Memory (ROM)
RAM plays very important role in the processing speed of a computer. A bigger RAM size
provides larger amount of space for processing. So the processing speed is increased. The
amount of data that can be stored in RAM is measured in bytes. Most desktop computers
typically have 2 GB to 4 GM of RAM. It also allows the addition of more memory if needed.
4
RAM is of two types − Static RAM (SRAM) Dynamic RAM
(DRAM)
SRAM DRAM
Transistors are used to store information in Capacitors are used to store data in DRAM.
SRAM.
SRAMs are low density devices. DRAMs are high density devices.
10.Secondary memory
Secondary memory is also known as External Memory/Auxiliary memory/Backup
memory. It is used for storing data and instructions both permanently. It is also
used to transfer data from one computer to another.
Secondary memory is not directly accessible to the CPU. They are non- volatile in
nature and data does not disappear when the computer turned off. Secondary memory is
cheaper than primary memory and also slower in both reading and writing.
5
Secondary memory is of two types:
1. Fixed devices
Fixed storage is also known as fixed disk drives or hard drives. Here data is stored in a
built-in fixed storage device.
2. Removable devices
Removable storage is also known as disks drives or external drives.
It is a storage device that can be inserted or removed from the computer according to our
requirements. They are portable so that we can easily transfer data from one computer to
another. Also, they provide the fast data transfer.
Types of Removable Storage:
• Optical discs (like CDs, DVDs, Blu-ray discs, etc.)
• Memory cards
• Floppy disks
• Magnetic tapes
Compact Disc
A Compact Disc (CD) is a commonly used secondary storage device. It contains tracks and
sectors on its surface. Its shape is circular and is made up of polycarbonate plastic. The
6
storage capacity of CD is up to 700 MB of data. A CD may also be called a CD-ROM
(Compact Disc Read-Only Memory), in these computers can read the data present in a CD-
ROM, but cannot write new data onto it.
CD is of two types:
CD-R (compact disc recordable): Once the data has been written onto it cannot be erased,
it can only be read.
CD-RW (compact disc rewritable): It is a special type of CD in which data can be erased
and rewritten as many times as we want. It is also called an erasable CD.
Digital Versatile Disc
A Digital Versatile Disc also known as DVD it is looks just like a CD, but the storage
capacity is greater compared to CD, it stores up to 4.7 GB of data. DVD-ROM drive is
needed to use DVD on a computer. The video files, like movies or video recordings, etc., are
generally stored on DVD and you can run DVD using the DVD player. DVD is of three
types:
DVD-ROM(Digital Versatile Disc Read only)
DVD-R(Digital Versatile Disc Recordable) DVD-RW(Digital Versatile Disc
Rewritable and Erasable)
Blu-ray Disc
A Blu-ray disc looks just like a CD or a DVD but it can store data or information up to 25
GB data. If you want to use a Blu-ray disc, you need a Blu-ray reader. The name Blu-ray is
derived from the technology that is used to read the disc ‘Blu’ from the blue-violet laser
and ‘ray’ from an optical ray.
Hard Disk
A hard disk is a part of a unit called a hard disk drive. It is used to storing a large
amount of data. Hard disks or hard disk drives come in different storage capacities.(like
256 GB, 500 GB, 1 TB, and 2 TB, etc.). It is created using the collection of discs known as
platters. The platters are placed one below the other. They are coated with magnetic material.
Each platter consists of a number of invisible circles and each circle having the same centre
called tracks.
Hard disk is of two types (i) Internal hard disk (ii) External hard disk.