Question: Part 2 - Pipelining and Hazards ( 6 0 pts ) Problems in this exercise refer to the following sequence of instructions, and assume that
Part Pipelining and Hazards pts Problems in this exercise refer to the following sequence of instructions, and assume that it is executed on a fivestage pipelined datapath: add $s $s $s lw $s$s lw $s$s or $s $s $s sw $s$s The initial state of the data memory is The initial state of the register table is a If there is no forwarding or hazard detection, what is the final value of registers $s~$s After the fifth instruction will there be an exception and why? b If there is no forwarding or hazard detection, insert NOPs to ensure correct execution of the code c Now, change andor rearrange the code to minimize the number of NOPs needed. You can assume register $t can be used to hold temporary values in your modified code. d If the processor has forwarding and a hazard detection unit, what is the final value of registers? e In the multicycle pipeline diagram, mark up the pipeline to show the forwarding and stalls needed to execute the following instructions on the pipelined MIPS processor. f In the multicycle pipeline diagram, mark the resources used for each of the instructions. Part Pipelining and Hazards pts
Problems in this exercise refer to the following sequence of instructions, and assume that it is executed on a fivestage pipelined datapath:
add $s $s $s
lw $s$s
w $s$s
or $s $s $s
sw $s$s
The initial state of the data memory is
The initial state of the register table is
a If there is no forwarding or hazard detection, what is the final value of registers $s$s After the fifth instruction will there be an exception and why?
b If there is no forwarding or hazard detection, insert NOPs to ensure correct execution of the code c Now, change andor rearrange the code to minimize the number of NOPs needed. You can assume register $t can be used to hold temporary values in your modified code.
d If the processor has forwarding and a hazard detection unit, what is the final value of registers?
e In the multicycle pipeline diagram, mark up the pipeline to show the forwarding and stalls needed to execute the following instructions on the pipelined MIPS processor.
f In the multicycle pipeline diagram, mark the resources used for each of the instructions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
