Question: 1 4 Consider the following code 1 w $ 6 , 0 ( $ 4 ) lw $ 4 , 5 ( $ 7 )

14 Consider the following code
1w$6,0($4)
lw $4,5($7)
beq $6,$5, label //assume branch is not taken
sub $7,$6,$2
sw $7,8($6)
label: sub $6,$7,$6
a. How many clock cycles does it take to execute the code if it is multi cycle
execution?
b. How many clock cycles does it take to execute the code if it is pipelined execution?
c. In which clock cycle does actual subtraction of $3,$2 takes place in case of multi
cycle execution?
d. In which clock cycle branch target address is calculated in case of multi-cycle
execution?
e. What happens during 8th clock cycle in case of multi-cycle execution?

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 Databases Questions!