A cache trades hit latency against miss rate under area and power caps. Every lesson below derives its numbers from stated formulas and small runnable models.
Organization | Compare cost | Miss behavior | When it fits |
|---|---|---|---|
Direct-mapped | One tag compare, fastest hit | Conflict misses on any alias | Tiny structures or historical baselines |
Set-associative | One compare per way, slower hit | Fewer conflict misses as ways grow | Most L1, L2 and LLC levels |
Fully associative | A compare per line, slowest and hottest | No conflict misses, only capacity and compulsory | Small buffers such as TLBs |
Victim cache | One small fully associative side buffer | Catches conflict evictions before they leave | Direct-mapped or low-way L1 designs |
Lesson | What it covers |
|---|---|
Index, tag and offset split, and the hit and miss path. | |
Ways, miss classes, and measured conflict misses. | |
Average access time, correct MPKI use, and overlap. | |
Victim choice, Belady bound, and insertion fixes. | |
Write hit and miss options, traffic, and directory costs. | |
A scored trade study and the MPKI split method. |
Average memory access time. It combines hit latency with miss rate times miss penalty, so it prices both sides of the trade.