Professional Documents
Culture Documents
Arsitektur dan Organisasi Komputer 3 Sumber: William Stalling, 2010, Computer Organization and
Architecture: Designing for Performance, 8th edition
Arsitektur dan Organisasi Komputer 4
1
17/09/2014
Single Cache
- REVIEW -
CHAPTER 3: CACHE MEMORY
2
17/09/2014
Logical Cache
4.3 Element of Cache Design (Cont...) 4.3 Element of Cache Design (Cont...)
Cache Size
cache size
Physical Cache
T T
3
17/09/2014
4.3 Element of Cache Design (Cont...) 4.3 Element of Cache Design (Cont...)
Mapping Function Assosiative Mapping
Direct Mapping
4.3 Element of Cache Design (Cont...) 4.3 Element of Cache Design (Cont...)
Set-Assosiative Mapping
Set-Assosiative Mapping
T
4
17/09/2014
4.3 Element of Cache Design (Cont...) 4.3 Element of Cache Design (Cont...)
Replacement Algorithms Line Size
1. As the block size increases from very small
1. Least Recently Used (LRU) to larger sizes, the hit ratio will at first
increase because of the principle of
2. First In First Out (FIFO) locality.
3. Least Frequently Used (LFU) 2. As the block size increases, more useful
4. Random data are brought into the cache. The hit
ratio will begin to decrease
T T
Arsitektur dan Organisasi Komputer 17 Sumber: William Stalling, 2010, Computer Organization and
Architecture: Designing for Performance, 8th edition
Arsitektur dan Organisasi Komputer 18
4.3 Element of Cache Design (Cont...) 4.3 Element of Cache Design (Cont...)
Number of Caches Number of Caches
1. Multilevel Cache 2. SPLIT CACHE vs UNIFIED CACHE
SPLIT CACHE MEMORY UNIFIED CACHE MEMORY
MAIN
CPU L1 L2 L3
MEMORY L1
instruction
L1
data vs L1
instruction & data
CACHE MEMORY
T
5
17/09/2014
- THANK YOU -