GithubHelp home page GithubHelp logo

proyecto_cache_2's Introduction

Arquitectura de computadoras

Simulador de memoria cache

En este repositorio se encuentra el código en lenguaje C que se escribió para simular una memoria cache. El archivo que se modificó, principalmente, fue cache.c. El objetivo principal del simulador es recopilar ciertas estadísticas que muestran el desempeño de la memoria cache dependiendo de los diferentes parámetros que se le impongan.

Las banderas son las siguientes:

./sim -h -h: this message

-bs <bs>: 	set cache block size to <bs>
-us <us>: 	set unified cache size to <us>
-is <is>: 	set instruction cache size to <is>
-ds <ds>: 	set data cache size to <ds>
-a <a>: 	set cache associativity to <a>
-wb: 		set write policy to write back
-wt: 		set write policy to write through
-wa: 		set allocation policy to write allocate
-nw: 		set allocation policy to no write allocate

Para correr una instancia del simulador lo único que se tiene que hacer es ingresar al directorio en el que se tienen guardados los archivos y correr los siguientes comandos en la terminal:

make clean make ./sim -is 1024 -ds 1024 -bs 64 -a 16   trazas/spice.trace

Esto imprimirá los parámetros que se utilizaron y las estadísticas correspondientes.

proyecto_cache_2's People

Contributors

uumami avatar cantudiaz avatar

Watchers

James Cloos avatar

Forkers

cantudiaz

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.