Sol 3
Sol 3
Sol 3
3.1. (a)
x1 x2 x3 f
0 0 0 0 1 1 1 1 (b)
0 0 1 1 0 0 1 1
0 1 0 1 0 1 0 1
0 1 1 0 1 0 0 1
x3
x3
x1 x2 x3 + x1 x2 x3 + x1 x2 x3 + x1 x2 x3
x2 x3 + x2 x3
3-1
0 0 0 0 1 1 1 1
0 0 1 1 0 0 1 1
0 1 0 1 0 1 0 1
1 1 1 1 1 0 0 0
3-2
x1 x2 x3 x4
x1 x2 x3 x4
0 0 0 0 0 0 0 0 (b)
0 0 0 0 1 1 1 1
0 0 1 1 0 0 1 1
0 1 0 1 0 1 0 1
1 0 0 0 1 0 0 0
1 1 1 1 1 1 1 1
0 0 0 0 1 1 1 1
0 0 1 1 0 0 1 1
0 1 0 1 0 1 0 1
1 0 0 0 0 0 0 0
Vx Vx Vx
3 2
Vf
3-3
3.9.
Vx Vx
3
Vf
Vx Vx
Vf Vx Vx Vx Vx
f = x4 + x1 x2 x3
which leads to the circuit
3-4
VDD
Vf Vx Vx Vx Vx
4
3.12.
VDD VDD
Vf Vx Vy
Vz
3-5
3.13.
VDD VDD
Vy Vx Vz
Vy
Vz
Vf Vz Vy Vy
Vx
Vz
VGS ; VT the NMOS transistor is operating in the saturation region: ID = 1 kn W (VGS ; VT )2 2 L = 10 VA 5 (5 V ; 1 V)2 = 800 A 2 (b) In this case VDS < VGS ; VT , thus the NMOS transistor is operating in the triode region: 2 ID = kn W (VGS ; VT )VDS ; 1 VDS L 2 = 20 VA 5 (5 V ; 1 V) 0:2 V ; 1 (0:2 V)2 = 78 A 2 2
0 0 0
VGS ; VT the PMOS transistor is operating in the saturation region: ID = 1 kp W (VGS ; VT )2 2 L = 5 VA 5 (;5 V + 1 V)2 = 400 A 2 (b) In this case VDS > VGS ; VT , thus the PMOS transistor is operating in the triode region: 1 2 ID = kp W (VGS ; VT )VDS ; 2 VDS L = 10 VA 5 (;5 V + 1 V) (;0:2) V ; 1 (;0:2 V)2 = 39 A 2 2
0
3-6
3.16.
3.17.
< (VGS ; VT ), the PMOS transistor is operating in the saturation region: ISD = 1 kp W (VGS ; VT )2 2 L = 50 VA (;5 V + 1 V)2 = 800 A 2
0
< (VGS ; VT ), the PMOS transistor is operating in the saturation region: 1 ISD = 2 kp W (VGS ; VT )2 L A (;3:3 V + 0:66 V)2 = 558 A = 80 V2
0
VT = VT N = ;VT P
The current owing through the PMOS transistor is
3-7
Since there is only one path for current to ow, we can equate the currents owing through the NMOS and PMOS transistors and solve for the voltage Vf .
a = kn b = ;2kn(VDD ; VT ) c = kp (VDD ; VT )2
which gives
Vf = ;b 2a
k 1 ; kp
"
Only one of these two solutions is valid, because we started with the assumption that the NMOS transistor is in the triode region while the PMOS is in the saturation region. Thus
k Vf = (VDD ; VT ) 1 ; 1 ; k p n
3.21. (a)
0
(b)
kp = kp Wp = 24 VA 2 Lp kn = kn Wn = 240 VA 2 Ln
0
3-8
VOL = Vf
(d)
24 = (5 V ; 1 V) 1 ; 1 ; 240 = 0:21 V
"
tpLH = =
The high-to-low propagation delay is
kp Wpp VDD L
0
1:7C
tpHL = =
3.22. (a)
n kn Wn VDD L
0
1:7 70 fF = 0:1 ns 60 VA 4 5 V 2
0
kp = kp Wp = 96 VA kn = kn Wn = 240 VA 2 2 L L
0 0
3-9
VOL = Vf
(d)
96 = (5 V ; 1 V) 1 ; 1 ; 240 = 0:90 V
"
tpLH = =
The high-to-low propagation delay is
0 kp Wpp VDD L
1:7C
1:7 70 fF = 0:25 ns 96 VA 1 5 V 2
tpHL =
3.23. (a)
(b) The two NMOS transistors in series can be considered equivalent to a single transistor with twice the length. Thus
kp = kp Wp = 24 VA 2 Lp kn = kn Wn = 120 VA 2 Ln
0
3-10
VOL = Vf
(d)
24 = (5 V ; 1 V) 1 ; 1 ; 120 = 0:42 V
"
tpLH = =
The high-to-low propagation delay is
kp Wpp VDD L
0
1:7C
tpHL = =
3.24. (a)
n kn Wn VDD L
0
1:7 70 fF = 0:2 ns 60 VA 2 5 V 2
0
(b) The two NMOS transistors in parallel can be considered equivalent to a single transistor with twice the width. Thus
kp = kp Wp = 24 VA 2 Lp kn = kn Wn = 480 VA 2 Ln
0
3-11
VOL = Vf
(d)
24 = (5 V ; 1 V) 1 ; 1 ; 480 = 0:10 V
"
tpLH = =
The high-to-low propagation delay is
kp Wpp VDD L
0
1:7C
1:7 70 fF = 0:99 ns 24 VA 1 5 V 2
tpHL =
3.25. (a)
PNOT
(b)
gate
3.28. (a)
PNOT
(b)
gate
1:7C
kp Wpp VDD L
1:7C
tpHL = tpLH =
1:7C
3-13
3.31. The two PMOS transistors in a CMOS NAND gate are connected in parallel. The worst case current to drive the output high happens when only one of these transistors is turned ON. Thus each transistor has to have Wp the same dimensions as the PMOS transistor in the inverter, namely Lp = 4.
n The two NMOS transistors are connected in series. If each one had the ratio Wn , then the two transistors L W could be thought of as one equivalent transistor with a 2Ln ratio. Thus each NMOS transistor must have n Wn = 4. twice the width of that in the inverter, namely Ln
3.32. The two NMOS transistors in a CMOS NOR gate are connected in parallel. The worst case current to drive the output low happens when only one of these transistors is turned ON. Thus each transistor has to have n the same dimensions as the NMOS transistor in the inverter, namely Wn = 2. L Wp The two PMOS transistors are connected in series. If each of these transistors had the ratio Lp , then the two W transistors could be thought of as one transistor with a 2Lp ratio. Thus each PMOS transistor must be made p n twice as wide as that in the inverter, namely Wn = 8. L 3.33. The worst case path in the PMOS network contains two transistors in series. Thus each PMOS transistor must be twice as wide the transistors in the inverter. The worst case path in the NMOS network also contains two transistors in series. Similarly, each NMOS transistor must be twice as wide as those in the inverter. 3.34. The worst case PMOS path contains three transistors in series so each transistor must be three times as wide as the PMOS transistors in the inverter. The worst case NMOS path contains two transistors in series. Thus the NMOS transistors must be two times as wide. 3.35. (a) The current owing through the inverter is equal to the current owing through the PMOS transistor. We shall assume that the PMOS transistor is operating in the saturation region.
(b) The current owing through the NMOS transistor is equal to the static current I stat. Assume that the NMOS transistor is operating in the triode region.
1 = 20Vf ; 4Vf2
Solving this quadratic equation yields V f = 0:05V. Note that the output voltage V f satises the assumption that the PMOS transistor is operating in the saturation region while the NMOS transistor is operating in the triode region. (c) The static power dissipated in the inverter is
PS = IstatVDD = 30 A 5 V = 150 W
(d) The static power dissipated by 250,000 inverters.
3-14
3.36.
x1 x2 x3 NOR plane VDD VDD
P1 P2 P3 P4
NOR plane
f1
f2
3.37.
x1 x2 x3 NOR plane VDD VDD
P1 P2 P3 P4
NOR plane
f1
f2
3-15
3.38.
x1 x2 x3 NOR plane VDD VDD
S1 S2 S3 S4
NOR plane
f1
f2
3.39.
x1 x2 x3 NOR plane VDD VDD
S1 S2 S3 S4
NOR plane
f1
f2
3-16
3.40.
VDD
x1
x2
x3
VDD
VDD
VDD
NOR plane
f1
3.41.
VDD
x1
x2
x3
VDD
VDD
VDD
NOR plane
f1
3-17
3.42.
f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2
3.43.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
m1 m2 m4 m7 m1 + m2 m1 + m4 m1 + m7 m2 + m4 m2 + m7 m4 + m7 m1 + m2 + m4 m1 + m2 + m7 m1 + m4 + m7 m2 + m4 + m7 m1 + m2 + m4 + m7 m0 m3 m5 m6 m0 + m3 m0 + m5 m0 + m6 m3 + m4 m3 + m6 m5 + m6 m0 + m3 + m5 m0 + m3 + m6 m0 + m5 + m6 m3 + m5 + m6 m0 + m3 + m5 + m6
f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2
3-18
3.44.
x1 x2
0 0 1 0 0 0 0 1 0 0 1 0
x1 x2
x1 x3
0 1 1 1
x1 x3
x1 x2 + x1 x3
0 1 1 1
x1 x2 + x1 x3 + x2 x3
x2 x3
x2 x3
f = x1 x2 + x1x3 + x1 x2 = x2 + x1x3
The circuit is
x1 x3
0 0 1 0
x1 x3
x2
0 1 1 1
x2 + x1 x3
f = x2f1 + x2 f2
where
f1 = x1 x4 + x3x4 f2 = x1 x3
3-19
The circuit is
x1 x3 x4 x1 x4 + x3 x4
x1 x2 x4 + x2 x3 x4 + x1 x2 x3
0 x1 x3 x2 x1 x3
f = x2f1 + x2 f2
where
f1 = x1 x4 + x3x4 f2 = x1 x3 The function f1 requires one 2-LUT, while f2 requires three 2-LUTs. We then need three additional 3-LUTs to realize f , as illustrated in the circuit
x1 x4 x1 x4 x1 x4 + x3 x4 x1 x2 x4 + x3 x2 x4 x3 x4 x2 x1 x3 x1 x3 x1 x2 x3 x3 x4 x1 x2 x4 + x2 x3 x4 + x1 x2 x3
3.48.
g h j k
= = = =
x2 x3 x1 x2 x3
3-20
3.49. (a)
x2 0
x1
x1 0 + x1 x2
x3 x1 x2 + x3 1 = x1 x2 + x3
x3
(b)
x3
x3 0 + x3 ( x1 + x2 ) = x1 x3 + x2 x3
x1 x2 + x1 1 = x1 + x2
x2 1
x1
3.50. (a)
x1 x2 1 1 x3 1 1
x1 x2
x1 x2 x3 = x1 x2 + x3
x3
3-21
(b)
x1 x2 x4 x1 x2 x3 x4 1 1 x4 x2 x3 x4 x1 x2 x4 x1 x2 x3 x4 = x1 x2 x4 + x1 + x2 x3 x4 x1 x2 x4
3.51.
LIBRARY ieee ; USE ieee.std logic 1164.all ; ENTITY prob3 51 IS PORT ( x1, x2, x3, x4 : IN STD LOGIC ; f : OUT STD LOGIC ) ; END prob3 51 ; ARCHITECTURE LogicFunc OF prob3 51 IS BEGIN f <= (x2 AND NOT x3 AND NOT x4) OR (NOT x1 AND x2 AND x4) OR (NOT x1 AND x2 AND x3) OR (x1 AND x2 AND x3) ; END LogicFunc ;
3.52.
LIBRARY ieee ; USE ieee.std logic 1164.all ; ENTITY prob3 52 IS PORT ( x1, x2, x3, x4 : IN STD LOGIC ; f : OUT STD LOGIC ) ; END prob3 52 ; ARCHITECTURE LogicFunc OF prob3 52 IS BEGIN f <= (x1 OR x2 OR NOT x4) AND (NOT x2 OR x3 OR NOT x4) AND (NOT x1 OR x3 OR NOT x4) AND (NOT x1 OR NOT x3 OR NOT x4) ; END LogicFunc ;
3-22
3.53.
LIBRARY ieee ; USE ieee.std logic 1164.all ; ENTITY prob3 53 IS PORT ( x1, x2, x3, x4, x5, x6, x7 : IN STD LOGIC ; f : OUT STD LOGIC ) ; END prob3 53 ; ARCHITECTURE LogicFunc OF prob3 53 IS BEGIN f <= (x1 AND x3 AND NOT x6) OR (x1 AND x4 AND x5 AND NOT x6) OR (x2 AND x3 AND x7) OR (x2 AND x4 AND x5 AND x7) ; END LogicFunc ;
3.54. The circuit in Figure P3.10 is a two-input XOR gate. Since NMOS transistors are used only to pass logic 0 and PMOS transistors are used only to pass logic 1, the circuit does nor suffer from any major drawbacks. 3.55. The circuit in Figure P3.11 is a two-input XOR gate. This circuit has two drawbacks: when both inputs are 0 the PMOS transistor must drive f to 0, resulting in f = V T volts. Also, when x1 = 1 and x2 = 0, the NMOS transistor must drive the output high, resulting in f = V DD ; VT .
3-23