Skip to content

Cache simulator written in Java. Work in progress.

Notifications You must be signed in to change notification settings

darienchong/cacheSim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cacheSim

Cache simulator written in Java. Work in progress. Currently supports the following modes:

  • Direct Mapping (<=> 1 way Set-Associative Cache)
  • N-way Set-Associative Cache with LRU block replacement policy

How to use

Compile the .java files. Pass input in the following format to Main.class:

{ways}
{number of cache blocks}
{block size in bytes}
{addresses to query, separated by a newline}

Main has a single command-line parameter [0|1], which determines if the cache state is to be printed to the console after every query. As such, the full input should be as follows:

>>> java Main [0|1] < data

where data is a file with input in the format as above.

About

Cache simulator written in Java. Work in progress.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages