Coder Social home page Coder Social logo

pineapple_mips_19_20's Introduction

Pineapple_MIPS_19_20

The project

We are required to build a MIPS simulator that follows the ISA specs for the MIPS I. We decided to use C++ to build the simulator and bash to build the testbench. This project was built as part of a coursework following the guidlines in the file guidlines.md

The simulator

We have simplified as much as possible our simulator. We used different file imports for the different function types (R-I-J types). Inside each, the breakup of the decode of the instruction and the function call is important: this allows us to easily add new functionalities, enhance exceptions checking, or quickly spot an error in the simulator

The testbench

Written in bash, the testbench script scans the tests folder and runs each binary on the simulator. For each test, a meta file contains the instruction type, the expected console output, the expected return, the cat input (if necessary), the author, and the test description. This allows us to build a CSV file following the coursework specs for the test results

Used ressources

Working both on OS X, we would like to thank the authors of the open-source parser (Link here) which allowed us to convert our mips assembly tests to binary, therefore boosting the workflow

pineapple_mips_19_20's People

Contributors

jaafarrammal avatar chocovore17 avatar

Stargazers

 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.