Question: Determine the number of clock cycles needed to properly execute the given code segment. Datapath includes Forwarding unit. Insert stalls where necessary. I1: lw $s0,
Determine the number of clock cycles needed to properly execute the given code segment. Datapath includes Forwarding unit. Insert stalls where necessary.
I1: lw $s0, 0($t0)
I2: add $s2, $s0, $s1
I3: lw $s3, 4($t0)
What is the value of ForwardA when instruction I2 is in the EX stage of the pipeline? Datapath includes Forwarding unit. Insert stalls where necessary.
I1: add $s0, $s1, $s2
I2: add $t0, $t1, $t2
I3: add $t3, $t0, $t4
I4: add $t5, $t0, $t7
I5: add $s3, $s4, $s5
a) ForwardA = 00 b) ForwardA = 01 c) ForwardA = 10 d) Cannot be determined.
I4: addi $s4, $s3, -1
I5: add $t1, $t2, $t3
What is the value of ForwardA when instruction I4 is in the EX stage of the pipeline? Datapath includes Forwarding unit. Insert stalls where necessary.
I1: add $s0, $s1, $s2
I2: add $t0, $t1, $t2
I3: add $t3, $t0, $t4
I4: add $t5, $t0, $t7
I5: add $s3, $s4, $s5
a) ForwardB = 00 b) ForwardB = 01 c) ForwardB = 10 d) Cannot be determined.
What is the value of ForwardB when instruction I4 is in the EX stage of the pipeline?
Datapath includes Forwarding unit.
Insert stalls where necessary.
I1: add $s0, $s1, $s2
I2: add $s3, $s4, $s0
I3: add $s5, $s6, $s0
I4: add $s7, $a1, $s0
I5: add $s3, $s4, $s5
a) ForwardB = 00 b) ForwardB = 01 c) ForwardB = 10 d) Cannot be determined.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
