Skip to content

jczh98/mips-pipelinedcpu

Repository files navigation

Mips CPU with Pipeline

Verilog Code to simulate MIPS CPU with pipeline.

Developed as the expriment project for Computer Architecture in UESTC

Instructions

  • add
  • and
  • or
  • xor
  • srl
  • sll
  • addi
  • andi
  • ori
  • xori
  • load
  • store
  • beq
  • bne
  • jump

Implementation

  • Data hazard
  • Control hazard

How to Run

  1. Clone this repo

    https://github.com/neverfelly/mips-pipelinedcpu.git
    cd mips-pipelindcpu
    
  2. Compile all files

    iverilog -o main *.v
    
  3. Run the compiled binary

    vvp -n main -lxt2
    
  4. Verify wave graph

    gtkwave ppcpu.vcd
    

Requriments

Credits

Keqiang Li

About

UESTC Computer Architecture experiment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published