Coa CACHE MEMORY
Coa CACHE MEMORY
Organization
Pre-Requisite: Computer Memory
Cache Memory is a special very high-speed
memory. The cache is a smaller and faster
memory that stores copies of the data from
frequently used main memory locations. There
are various different independent caches in a
CPU, which store instructions and data. The
most important use of cache memory is that it
is used to reduce the average time to access
data from the main memory.
Cache Mapping
There are three different types of mapping used
for the purpose of cache memory which is as
follows:
1. Direct Mapping
Main
Tag Word-offset
Memory
Cache
Tag Line-offset Word-offset
Memory
(c) What is cache memory? Interpret direct addressing mapping with
diagram.
The following diagram illustrates the direct addressing mapping technique for
a cache memory with 4 blocks and a block s0ze of 4 words:
tag
tag
Multiplexers
tag
Cache Memory
Comparator