Professional Documents
Culture Documents
11
12
15
16
First loop starts on cycle 2, second iteration of the loop starts on cycle 19,
and the cycles taken by the floating points operations is 6.
Therefore, performance of the code is as follows:
6 / (19-2) cycles = 0.35
Rubrics:
a) Marks distribution
a. Proper loop unrolling = 8 (-1 for each mistake)
b. Incrementing R1 by 8 = 1
c. Decrementing R1 by -2 = 1
d. Overall optimal scheduling of instruction = 2
e. Flops result = 3