Memory Hierarchy - Intro to Computer Architecture - Lecture Notes, Study notes of Computer Architecture and Organization
In the lecture notes of the intro to computer architecture the main points are listed below:Memory Hierarchy, Reasonable Cost Per Bit, Neumann Bottleneck, Typical System View, Cache and Main Memory, Cache Sizes of Some Processors, Main Idea of Cache, Access Time, System Bus, Addressed Memory Value`Memory Hierarchy, Reasonable Cost Per Bit, Neumann Bottleneck, Typical System View, Cache and Main Memory, Cache Sizes of Some Processors, Main Idea of Cache, Access Time, System Bus, Addressed Memory
Download Memory Hierarchy - Intro to Computer Architecture - Lecture Notes and more Study notes Computer Architecture and Organization in PDF only on Docsity!
Memory Hierarchy
Goal: “Fast”, “unlimited” storage at a reasonable cost per bit.
Recall the von Neumann bottleneck - single, relatively slow path between the CPU and main
memory.
Cache - 1
Typical system view of the memory hierarchy
Figure 4.3 Cache and Main Memory
Cache - 2
Main Idea of a Cache - keep a copy of frequently used information as “close” (w.r.t access time) to
the processor as possible.
CPU Memory
cache
System Bus
Steps when the CPU generates a memory request:
1) check the (faster) cache first
2) If the addressed memory value is in the cache (called a hit ), then no need to access memory
3) If the addressed memory value is NOT in the cache (called a miss ), then transfer the block of
memory containing the reference to cache. (The CPU is stalled waiting while this occurs)
4) The cache supplies the memory value from the cache.
Effective Memory Access Time
Suppose that the hit time is 5 ns, the cache miss penalty is 160 ns, and the hit rate is 99%.
Effective Access Time l(hit time * hit probability) + (miss penalty * miss probability)