Set-Associative Cache
A -byte, -bytes-per-block, -way associative cache of blocks requires both a write policy and a replacement policy to store memory blocks in clusters of the same index, such that . The length of the tag (metadata) is therefore equal to
where is the number of bits allocated to the offset, or the length of every block.