|
|
|
|
|
|
Figure 5.29
Design target miss rate of data cache (fully associative,
demand fetch, fetch on write, copyback with LRU
replacement). |
|
|
|
|
|
|
|
|
Figure 5.30
Split cache management. |
|
|
|
|
|
|
|
|
1. Duplicate lines : If miss on I-reference, memory line goes to I-cache. |
|
|
|
|
|
|
|
|
If miss on D-reference, memory line goes to D-cache. |
|
|
|
|
|
|
|
|
On CPU store reference check both directories: |
|
|
|
|
|
|
|
|
Use write policy in D-cache; |
|
|
|
|
|
|
|
|
Invalidate line in I-cache. |
|
|
|
|
|
|
|
|
2. No duplicate lines: If miss on I reference, memory line goes to I-cache and check D-cache directory; invalidate if present. |
|
|
|
|
|
|
|
|
If miss on D referenc, memory line goes to D-cache and check I-cache directory; invalidate if found. |
|
|
|
|
|
|
|
|
On CPU store difference check both directories. |
|
|
|
|
|