NOPs in MIPS
The following note addresses questions regarding the number of required NOPs in 5 stages MIPS pipelined processor. In this example lw is the first instruction followed by an add (R-type) instruction with a RAW data dependency.
In Table 1 we have an old MIPS which requires 3 NOPs because only after updating the architectural state (cycle 5) the add instruction can proceed. (D) refers to NOP instead of Decode.
Table 1 |
In Table 1 we have an old MIPS which requires 3 NOPs because only after updating the architectural state (cycle 5) the add instruction can proceed. (D) refers to NOP instead of Decode.
Comments