Question: 3. Consider executing the following code on the MIPS pipelined datapath with forwarding (text Figure 4.60, p. 316) add $2, $3, $1 sub $4, $3,

 3. Consider executing the following code on the MIPS pipelined datapath

3. Consider executing the following code on the MIPS pipelined datapath with forwarding (text Figure 4.60, p. 316) add $2, $3, $1 sub $4, $3, $5 add $5, $3, $7 add $7, $6, $1 add $8, $2, $6 During the fifth cycle of execution, which registers will be read, and which register will be written? a. b. During the fifth cycle of execution, what is the forwarding unit doing? List any comparisons it makes, even if results are not forwarded. During the fifth cycle of execution, what is the hazard detection unit doing? List any comparisons it makes, even if there is no hazard that requires a stall c. 3. Consider executing the following code on the MIPS pipelined datapath with forwarding (text Figure 4.60, p. 316) add $2, $3, $1 sub $4, $3, $5 add $5, $3, $7 add $7, $6, $1 add $8, $2, $6 During the fifth cycle of execution, which registers will be read, and which register will be written? a. b. During the fifth cycle of execution, what is the forwarding unit doing? List any comparisons it makes, even if results are not forwarded. During the fifth cycle of execution, what is the hazard detection unit doing? List any comparisons it makes, even if there is no hazard that requires a stall c

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this question we need to analyze the execution of the given MIPS instructions in a pipeline... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!