Professional Documents
Culture Documents
4.4 Set Associative Cache
4.4 Set Associative Cache
Hit ratio improves as the set size increases as more words with the same index
but different tags can reside in cache.
An increase in the set size increases the number of bits in words of cache and
requires more complex comparison logic.
Writing into Cache
Write Back : Cache is updated and marked by the flag. When the
word is removed from cache, flag is checked if it is set the
corresponding address in main memory is updated.
The main disadvantage is that data may be lost in case the cache is
disrupted.
Cache Initialization