All Projects → jmahler → Mips Cpu

jmahler / Mips Cpu

Licence: gpl-3.0
MIPS CPU implemented in Verilog

Labels

Projects that are alternatives of or similar to Mips Cpu

Icezum
🌟 IceZUM Alhambra: an Arduino-like Open FPGA electronic board
Stars: ✭ 280 (-31.54%)
Mutual labels:  verilog
Reduceron
FPGA Haskell machine with game changing performance. Reduceron is Matthew Naylor, Colin Runciman and Jason Reich's high performance FPGA softcore for running lazy functional programs, including hardware garbage collection. Reduceron has been implemented on various FPGAs with clock frequency ranging from 60 to 150 MHz depending on the FPGA. A high degree of parallelism allows Reduceron to implement graph evaluation very efficiently. This fork aims to continue development on this, with a view to practical applications. Comments, questions, etc are welcome.
Stars: ✭ 308 (-24.69%)
Mutual labels:  verilog
Serv
SERV - The SErial RISC-V CPU
Stars: ✭ 358 (-12.47%)
Mutual labels:  verilog
Openpiton
The OpenPiton Platform
Stars: ✭ 282 (-31.05%)
Mutual labels:  verilog
Verilog
Repository for basic (and not so basic) Verilog blocks with high re-use potential
Stars: ✭ 296 (-27.63%)
Mutual labels:  verilog
Mor1kx
mor1kx - an OpenRISC 1000 processor IP core
Stars: ✭ 326 (-20.29%)
Mutual labels:  verilog
Openroad
OpenROAD's unified application implementing an RTL-to-GDS Flow
Stars: ✭ 270 (-33.99%)
Mutual labels:  verilog
Awesome Hdl
Hardware Description Languages
Stars: ✭ 385 (-5.87%)
Mutual labels:  verilog
Beagle sdr gps
KiwiSDR: BeagleBone web-accessible shortwave receiver and software-defined GPS
Stars: ✭ 300 (-26.65%)
Mutual labels:  verilog
Verilog Axi
Verilog AXI components for FPGA implementation
Stars: ✭ 349 (-14.67%)
Mutual labels:  verilog
Ucr Eecs168 Lab
The lab schedules for EECS168 at UC Riverside
Stars: ✭ 285 (-30.32%)
Mutual labels:  verilog
Openlane
OpenLANE is an automated RTL to GDSII flow based on several components including OpenROAD, Yosys, Magic, Netgen, Fault and custom methodology scripts for design exploration and optimization.
Stars: ✭ 293 (-28.36%)
Mutual labels:  verilog
Fpga Imaging Library
An open source library for image processing on FPGA.
Stars: ✭ 325 (-20.54%)
Mutual labels:  verilog
Netfpga
NetFPGA 1G infrastructure and gateware
Stars: ✭ 280 (-31.54%)
Mutual labels:  verilog
Apio
🌱 Open source ecosystem for open FPGA boards
Stars: ✭ 366 (-10.51%)
Mutual labels:  verilog
Riscv
RISC-V CPU Core (RV32IM)
Stars: ✭ 272 (-33.5%)
Mutual labels:  verilog
Riffa
The RIFFA development repository
Stars: ✭ 320 (-21.76%)
Mutual labels:  verilog
Scr1
SCR1 is a high-quality open-source RISC-V MCU core in Verilog
Stars: ✭ 393 (-3.91%)
Mutual labels:  verilog
Microwatt
A tiny Open POWER ISA softcore written in VHDL 2008
Stars: ✭ 383 (-6.36%)
Mutual labels:  verilog
Riscv Formal
RISC-V Formal Verification Framework
Stars: ✭ 328 (-19.8%)
Mutual labels:  verilog

NAME

mips-cpu - A MIPS CPU written in Verilog

DESCRIPTION

An implementation of a MIPS CPU written in Verilog. This project is in very early stages and currently only implements the most basic functionality of a MIPS CPU.

  • 32-bit MIPS processor

  • implemented in Verilog

  • 5 stage pipeline

  • static branch not taken branch predictor

  • branch detection in decode (stage 2)

  • supports stalls to avoid read after write (RAW) and other hazards

  • can forward from memory (stage 4) and write back (stage 5) to avoid stalls

Much of the design was inspired by the book "Computer Organization and Design" by David A. Patterson and John L. Hennessy (4th ed. 2008).

This project also includes a full set of test benches. These are invaluable as a quick check to verify that new changes have not disrupted previously working functionality.

REQUIREMENTS

This project requires a Verilog simulator, such as Icarus, the Gcc compiler, and a Gcc MIPS cross compiler. To check if your system has the required programs installed run the check-install.sh script.

$ ./check-install.sh
Checking for required programs...
  mips-linux-gnu-objcopy
  mips-linux-gnu-as
  iverilog
Please install the missing programs and retry.

RUNNING TEST BENCHES

The tests are located in the verilog/test/ directory. Everything is built and run using the make command.

make

There are two parts to each test: the Verilog code, and the assembly code. The Verilog code uses a generic CPU test bench (cpu_tb.v) from which a specific test is built using a specific assembled .hex file. The .hex file is produced by assembling the .asm file using the Gcc MIPS cross compiler and converting it to ASCII hex suitable for use with Verilog. Then the Verilog code, using a simulator such as Icarus Verilog, can be run to execute the assembly instructions and produce a dump of its output (.out). Finally, the output file (.out) can be diffed against a known good output file (.check) to see if there are any differences.

For more information about these steps refer the Makefile in verilog/test/.

AUTHOR

Jeremiah Mahler [email protected]
http://github.com/jmahler

COPYRIGHT

Copyright © 2015, Jeremiah Mahler. All Rights Reserved.
This project is free software and released under the GNU General Public License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].