Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aksiksi/cachesim
A basic cache simulator written in C++11.
https://github.com/aksiksi/cachesim
architecture cache cpp11 gatech
Last synced: 6 days ago
JSON representation
A basic cache simulator written in C++11.
- Host: GitHub
- URL: https://github.com/aksiksi/cachesim
- Owner: aksiksi
- Created: 2017-03-14T22:51:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-14T23:02:00.000Z (over 7 years ago)
- Last Synced: 2024-10-23T09:00:06.352Z (14 days ago)
- Topics: architecture, cache, cpp11, gatech
- Language: C++
- Homepage:
- Size: 44.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cachesim
A basic cache simulator written in C++ for ECE6100 at Georgia Tech.
## Build
Navigate to root directory and run `make`.
## Run
To run the cache simualtor, just execute `./cachesim`. The simulator takes a number of optional parameters:
- C: total cache size
- B: block size
- S: blocks per set (if S=0, then direct-mapped)
- K: number of bytes per subblock
- V: victim cache blocks (if victim cache enabled!)
- i: path to input trace file (see below)Example: `./cachesim -C 10 -B 4 -S 2 -K 2 -V 8`
Upon completing execution, the simulator will return a summary of cache statistics for the given trace file.
## Trace File Format
A list of cache accesses, one per line.
Format:
`
- Read: `r
- Write: `w `For questions, open an issue or catch me on Twitter ([aksiksi](https://twitter.com/aksiksi)).