Question: 7 . Consider a system A which needs to execute the following sequence of instructions: lw $t 1 , 0 ( $t 2 ) sw

7. Consider a system A which needs to execute the following sequence of instructions:
lw $t1,0($t2)
sw $t1,4($t3)
lw $t2,4($t3)
addi $t1, $t1,4
add $t1, $t3, $0
or $t3, $t1, $t2
sw $t3,4($t1)
a. Assume 5-stage pipelining and no forwarding mechanism. If each stage takes
1 clock cycle to complete, calculate with execution time (in cycles) for the
completion of whole program. Determine how many times the processor stalls
and how long is each stalls (in terms of clock cycles).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!