Memory Hierarchy
Memory Hierarchy
HIERARCHY
OBJECTIVE
• Study about the various types of memory according to size, cost and speed
MEMORY HIERARCHY
• The memory unit is an essential component in any digital computer since it is needed for storing
program and data
• Not all accumulated information is needed by the CPU at the same time.
• Therefore, it is more economical to use low-cost storage devices to serve as a backup for storing the
information i.e. not currently used by CPU.
MEMORY HIERARCHY
A RAM chip is better suited for communication with the CPU if it has one or
more control inputs that select the chip when needed.
Read/Write Memory, which initially does not contain any data.
It loses its data once the power is gone off the data is erased.
It is a volatile memory.
RAM Fig.
TYPES OF RAM
AUXILIARY MEMORY
Auxillary
Memory
Devices
CACHE MEMORY
If the active portions of the program and data are placed in fast small memory,
the average memory access time can be reduced.
Thus, reducing the total execution time of the program.
Such a fast small memory is referred to as cache memory.
The cache is the fast component in the memory hierarchy and approaches the
speed of the CPU
When CPU needs to access memory, the cache is examined.
L1CACHE MEMORY
L1 cache(2kb- 64KB)
L1 cache is also known as primary cache or level cache. It is the topmost
cache in the hierarchy cache level of a CPU. It is the fastest cache in the
hierarchy
It has a smaller size and a smaller delay because it is usually built in the chip.
SRAM is used for the implementation of the L1.
L2,L3 CACHE MEMORY
L2 Cache (256KB-512KB)
L2 cache is also known as secondary cache or level 2 cache,
It is next to L1 in the cache hierarchy
The data looking for is not found in L1.
L2 is typically implemented using a DRAM.
Most times, L2 is soldered onto the motherboard very close to the chip, but some
processors like Pentium pro deviated from its standard.
L3 Cache (1MB-8MB)
This is the largest among all cache, even though it is slower, it’s still faster then the RAM
VIRTUAL MEMORY
Virtual Memory is imaginary memory. It gives the illusion of the memory
arrangement that is not physically there.
Thank-You
By Akshay Kumar
Roll No.- 06