Question: 1 4 Consider the following code 1 w $ 6 , 0 ( $ 4 ) lw $ 4 , 5 ( $ 7 )
Consider the following code
$$
lw $$
beq $$ label assume branch is not taken
sub $$$
sw $$
label: sub $$$
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 $$ takes place in case of multi
cycle execution?
d In which clock cycle branch target address is calculated in case of multicycle
execution?
e What happens during th clock cycle in case of multicycle execution?
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
