Cache operation when the cpu accesses memory location

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: hat nearby memory locations will be accessed in the near future. •  Equidistant locality: mixture of the two above: if a particular memory location is accessed, then it is likely that memory locations in an equidistant pattern will be accessed in the near future. Cache operation "   When the CPU accesses memory location x, the cache checks if it has x. "   If so, the memory access is avoided. We call this a hit. "   If not, x is fetched from memory and stored in the cache. We call this a miss. "   Memory is not fetched one word at the time, but in cache lines or blocks, for higher memory bandwidth, and good spatial locality. Cache replacement policy "   caches are smaller than local memories, they fi...
View Full Document

Ask a homework question - tutors are online