Question: Q 1 . Consider the following sequence o instructions, and assume that it is executed on a 5 - stage pipelined data path: add r
Q Consider the following sequence o instructions, and assume that it is executed on a stage pipelined data path:
add #
#
#
#
#
a List the readafterwrite current instruction is reading certain registers which haven't been written back yet data dependencies. As an example, on r shows instruction has data dependency on instruction since it is reading register $
b Assume the stage MIPS pipeline with no forwarding, and each stage takes cycle. Instead of inserting NOPs, you let the processor stall on hazards. How many times does the processor stall? What is the total number of stall cycles?
c What is the execution time in cycles for the whole program? Sketch a diagram to explain your answer.
d Assume the stage MIPS pipeline with full forwarding. Insert NOPs to eliminate the hazards. Sketch a diagram to verify your answer.
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
