Verilog Code to simulate MIPS CPU
with pipeline.
Developed as the expriment project for Computer Architecture in UESTC
- add
- and
- or
- xor
- srl
- sll
- addi
- andi
- ori
- xori
- load
- store
- beq
- bne
- jump
- Data hazard
- Control hazard
-
Clone this repo
https://github.com/neverfelly/mips-pipelinedcpu.git cd mips-pipelindcpu
-
Compile all files
iverilog -o main *.v
-
Run the compiled binary
vvp -n main -lxt2
-
Verify wave graph
gtkwave ppcpu.vcd
- iverilog in http://iverilog.icarus.com
- gtkwave
Keqiang Li