Professional Documents
Culture Documents
Cache Memory
Cache Memory
Cache Memory
The basic idea of caching is when the CPU needs a word, it first looks in the cache. Only
if the word is not there, does it go to main memory.
• Cache Size
• Cache Organization
• Unified
• Split
• Number of Caches
• Write through writes back to main memory immediately upon change in the cache
• Write back or write deferred - writes to memory are made only when a cache line is
actually replaced
b. Temporal Locality – occurs when recently accessed memory locations are accessed
again.
Cache Organization
• Direct-Mapped Caches
• fix the cache entry in which a particular portion of main memory can be stored.
This is the fastest kind of cache to search, but the most inflexible.
• Set-Associative Caches