CMOS Logic
CMOS Logic
4 CMOS Logic 9
k-input NAND gates are constructed using k series nMOS transistors and k parallel Y
A
pMOS transistors. For example, a 3-input NAND gate is shown in Figure 1.13. When any
B
of the inputs are 0, the output is pulled high through the parallel pMOS transistors. When
C
all of the inputs are 1, the output is pulled low through the series nMOS transistors.
The inverter and NAND gates are examples of static CMOS logic gates, also called comple-
mentary CMOS gates. In general, a static CMOS gate has an nMOS pull-down network to
connect the output to 0 (GND) and pMOS pull-up network to connect the output to 1
(VDD), as shown in Figure 1.14. The networks are arranged such that one is ON and the
other OFF for any input pattern.
10 Chapter 1 Introduction
The pull-up and pull-down networks in the inverter each consist of a single
transistor. The NAND gate uses a series pull-down network and a parallel pull-
pMOS up network. More elaborate networks are used for more complex gates. Two or
pull-up
network
more transistors in series are ON only if all of the series transistors are ON.
Two or more transistors in parallel are ON if any of the parallel transistors are
Inputs
ON. This is illustrated in Figure 1.15 for nMOS and pMOS transistor pairs.
Output By using combinations of these constructions, CMOS combinational gates
can be constructed. Although such static CMOS gates are most widely used,
nMOS Chapter 9 explores alternate ways of building gates with transistors.
pull-down In general, when we join a pull-up network to a pull-down network to
network
form a logic gate as shown in Figure 1.14, they both will attempt to exert a logic
level at the output. The possible levels at the output are shown in Table 1.3.
From this table it can be seen that the output of a CMOS logic gate can be in
FIGURE 1.14 General logic gate using
pull-up and pull-down networks
four states. The 1 and 0 levels have been encountered with the inverter and
NAND gates, where either the pull-up or pull-down is OFF and the other
structure is ON. When both pull-up and pull-down are OFF, the high-
impedance or floating Z output state results. This is of importance in multiplexers, memory
elements, and tristate bus drivers. The crowbarred (or contention) X level exists when both
pull-up and pull-down are simultaneously turned ON. Contention between the two net-
works results in an indeterminate output level and dissipates static power. It is usually an
unwanted condition.
a a a a a
0 0 1 1
g1
g2
0 1 0 1
b b b b b
(a) OFF OFF OFF ON
a a a a a
0 0 1 1
g1
g2
0 1 0 1
b b b b
(b) ON OFF OFF OFF
a a a a a
g1 g2 0 0 0 1 1 0 1 1
b b b b b
(c) OFF ON ON ON
a a a a a
g1 g2 0 0 0 1 1 0 1 1
b b b b b
(d) ON ON ON OFF
FIGURE 1.15 Connection and behavior of series and parallel transistors
1.4 CMOS Logic 11
A C A C
B D B D
(a) (b)
C D
A B C D
A B
(c) (d)
C D
A
A B
B
Y Y
C
A C
D
B D
(e) (f)
FIGURE 1.18 CMOS compound gate for function Y = (A · B) + (C · D)
A
Example 1.2
B Sketch a static CMOS gate computing Y = (A + B + C) · D.
C D
Y SOLUTION: Figure 1.19 shows such an OR-AND-INVERT-3-1 (OAI31) gate. The
D nMOS pull-down network pulls the output low if D is 1 and either A or B or C are 1,
A B C so D is in series with the parallel combination of A, B, and C. The pMOS pull-up net-
work is the conduction complement, so D must be in parallel with the series combina-
FIGURE 1.19 tion of A, B, and C.
CMOS compound gate
for function
Y = (A + B + C) · D 1.4.6 Pass Transistors and Transmission Gates
The strength of a signal is measured by how closely it approximates an ideal voltage source.
In general, the stronger a signal, the more current it can source or sink. The power sup-
plies, or rails, (VDD and GND) are the source of the strongest 1s and 0s.
An nMOS transistor is an almost perfect switch when passing a 0 and thus we say it
passes a strong 0. However, the nMOS transistor is imperfect at passing a 1. The high
voltage level is somewhat less than VDD, as will be explained in Section 2.5.4. We say it
passes a degraded or weak 1. A pMOS transistor again has the opposite behavior, passing
strong 1s but degraded 0s. The transistor symbols and behaviors are summarized in Figure
1.20 with g, s, and d indicating gate, source, and drain.
When an nMOS or pMOS is used alone as an imperfect switch, we sometimes call it
a pass transistor. By combining an nMOS and a pMOS transistor in parallel (Figure
1.21(a)), we obtain a switch that turns on when a 1 is applied to g (Figure 1.21(b)) in
which 0s and 1s are both passed in an acceptable fashion (Figure 1.21(c)). We term this a
transmission gate or pass gate. In a circuit where only a 0 or a 1 has to be passed, the appro-
priate transistor (n or p) can be deleted, reverting to a single nMOS or pMOS device.