HW 1 Sol S04
HW 1 Sol S04
1.51
1.52
1.53
In 1980, the yield = 48% and the Die Area = 0.16 from figure 1.31.
In 1992, the yield = 48% and the Die Area = 0.97 from figure 1.31.
Thus,
Defects per area in 1980 = (1 / (sqrt(0.48) – 1) * (2 / .16) = 5.5 / unit area (in sq. cm)
Defects per area in 1992 = (1 / (sqrt(0.48) – 1) * (2 / .97) = .914 / unit area (in sq. cm)
2.3
CPI M2 = 5 seconds * (300e6 cycles / sec) * (1 / 160e6 instructions) = 9.375 cycles per
instruction
2.15
Note that for CPI MNFP, we used 60, 40, and 100 rather than 30, 20, and 50. This is
because it takes 30 integer instructions for a FP multiply, and each of those 30 integer
instructions takes 2 clock cycles. Thus 30 * 2 = 60. This holds for FP add and divide as
well.
2.16
Since 10% of the instructions are FP mults, we know that there are .1 * 300e6 number of
floating point multiply instructions. We can similarily find the number of FP add, FP
divide, and integer instructions.
= (.1 * 300e6 * 30) + (.15 * 300e6 * 20) + (.05 * 300e6 * 40) + (.7 * 300e6) = 2.76e6.
2.18
2.24
In the 6 months necessary to optimize, CPI performance will increase by 1.034 ^ 6 = 1.22,
or 22%. Since the performance gain is more than the normal growth rate of performance,
the optimizations should be done.
2.32
2.41
2.44
B.15
The even parity function will output a 1 whenever there are an even numbers of 1 in the
input, and 0 otherwise.
A B C D Out
0 0 0 0 1
0 0 0 1 0
0 0 1 0 0
0 0 1 1 1
0 1 0 0 0
0 1 0 1 1
0 1 1 0 1
0 1 1 1 0
1 0 0 0 0
1 0 0 1 1
1 0 1 0 1
1 0 1 1 0
1 1 0 0 1
1 1 0 1 0
1 1 1 0 0
1 1 1 1 1
B.21
Note that the machine simply changes state every clock cycle.
Mid1State
Left = 0
Middle =1
Right = 0
RightState
LeftState
Left = 0
Left = 1 Middle =0
Middle =0 Right = 1
Right = 0
Mid2State
Left = 0
Middle =1
Right = 0
B.22
Note that we picked RightState to be 11. This makes it so that each transition only
involves one of the 2 state bits to change. This will make our logic simpler later. If you
picked 10 for RightState and 11 for Mid2State, your logic equations may be more
complex (and require more gates).
Solving for NS1 and NS0, we get as our next state equations: