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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3090f33c53_59866f3090e998a2.jpg)
[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
Get step-by-step solutions from verified subject matter experts
