What is Set-associative cache?

A cache organization in which data can go in any of several locations (ways) within the one set selected by the address. An n-way cache compares n tags in parallel on each access.

Field: Memory Hierarchy

Set-associative cache in the explanations

Questions that mention Set-associative cache (5)

  1. Which correctly describes a set-associative cache?
  2. How many sets does a 4-way set-associative cache with 32-bit addresses, 32 KB capacity and 64-byte lines have?
  3. In an 8-way set-associative cache, how many tags are compared in parallel on each access?
  4. For a direct-mapped cache with 32-bit addresses, 32 KB capacity and 64-byte lines, how many tag bits are there?
  5. What changes when a cache is switched from direct-mapped to set-associative?

Related terms

Direct-mapped cache Average memory access time Cache line Capacity miss Compulsory miss Conflict miss Fully associative cache Loop blocking LRU replacement Miss penalty

Back to the glossary