Large and Fast: Exploiting Memory Hierarchy
memory technology
Memory Hierarchy Levels

지역성의 원리 (vs randomly하게 데이터 갖고오기)
Inst, Data의 Hit/miss

이게 하나의 chip이다.

CPU die image
Skylake core

Skylake quad-core CPU

Cache Memory
우리는 data가 주어져 있는지 어떻게 알 수 있을까?
Direct Mapped Cache

Tags and Valid Bits
1word Cache 예시


address = Block address + offset (0x8 = 0x2 << offset bit + offset)
2word Cache 예시

1개의 Block = 2개의 word = 8Byte → offset bit = 3bit (3bit로 8을 표현할 수 있으므로)
address표현 방식은 똑같음 → address = Block address + offset
4word Cache 예시