|
|
|
|
|
|
Figure 5.53
Cache configuration. |
|
|
|
|
|
|
|
|
For the D-cache, we select: |
|
|
|
|
| | | | | | | |
|
|
|
|
no allocate on write
Write-through |
|
|
|
|
|
|
|
|
|
|
In selecting random replacement (RAND), we should adjust the miss rates upward by about 12%. Our evaluation is also affected by our degree of association. Miss rate is increased by 15% for two-way associative cache. |
|
|
|
|
|
|
|
|
Thus, the effec tive miss rates are now: |
|
|
|
 |
|
|
|
|
(Miss rate) ´ (adjustment for RAND) ´ (adjustment for associativity). |
|
|
|
|
| |
|
|
|
|
0.03 ´ 1.12 ´ 1.15 = 0.039. |
|
|
|
| | |
|
|
|
|
.044 ´ 1.12 ´ 1.15 = 0.057. |
|
|
|
|
|
|
|
|
|
|
Each cache is organized as in Figure 5.53. |
|
|
|
|
|
|
|
|
Processor performance with cache and six-cycle miss penalty is: |
|
|
|
 |
|
|
|
|
2.82 + 0.73 ´ .039 ´ 6 + 0.34 ´ 0.057 ´ 6 = 2.82 + .29 = 3.11 CPI. |
|
|
|
|
|