Giter VIP home page Giter VIP logo

cache-simulator's Introduction

cache simulator

  • Cache模拟器 by 黄一伦,叶根,邢新宇

用法:

$ make
$ ./sim <options> [arguments] <filename>

选项options:

  • -a: 用于测试test a中的第一个测试项目,无[arguments]项
  • -b: 用于测试test a中的第二个测试项目,无[arguments]项
  • -c: 用于测试test a中的第三个测试项目,有[arguments],包含两项:<back&through>为设置write back还是write through,前者为0,后者为1;为设置no write allocate或write allocate,前者为0,后者为1
  • -u: 用于打印使用帮助信息

文件名:

  • .trace类文件

补充说明

  • -a选项中,默认相连度associativity为1,cache size变化范围为32kB到32MB,Block size变化范围为8到1024bytes
  • -b选项中,默认Block size为128bytes,cache size变化范围为32kB到32MB,associativity变化范围为1到32
  • -c选项中,默认cache size为32kB,相连度为8,set num为32,然后默认no write allocate必须和write through搭配

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.