Skip to content

AkshanshK04/Cache-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cache Simulator in C

A fully configurable cache simulator supporting:

  • Direct-mapped & N-way set-associative
  • LRU replacement policy
  • Write-back + write-allocate
  • Realistic memory access patterns with temporal/spatial locality

Achieved 85-95% hit rates in simulations.

Usage

gcc cache_sim.c -o cache_sim -lm
./cache_sim

About

Configurable cache simulator in C (direct-mapped & set-associative, LRU, write-back)

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages