Giter Site home page Giter Site logo

tharun-b / sim-outorder_dip-cache Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yszheda/sim-outorder_dip-cache

0.0 2.0 0.0 3.16 MB

SimpleScalar sim-outorder simulator with DIP policy cache

License: Other

Makefile 1.67% C 75.84% Objective-C 0.01% Perl 21.99% Shell 0.33% Assembly 0.17%

sim-outorder_dip-cache's Introduction

SimpleScalar sim-outorder simulator with DIP policy cache

We implement the Dynamic Insertion Policy based on Set Dueling (DIP-SD) from the [ISCA'2007 paper][1] in the SimpleScalar(http://www.simplescalar.com/) sim-outorder simulator.

  • For the dedicated LRU sets and dedicated BIP sets, we dedicate 32 sets to each of these two fixed policies with the rest to be the followers. Hash functions in the implementation for all the cache configurations are:

i. An LRU set iff ( cache_setID mod ( total_number_of_sets / 32 ) == 0 )

ii. A BIP set iff ( (cache_setID + 1) mod ( total_number_of_sets / 32 ) == 0 )

iii. The rest are the follower sets when both of the above conditions fail.

  • We use a BIPCTR non-saturating counter for BIP. Whenever BIPCTR==0, we insert the line based on LRU policy, otherwise, LIP is used. (The width of BIPCTR can be set in the configuration file. It is set to 5-bit in the original paper.)

  • We use a PSEL saturating counter for the selection of the final replacement policy between LRU and BIP for the follower sets. (The width of PSEL can be set in the configuration file. It is set to 10-bit in the original paper.)

Configuration

Format:

<name> <nsets>:<bsize>:<assoc>:<width_BIPCTR>:<width_PSEL>:<repl>

Cache replacement policy:

l: LRU;
d: DIP;
r: Random;
f: FIFO;

Example:

 # l2 data cache config, 256KB, 64-byte line, 8-way, DIP
-cache:dl2             ul2:512:64:8:5:10:d

Please further refer to a complete example configuration file DIP-256K-8.baseline.cfg.

Compilation

make config-alpha
make clean
make sim-outorder

[1] Qureshi M K, Jaleel A, Patt Y N, et al. Adaptive insertion policies for high performance caching[C]//ACM SIGARCH Computer Architecture News. ACM, 2007, 35(2): 381-391.

sim-outorder_dip-cache's People

Contributors

yszheda avatar

Watchers

James Cloos avatar Tharun Battula 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.