Git Product home page Git Product logo

cachesimulator's Introduction

CacheSimulator

A cache simulator in Python for CS 530

Documentation on cache configuration and trace files are located in their respective folders

Requirements

CacheSimulator needs two extra Python modules: pyyaml and terminaltables

These can both be installed using pip:

sudo pip install pyyaml/terminaltables

Running

To run a quick test simulation, enter the src folder and run this command:

./cache_simulator.py -pdc ../configs/config_simple_multilevel -t ../traces/trace2.txt

For more details, run:

./cache_simulator.py --help

Goals

This simulator will create a memory heirarchy from a YAML configuration file and calculate the AMAT for a given tracefile.

The memory heirarchy is configurable with the following features:

  • Word size, block size
    • Address size does not need to be defined
  • L1 cache with user-defined parameters
    • Associativity
    • Hit time
    • Write time
  • Optional L2 and L3 caches
  • Simulate write back and write through
  • Pretty print the cache layouts

cachesimulator's People

Contributors

ahota avatar auxiliary 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.