Simulate the simple MIPS pipeline. Including structural, data and control hazard detection. The concept and other details are derived from Computer Organization and Design: The Hardware/ Software Interface, Fifth Edition, Single cycle implementation.
This is the assignment of Computer Organization in NCU CSIE, Taiwan.
-
Structural Hazard Detection
-
Data (with LOAD instruction halt 1 more clock cycle) Hazard Detection
-
Control Hazard Detection (if branch, halt 1 more clock cycle)
However, if BEQ or other control instruction follow by LOAD instruction, it will cause problem.
(from course Computer Organization in NCU CSIE)
- 105-2 Computer Organization MIPS Simulator Homework (Traditional Chinese)
- Output Description (Traditional Chinese)
Compile 104502551_pipeline.cpp.