TactivergeLite

Lite / Independent Engineering Research / Week 21

Week 21: Memory hierarchy

Term 3: Advanced Computing and System Design

This week you will

Lessons

  1. Locality and the memory hierarchy · about 40 min
    Two loops add up the same million numbers. One is ten times slower. Same chip, same maths. What is different?
  2. Inside a cache: tags, sets and ways · about 50 min
    A cache holds a tiny fraction of memory. When the CPU asks for address 0x1F40, how does the cache know in one nanosecond whether it has it?
  3. Average memory access time · about 40 min
    A cache hits 95% of the time. Is that good? It depends entirely on what the other 5% cost.
← Week 20Week 22 →