Giter Site home page Giter Site logo

cache-simulator's Introduction

Cache-Simulator

A simple trace-based cache Simulator -

The project was inspired by CoffeBeforeArch's post on the same topic. The code relies on implementation ideas from the blog. One objective was to ensure that the implementation facilitates future modifications to enhance the robustness of the simulator.

The following list details some of the current features and planned features:

  1. Currently supports a single level of cache(L1) - higher cache level support in progress
  2. Only supports LRU replacement policy - more policies to be added
  3. Constant miss penalty (L2 or memory latency agnostic) and constant write-back latency - queuing model to be supported later
  4. Multi-core(SMP) and Coherency support to be added - need to generate/ find traces for this

More items:

  1. Possible optimizations and newer C++ standards usage?
  2. Possible parallelization using OpenMP?

Sample Compilation Command

g++ cache_simulator.cpp --std=c++2a -o cache_sim -O3

Sample Run Command

./cache_simulator/cache_sim (trace_file_path) (cache_size_in_bytes) (associativity) (block_size) (writeback_penalty) (miss_penalty)

For example: ./cache_simulator/cache_sim cache_traces/traces/mcf.trace 65536 8 32 0 42

Trace Details

The traces used and the trace format is the same as the one available from the following website

cache-simulator's People

Contributors

rajarshii avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.