GithubHelp home page GithubHelp logo

mips-cpu's Introduction

MIPS CPU Verilog Implementation

An implementation of the MIPS (Microprocessor without Interlocked Pipelined Stages) ISA (Instruction set architecture) using verilog.

Design

OVERVIEW

The MIPS single-cycle processor performs the tasks of instruction fetch, instruction decode, execution, memory access and write-back all in one clock cycle. First the PC value is used as an address to index the instruction memory which supplies a 32-bit value of the next instruction to be executed. This instruction is then divided into the different fields.

Supported instructions

Available instructions

Building blocks

single cycle

Instruction memory

The fetch module fetches the instructions from a file called im.mips which contains the machine code for the required instructions in hexadecimal.

Simulation

The simulation was done on Model sim software, A run.do file automates the simulation process, it first compiles all the Verilog files,then it executes the cpu_TB.v which runs the cpu in the given instruction set in im.mips and prints the Registers contents.

Acknowledgment

The design specifications and the different building blocks are from the thesis ** A FPGA Implementation of a MIPS RISC Processor for Computer Architecture Education By: Victor P. Rubio, B.S. ** which depends on the book **Computer Organization and Design โ€“ The Hardware/Software Interface by David A. Patterson and John L. Hennessy **

@ TODO

  • implement a 5 stage pipeline design for the cpu.v > cpu_p.v

mips-cpu's People

Contributors

ahegazy 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.