Question: Q-Use the following MIPS code for this problem: sub $2, $1, $3 add $1, $3, $2 or $1, $1, $2 and $1, $3, $3 a.
Q-Use the following MIPS code for this problem: sub $2, $1, $3 add $1, $3, $2 or $1, $1, $2 and $1, $3, $3 a. Identify which instructions and registers have data hazards. b. What type of data hazards are they? c. Schedule the code in the 5-stage MIPS pipeline without forwarding (only use stalls/bubbles). Clearly label your figure to show clock cycles, pipeline stages, etc. d. Schedule the code in the 5-stage MIPS pipeline with forwarding.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
