Question: MOV R 0 , # 0 / / i = 0 MOV R 1 , # 0 / / sum = 0 MOV R 2
MOV R # i
MOV R # sum
MOV R # numberOfLoops
LOOP:
CMP R R R R
BEQ L
ADD R R R sum sum i
ADD R R # increment i
B LOOP
L:
ii How many cycles are required for the pipelined ARM processor with Hazard Unit to issue all of these instructions? What is the CPI of the processor on this program? Assume that we always predict to take each branch instruction and have to flush a certain number of partial instructions if we do not take the branch
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
