Coder Social home page Coder Social logo

mips-increase-efficiency-using-pipeline's Introduction

Introduction

This repo was created for an exercise for the university.

Details of exercise

This repo consists of 3 codes. The first code is small but not very efficient for the processor. The second code is the same but with a description about the CPI ( Clock Per Instruction ) and other calculations that are relative to the program's efficiency. The third code is a reformat of the first code to help MIPS execute the same instructions but more efficiently using pipeline technology. This repo contains and the C code of the Assembly, for a better understanding of the code. Also in this example, we don't care about how we can improve the code quality ( by making it smarter or removing lines etc ) we only care about how to make this exact code more efficient using the pipeline technology.

pipeline

In both cases of the first and third programs's the simulation is using the pipeline technology as default. However, in the case of the third program, we wrote our code in such a way that we are allowing the processor ( based on the architecture of MIPS with implemented the pipeline technology ) to execute the set of the instructions in our code more efficiently. Execute the instructions more efficiently using pipeline means that the processor, MIPS in our case, is using all its stages ( fetch instruction, decode, execute ) in such a way that we have no delays that are caused by hazards or any other causes that makes a stage unavailable in a clock circle of CPU.

Simulator

  • WinMips64

mips-increase-efficiency-using-pipeline's People

Contributors

constarg avatar

Stargazers

 avatar

Watchers

 avatar  avatar

mips-increase-efficiency-using-pipeline's Issues

Too many memory accesses.

As the professor said and is true we access to many times the memory. Make better use of this using the registers of the CPU as temporary space instead.

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.