Docsity

Set Associative Caching: Set-Size and Replacement Techniques, Slides of Computer Architecture and Organization

Partial preview of the text

Download Set Associative Caching: Set-Size and Replacement Techniques and more Slides Computer Architecture and Organization in PDF only on Docsity!

Outlines

Set Associative Mapping

Replacement Techniques

Set Associative Mapping

Cache is broken to sets where each set contains ‘N’ lines

Each memory address is assigned a set

Can be cached in any one of those ‘N’ location

Compromise between direct and fully associative  If N=1;Direct Mapping  If N=No of cache lines ; Fully Associative

Replacement Techniques

Other strategies

First In First Out (FIFO) The block that has been in cache for longest timeMost-Recently Used (MRU) The block that has just been usedLeast-Frequently Used (LFU) The block that is used rarelyMost-Frequently Used (MFU) The block that is used mostly