GithubHelp home page GithubHelp logo

fantonatos / architecture Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 11 KB

Simulation of CPU cache and branch predictor algorithms

License: ISC License

Makefile 2.35% C 97.65%
branch-prediction cache multithreading simulation

architecture's Introduction

Caches and Branch Predictors

Simulation of direct access, set associative, and fully associative caches with write-on-miss and next-line-prefetch features.

Direct access is implemented as 1-way set associative cache and use the same code.

Tracefile Format

S 0x0022f5b4
S 0x0022f7d4
L 0x006328dc
L 0x7703d9c0
S 0x0022f4c0

Simulation of various branch prediction algorithms (always take, never take, bimodal, gshare, tournament).

Tracefile Format

0x7f4072aa223f NT 0x7f4072aa2280
0x7f4072aa224c NT 0x7f4072aa2280
0x7f4072aa225d T 0x7f4072aa2266
0x408839 NT 0x408e1c
0x40859b NT 0x408730
0x4085c1 T 0x4085cc

Both programs are multithreaded and fast. They simulate their respective hardware on the input provided from tracefiles. Tracefiles should have UNIX line endings.

architecture's People

Watchers

 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.