CS4617 Computer Architecture
Lecture 3: Memory Hierarchy 1 Dr J Vaughan September 15, 2014
1/25
CS4617 Computer Architecture Lecture 3: Memory Hierarchy 1 Dr J - - PowerPoint PPT Presentation
CS4617 Computer Architecture Lecture 3: Memory Hierarchy 1 Dr J Vaughan September 15, 2014 1/25 Important terms Cache fully associative write allocate Virtual memory dirty bit unified cache Memory stall cycles block offset misses per
1/25
2/25
3/25
4/25
5/25
6/25
7/25
8/25
9/25
10/25
11/25
12/25
13/25
14/25
◮ Direct mapped ◮ 2-way set associative ◮ 4-way set associative 15/25
16/25
17/25
◮ Only 1 block frame checked for a hit, only that block can be
◮ Choice of which block to replace 18/25
◮ Selects block for replacement randomly
◮ Relies on locality
◮ LRU is difficult to calculate so the oldest block is selected for
19/25
◮ Optimize for reads 20/25
21/25
22/25
◮ Information written to the block in cache and to lower-level
◮ Only write to block in lower-level memory if dirty bit set when
23/25
24/25
25/25