Professional Documents
Culture Documents
Adobe Scan 14 Dec 2023
Adobe Scan 14 Dec 2023
Adobe Scan 14 Dec 2023
2) In this, 12tag bits are required to identify a memory block when it is resident
in the cache.
3) The tag bitsof an address recevied from the processor are compared to the tag
bits of each block of the cache to see, ifthe desired block is present. This is known
as Associative Mapping technique.
4) Cost of an associated mapped cache is higher than the cost of direct-mapped
because of the need to search all 128 tag patterns to determine whether a block Is
in cache. This is known as associative search.
Set-Associative Mapping
where the
This form of mapping is an enhanced form of direct mapping
addresses the
drawbacks of direct mapping are removed. Set associative
method. It does this by
problem of possible thrashing in the direct mapping
that a block can map to in the
saying that instead of having exactly one line
a set. Then a block in memory
cache, we will group afew lines together creating
map to any one of the lines of a specific set.. Set-associativemapping allows
can
can have two or more words in the
that each word that is present in the cache
associative cache mapping
main nmemory for the same index address. Set
techniques.
combines the best of direct and associative cache mapping
tag.
ta
Block o
Block 1
Block 1
S taq
Set 1 Bi0ck 2
tag Biock 3 tt sleck G3
Block G