Question: 1 1 . a ) ( 5 ) When a dependent instruction is stalled in stage 2 of our MIPS pipeline, the instruction ahead of
a When a dependent instruction is stalled in stage of our MIPS pipeline, the
instruction ahead of it in stage is allowed to advance. Hence, in the next clock cycle, stage
will be empty. This empty stage is called a pipeline bubble. Indicate what operation is
performed by the ALU when a bubble is in the execute stage. Is the ALU operation
performed when the bubble is in the execute stage the same as the ALU operation
performed when a nop machine instruction is in the execute stage? Explain your answer.
b The following instruction sequence executes on our MIPS pipeline with both a data
hazard unit and a data forwarding unit:
ori $ $
addiu $ $
sll $ $
add $ $ $
Recall that data forwarding can avoid stalling a dependent instruction since any stale
register value the dependent instruction uses can be replaced by the forwarded value when
the dependent instruction is in the execute stage. Identify all instructions in the sequence
above that require one or more forwarded values. For each instruction that you identify,
indicate the register whose contents must be replaced by the forwarded value and indicate
which instruction produces the value that is forwarded.
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
