Code Monkey home page Code Monkey logo

mipt-mips's Introduction

Build StatusBuild status

MIPT-MIPS

MIPT-MIPS is a pre-silicon simulator of MIPS CPU. It measures performance of program running on CPU, thus taking best features of RTL and common functional simulation:

  • Precision. We provide cycle-accurate models of branch prediction unit and pipeline behavior.
  • Customization. Cache size, branch prediction algorithms, and other parameters can be easily changed.
  • Simplicity. Our source files are much more readable than RTL.
  • Speed. Simulation frequency gets up to 0.7 MHz on i5-7300U.

MIPT-MIPS can be used for different purposes:

  • Performance control of software optimizations: you may check IPC boosts of your programs
  • Pathfinding of hardware optimizations: you may easily integrate some nice feature to CPU model
  • Education: simulator is a nice experimental frog to study CPU internals

Features modeled:

  • Configurable branch prediction unit with 5 prediction algorithms
  • Configurable instruction cache with true-LRU policy
  • Interstage data bypassing

More details about internals are available on Wiki

Getting started

  1. Clone repository with submodules: git clone --recursive https://github.com/MIPT-ILab/mipt-mips.git
  2. Install LibELF and Boost (instruction)
  3. Build MIPS binutils if you need to build MIPS ELF binaries.
  4. Install CMake 3.8 or higher.
  5. Create build directory somewhere, then cd into it and run cmake /path/to/mipt-mips/simulator && make to get all the binaries in your build directory. Check our Wiki page to get more details.

Users of IDE (Visual Studio, Eclipse, CodeBlocks etc.) may generate project files with CMake as well.

To run all unit tests, call ctest --verbose -C Release from your build directory.

C++ requirements

MIPT-MIPS uses C++17 features and Boost 1.61. Thus, you have to use compilers of these versions or newer:

  • GCC 7
  • Clang 5.0
  • Apple LLVM 7.3.0
  • MS Visual Studio 2017 (Boost 1.66 is required)

Basic command line options

  • -b <filename> — provide path to ELF binary file to execute
  • -n <number> — number of instructions to run
  • -f — enables functional simulation only
  • -d — enables detailed output of each cycle

About MIPT-MIPS

This project is a part of ILab activity at Moscow Institute of Physics and Technology (MIPT).

The main goal of the project is to teach the students the computer architecture through development of a microprocessor implementing the MIPS instruction set in both functional and performance simulators.

May I contribute?

Yes, if you attend MIPT-MIPS lectures. See our CONTRIBUTING.md file for details.

mipt-mips's People

Contributors

afoninandrey avatar alex19999 avatar alexander-titov avatar alexseppar avatar col14m avatar delitei avatar denislos avatar gkorepanov avatar gregorymel avatar igorsmir-ilab avatar ikunakhov avatar inedostoev avatar ivan23kor avatar ivantetyushkin avatar kgariful avatar kurapov-peter avatar olegladin avatar orchanin avatar pavelkryukov avatar romanzavodskikh avatar soshink avatar svyatoslavpustoshilov avatar thar0l avatar timofeevalex avatar tmullayanov avatar tvelovraf avatar vadimrt avatar vgizatulin avatar viktor-prutyanov avatar yanlogovskiy 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.