Professional Documents
Culture Documents
Components –
Memory - Cache
M1: Introduction to Embedded Systems
Cache Memory
Extreme Fast Memory
Internal/External to CPU
CPU uses cache memory to store instructions that are repeatedly required to run
programs- working set
Sequential locality of reference – spatial & temporal
Cache
Cntlr
Cache hit/miss
L2 Cache
L1 Cache
CPU
Direct Mapped
Set Associative
MDR
Cache
MAR
cache block 1
cache block 2
cache block 3
cache block 4
cache block 5
Address
01 -
0
1 0001
1111
-
10 -
0 0110
-
11 - -
0 -
10 -
1000 - -01 - -0000
1 -
00 -
0101 - -10 - -0001
Main Memory
256 K x 32
512 Blocks - m
64 Groups –n
Group No m mod n
0 1 2 3 4 5 6 7
Tag
bank select
data