💾

Cache Simulator

Visualize cache behavior with interactive memory access patterns

Play to auto-run • Step for single access • Generate to reset
0 Hits
0 Misses
0 Prefetches
📊 0% Hit Rate
⏱️ 0 ns Time
🎮 Simulation Controls
📋 Cache Lines
# Valid Tag Off 0 Off 1 Off 2 Off 3 LRU
📈 Hit vs Miss
💽 RAM Overview
Hit
Miss
Prefetch
📜 Access Log
💡 How to Use This Simulator

Access Patterns Explained

Understanding Cache Behavior

Cache Hit
Data found in cache - fast access (10 ns).
Cache Miss
Data not in cache - must fetch from RAM (100 ns).
Prefetch
Speculatively load next blocks to reduce future misses.
LRU (Least Recently Used)
Eviction policy - removes oldest unused cache line when full.