Question: Problem 2 ( 2 0 points ) . For each sequence of instructions given in Problem 1 , state the number of total stalls required
Problem points For each sequence of instructions given in Problem state the number of total stalls required if forwarding is not enabled in the datapath show your work Compare this number of stalls without forwarding to the stalls needed in Problem and determine how many total clock cycles forwarding saves for each sequence of instructions
Figure : Sample pipeline execution diagram.
Draw the pipeline execution diagram for the two sequences of instructions given below when executed in the pipelined datapath described above. For sequence A assume the branch instruction is not taken, and for sequence B assume the branch instruction is taken. Your pipeline execution diagram should clearly indicate the forwarding paths that may be used and clearly mark a bubble ie stalled instruction An example of a pipeline execution diagram is given in Figure You must draw a similar diagram but for the following sequences of instructions:
Sequence A
add $t $t $t
ori $t $txF
lw $t$t
beq $t $t LABEL
sw $t$t
Sequence B
sub $t$t$t
and $t$t$t
add $t$t$t
beq $t$t LABEL
w $t$t
LABEL: w $t$t
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
