GithubHelp home page GithubHelp logo

rohit4myself / cache_coherence_simulator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 84 KB

a simulator to model a multi-core cache hierarchy supporting directory-based cache coherence for MESI protocol

C++ 87.22% C 12.78%

cache_coherence_simulator's Introduction

Cache_coherence_simulator

CONTENTS OF THIS FILE

  • Introduction
  • Input File
  • Running the program
  • Output File
  • Contact Details

INTRODUCTION

Hi!! This is the Assignment #3 submission of course CS622: Advance Computer Architecture This assignment is coded in C++

  • Folder contains 1 cpp file and 1 txt file
    • addrtrace.cpp :- Prints the total machine access prepared on the terminal and generates addrtrace.txt

    • assign3.cpp:- It prints the following details on the terminal and also generates "output.csv". • Number of simulated cycles • Number of L1 cache accesses and misses • Number of L2 cache misses • Names counts of all messages received by the L1 caches. • Names counts of all messages received by the L1 caches.

INPUT FILE

  • prog1.cpp, prog2.cpp, prog3.cpp, prog4.cpp

RUNNING THE PROGRAM

Compile these programs to generate static binaries. Use the following commands. gcc -O3 -static -pthread prog1.c -o prog1 gcc -O3 -static -pthread prog2.c -o prog2 gcc -O3 -static -pthread prog3.c -o prog3 gcc -O3 -static -pthread prog4.c -o prog4

For generating total machine access details on terminal: -> Compile pintool: $ make obj-intel64/addrtrace.so -> Launch pin: $ ../../../pin -t obj-intel64/addrtrace.so -- ./prog1 8

  • Output : Printed on terminal and generates addrtrace.txt

File name: assign.cpp Input required: addrtrace.txt Output: Printed on terminal and a csv file output.csv will be generated Command to execute the file: $ g++ assign3.cpp -o assign $ ./assign

Output File

An output file "output.csv" will be generated.

cache_coherence_simulator's People

Contributors

rohit4myself 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.