Giter Site home page Giter Site logo

cs525advcomparch's Introduction

CS 525 SimpleScalar Project

A testbed for cache optimization using SimpleScalar.

Features

  • Supported algorithms:
    • QuickSort
    • RadixSort (coming soon)
  • SimpleScalar cache configurations (coming soon)

Compiling

  1. You must have SimpleScalar built on your target system.
  2. Compile the programs with SimpleScalar. See source comments for compiling the associated program.
cd cs525advcomparch/programs
~/simplescalar/bin/sslittle-na-sstrix-gcc program.c -o bin/testout

Simulation

Run the programs using SimpleScalar. See source comments for usage.

For, running quicksort test with default settings:

cd cs525advcomparch/programs
~/simplescalar/simplesim-3.0/sim-cache -redir:sim quicksort_test_default.txt ./bin/quicksort test

The results, quicksort_test_default.txt file, should be found under cs525advcomparch/programs

Cache Config

Configure the cache by adding argument -cache:<type> <config>

The format for the type config follows:

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

Each of these fields has the following meaning:

<name>  # cache name, must be unique.
<nsets> # number of sets in the cache.
<bsize> # block size (for TLBs, use the page size).
<assoc> # associativity of the cache (power of two).
<repl>  # replacement policy (l | f | r), where l = LRU, f = FIFO, r = random replacement

sim-cache defaults

Type Config
L1 instruction cache il1:256:32:1:l (8 KB)
L1 data cache dl1:256:32:1:l (8 KB)
L2 unified cache ul2:1024:64:4:l (256 KB)
instruction TLB itlb:16:4096:4:l (64 entries)
data TLB dtlb:32:4096:4:l (128 entries)

cs525advcomparch's People

Contributors

psychobolt avatar

Watchers

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