Verilog implementation of a MIPS-R2000 CPU, based on the concept in this book
lw sw lui
add addu addiu
sub subu
and or ori
beq bne j
sll srl
slt slti
-
Implemented in the 5-stage pipeline scheme.
-
Branch or jump instructions are handled in ID stage.
-
Full data forwarding, include forwarding to ID stage for branch instructions.
-
Hazard detection and stall.
-
Compile & Simulate
make clean && make
-
Analyse Data
make scansion
ormake gtkwave
Or using other tool to view the
vcd
fileLog can be find in
MIPS_R2000_tb_log.txt