Giter VIP home page Giter VIP logo

mips_processor's Introduction

MIPS processor:

A simple MIPS processor implemented using Verilog capable of supporting basic I,J and R type instructions. Built using Xilinx Vivado 2019.1

Main memory Design:

- Harvard style memory design:

separate data and instruction memory

- Data memory:

256*4= 1024 bytes = 1KB consisting of 256 32-bit registers.
Addressing is word-aligned.

- Instruction memory:

1024 bytes = 1 KB consisting of 1024 8-bit registers. 
Addressing is byte-aligned. Each instruction is of 4 bytes.

Instructions supported:

- R-type:

◦ADD
◦SUB
◦AND
◦OR
◦NOR
◦XOR
◦SLT
◦SLTU
◦SRL
◦SRLV
◦SRA
◦SRAV
◦SLL
◦SLLV

- I-type:

◦ADDI
◦ORI
◦ANDI
◦XORI
◦SLTI
◦SLTIU
◦BEQ
◦BNE
◦BLTZ
◦BGTZ
◦LW
◦SW

- J-type:

◦J
◦JAL

Instructions not supported:

Certain R-type instructions haven’t been implemented such as NAND, XNOR etc. Also, more complex instructions like MUL, DIV, move operations and trap instructions cannot be run on our simple processor.

Processor clock frequency:

Clock period = 100 ns = 10^(-8)s

So, clock frequency = 10^8 Hz = 100 MHz

Other notable features:

- 2-stage pipeline:

A register between the fetch and the decode/exe stage stores the fetched instruction.

- No -Op instruction:

Branch involves a No-Op instruction after the branch statement as due to the 2-stage pipeline, in the same clock cycle in which the Branch instruction is executed, the No-Op instruction is fetched and it doesn’t affect the overall running of the processor.

- CPI :

N+1/N where N is the no. Of instructions to be executed.
CPI tends to 1 as N becomes very large.

Tests performed:

Sum of n numbers
HCF of 2 numbers

mips_processor's People

Contributors

susiejojo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

bollu

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.