← portfolio│cache-sim@l1:~$

Cache Memory Simulator

Feed the CPU a stream of addresses and watch which ones are already cached, which miss, and what gets evicted.

CPU
step 0
L1 CACHE
idle
RAM
slow path
Lines
Replacement policy

LRU evicts the line untouched for the longest.

Cache lines

0/4 valid
line 0empty

····

used @-×-
line 1empty

····

used @-×-
line 2empty

····

used @-×-
line 3empty

····

used @-×-

Hit rate

0.0%
0
hits
0
misses
0
total

Trace log

$ waiting for first access…