Caches

todo diagram

E.g cache starts empty

`LDR` at `0x48`: - Not found (cache miss) - Fetch all of B1 from memory into cache line 0 - Cache delivers the data (15) to the processor

LDS at 0x50

Operating Principles

Operation:

Mapping Schemes

  1. Fully associative (huh?)

If we have a block , it could go onto any cache line. For example, if it goes onto the first line

Num Tag Valid? data
0 B1 10 15 20 ... 45
1 0
2 0
3 0

MISSING STUFF

e.g dual core

Cache Performance

Average memory access time:

is the time to go one level below and bring the data up

E.g

Assume just L1 (no L2 or L3)

I zoned out here.

Now assume L2:

Parameters:
L2
L1

For an L3:
and