Task
In an enhancement of a design of a CPU, the speed of a floating point unit has been increased by 20% and the speed of a fixed point unit has been increased by 10%. What is the overall speed up achieved if the ratio of the number of floating point operations to the number of fixed point operations is 2:3 and the floating point operation used to take twice the time taken by the fixed point operation in the original design?
a) 1.155
b) 1.185
c) 1.255
d) 1.285
Solution
Let the time taken by the fixed point operation in the original is tfix, so time taken by the floating point operation tfl=2tfix.
the ratio of the number of floating point operations to the number of fixed point operations is Nfl:Nfix=2:3. And N=2+3=5.
New speed of a floating point unit is v∗fl=1.2vfl.
The same for fixed point unit is v∗fix=1.1vfix.
Overall speed in the original design:
vov=NtflNfl+tfixNfix
Overall speed after an enhancement of a design:
v∗ov=NtflNfl⋅1.2+tfixNfix⋅1.1
So overall speed up is v∗ovvov:
vovv∗ov=NtflNfl⋅1.2+tfixNfix⋅1.1=Nfl+tfixNfixtflNfl⋅1.2+tfixNfix⋅1.1=2tfix+tfixNfix2tfixNfl⋅1.2+tfixNfix⋅1.1=2tfix+tfix32tfix2⋅1.2+tfix3⋅1.1=1+31.2+3.3=44.5=1.125
Answer: 1.125