Question: [15] This exercise is intended to help you understand the relationship between forwarding, hazard detection, and ISA design. Consider the following MIPS code: 1. Note:

 [15] This exercise is intended to help you understand the relationship

[15] This exercise is intended to help you understand the relationship between forwarding, hazard detection, and ISA design. Consider the following MIPS code: 1. Note: hazard detection and data forwarding will be discussed on Monday, week 10. add $5, $2, $1 lw $3, 4($5) lw $2, 0 ($2) or $3, $5, $3 sw $3, 0 ($5) b. [5] Repeat (a) but use nop only when a hazard cannot be avoided by changing or rearranging these instructions (without adding new instructions). You can assume register $7 can be used to hold temporary values in your modified code. [5] If the processor has data forwarding, but we forgot to implement the hazard detection unit, what happens when this code executes? c. [15] This exercise is intended to help you understand the relationship between forwarding, hazard detection, and ISA design. Consider the following MIPS code: 1. Note: hazard detection and data forwarding will be discussed on Monday, week 10. add $5, $2, $1 lw $3, 4($5) lw $2, 0 ($2) or $3, $5, $3 sw $3, 0 ($5) b. [5] Repeat (a) but use nop only when a hazard cannot be avoided by changing or rearranging these instructions (without adding new instructions). You can assume register $7 can be used to hold temporary values in your modified code. [5] If the processor has data forwarding, but we forgot to implement the hazard detection unit, what happens when this code executes? c

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!