Controls
0Hits
0Misses
0%Hit rate
—AMAT estimate
Blue = selected set
Green = hit
Orange = replacement
Current byte address
—
Block address
—
Result
Press Step
Cache
set = block address mod number of sets
What to notice
In a direct-mapped cache, each memory block has exactly one possible cache line. If two frequently reused blocks map to the same line, they keep evicting each other even when the cache has unused capacity elsewhere. That repeated eviction is a conflict miss.
block = floor(address / block_size), set = block mod number_of_sets, tag = floor(block / number_of_sets)