Beruflich Dokumente
Kultur Dokumente
A.
B.
Executing the task at the voltage should yield the dynamic energy, assuming no changes in the capacitive load.
Frequency is not proportional to the dynamic energy and should not have an effect.
1-2 (40/100). [PH11], page C-82, problem C.1-a,b,c,d,e,f,g.
A.
Reg.
R1 LD DADDI
R1 DADDI SD
R2 LD DADDI
R2 SD DADDI
R2 DSUB DADDI
R4 BNEZ DSUB
B.
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8
LD F D X M W
DADDI F s s D X M W
SD F s s D X M W
DADDI F D X M W
DSUB F s s D X M W
BNEZ F s s D X M W
LD2 s s F D
C.
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8
LD F D X M W
DADDI F D s X M W
SD F s D X M W
DADDI F D X M W
DSUB F D X M W
BNEZ F s D X M W
F s
LD2 F D X M W
End of iteration 1: R3 = R2 + 392
D.
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8
LD F D X M W
DADDI F D s X M W
SD F s D X M W
DADDI F D X M W
DSUB F D X M W
BNEZ F s D X M W
LD2 F D X M W
E.
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8
LD F1 F2 D1 D2 X1 X2 M1 M2 W1 W2
DADDI F1 F2 D1 D2 s s s X1 X2 M1 M2 W1 W2
SD F1 F2 D1 s s s D2 X1 X2 M1 M2 W1 W2
DADDI F1 F2 s s s D1 D2 X1 X2 M1 M2 W1 W2
DSUB F1 s s s F2 D1 D2 s X1 X2 M1 M2 W1 W2
BNEZ F1 F2 D1 s D2 X1 X2 M1 M2 W1
LD2 F1 F2 s D1 D2 X1 X2 M1 M2
F.
A.
F D X M W >>
FDMXW
B.
Source Destination
MEM MEM
EX MEM
EX EX
EX >> EX
ALU to load or store
EX >> EX
ALU operations
C.
ADD R1, R2, R3
LD R4, 0 (R1)
D.
Original New
LD R2, 0(R3)
This adds one more instruction to ADD the offset then LD in the
register.
Original New
E.
If a load produces a value used for the next instruction, this causes a stall for the original pipeline, but not the new pipeline.
Therefore, we see a change in the CPI.
If an offset is required to be executed, MEM may get stalled. This causes a stall for the new pipeline, but not the original pipeline.
Therefore, we see a change in the CPI.