NMOS and PMOS Circuit Design
NMOS and PMOS Circuit Design
Mazen A. R. Saghir
A transistor is aswitch
(a) A simple three-terminal
controlled by electronic
the input x device that can operate like
a switch. Transistors evolved from discrete components to
(a) A switch with the opposite behavior of Figure 3.2a
high-density devices that can be integrated on a silicon substrate.
Gate
Gate
Integrated circuits are designed using metal oxide semiconductor
field-effect transistors (MOSFETs),
Source Drain
which include three terminals:
source, drain, and gate. The source Drain and the drain functionSource as the
Substrate (Body) V
switch’s terminals, and the gate functions as its control.
Substrate (Body)
DD
VS VD VS VD
(c) SimplifiednMOS
symbol transistor(c) transistor
for an NMOS Simplified symbol transistor
pMOS for an PMOS transistor
SIO2
VG = 0V
SIO2
VS = 0V
VD
VS = 0 +V+ + + + + + + + + + + + + + + + + + + + + + + +
++++++ ++++++ ++++++ VD
+++++++++++ +++++++++++++++++
+ + ++ ++ ++ ++ ++ ++ ++Substrate + + +p)++ +++++++ ++++++++ + +
+ + + + +( type
++++++ ++++++ ++++++
+++++++++++ +++++++++++++++++
+ +n)+ + + + + + + Substrate ( type p) + + Drain
Source (type + + + +(type
+ + +n)
Source (type n)
(a) When Drain (type n)
VGS = 0 V, the transistor is off
VVGDD= 5V
SIO2
VG = 5V
SIO2
VS = 0V
VD = 0V
VS = 0+
V+ + + + + + + + + +++ ++++++
++++++ ++++++ VD = 0V
+++++++++++ +++++++++++++++++
+ + ++ ++ ++ ++ ++ ++ +++++++++ + + + + + + + +++++++ ++++++++ + +
++++++ ++++++
+++++++++++ +++++++++++++++++
+ + + + + + + + + + + + + + + + + Channel
+ + + + +(n-type)
++++++
M. Saghir (EECE 320 – Summer 2023) (b) When VGS = 5 V, the transistor
Implementation is on (n-type)
Channel
Technology 5 / 57
VD VD = 0 V VD
OS transistor is turned on when its gate terminal is high, while a PMOS transistor
MOSFETs as switches
on when its gate is low. When the NMOS transistor is turned on, its drain is
own to Gnd, and when the PMOS transistor is turned on, its drain is pulled Vup to
G
cause of the way the transistors operate, an NMOS transistor cannot be used to
rain terminal completely up to VDD . Similarly, a PMOS transistor cannot be used
s drain terminal completely down to Gnd. We discuss the operation of MOSFETs
VS = 0 V
erable detail in section 3.8.
Depending on the type of MOSFET used (nMOS Closed or pMOS)
switch and the
Open switch
when VG = VDD when VG = 0 V
voltage applied to the gate, VG , the state of the switch changes
accordingly: (a) NMOS transistor
VG VG
VS = 0 V VD VD VD = VDD
Closed switch Open switch Open switch Closed switch
when VG = VDD when VG = 0 V when VG = VDD when VG = 0 V
nMOS transistor
(a) NMOS transistor pMOS transistor
(b) PMOS transistor
M. Saghir (EECE
VD 320 – Summer 2023)
VD Implementation
VD = VDD Technology 6 / 57
ed by an arrow labeled
Typically, V V aboutand
isDD the
0.2 V (see
f section 3.8.3). If V is viewed as a function of V , then the
f x
circuit is an NMOS implementation of a NOT gate. In logic terms this circuit implements
nMOS inverterthe function f = x. Figure 3.5b gives a simplified circuit diagram in which the connection
to the positive terminal on the power supply is indicated by an arrow labeled VDD and the
x f x f
VDD Vx1
x1 x2 f
Vx1 Vx2V x x1 x2 T1 0 0
T2 1V f ( x1 , x2 )
f
2 0 1 1
GND GND 0 0 open open
1 0
V
1 DD 1
GND VDD 0 1 open closed
1 1 V
0 DD 1
Vf VDD GND 1 0 closed open VDD 1
VDD VDD 1(a) Circuit
1 closed closed GND
(b) Truth table 0
Vx1 T1
x1 x2 f
x1 x1
f f
0 x 20 1 x2
Vx2 T2 0 1 1
1 0 1
1 1 0 (c) Graphical symbols
V x2 0 0 0
0 1 0
1 0 0
Vf
1 1 1
T3
A (a) Circuit (b) Truth table
V x1 T1
x1 x2 f
V x2 0 x01 0 x1
T2 f f
0 x12 0 x2
1 0 0
1 1 1
Vf
(a) Circuit (b) Truth table
x1 x2 f
T3
A 0 0 0
Vx1 T1 V x2 T2 x1 0 1 1 x1
x2 1 0 1 f x2 f
1 1 1
Vx1 Vx(a)
2
Circuit
x1 x2 T1 T2(b) TruthAtable (c)T3
Graphical symbols
Vf f ( x1 , x2 )
GND GND 0 0 open open VDD closed GND 0
Figure 3.9 NMOS realization of an OR gate.
GND VDD 0 1 open closed GND open VDD 1
VDD
x1 GND 1 0 closedx 1 open GND open VDD 1
VDD
x2 VDD 1 f circuits
1 closed x 2 closed
in Figures GND
3.5 through 3.9f canopen VDD by the
be characterized 1 block diagram in F
3.10. The concept of CMOS circuits is based on replacing the pull-up device with a pu
network (PUN) that is built using PMOS transistors, such that the functions realized b
PDN and PUN networks are complements of each other. Then a logic circuit, such
M. Saghir (EECE 320 – Summer 2023) typical logic
(c) Graphical gate, is implemented
Implementation
symbols Technology as indicated in Figure 3.11. For any given11
valuati
/ 57
February 27, 2008 10:20 vra_29532_ch03 Sheet number 11 Page numbe
nMOS circuit structure
3.3
VDD
nMOS circuits implement logic
functions by connecting a network
of nMOS transistors to a pull-up
device that functions as a resistor.
Vf
The nMOS transistor network is
Vx1
designed to pull the circuit output to Pull-down network
VSS (GND). That is why it is called a (PDN)
V xn
pull-down network (PDN).
nMOSStructure
Figure 3.10 circuitof an NMOS circu
Both the PUN and the PDN use the same number of transistors that
would be organized to implement complementary (dual) functions.
VDD
Pull-up network
(PUN)
Vf
Vx1
Pull-down network
(PDN)
Vxn
T1
VDD
Vx Vf
T1 x T1 T2 f
T2
Vx Vf 0 on off 1
x1 T 1 T 2 on f
off 0
T2
0 on off 1
(a) Circuit (b) Truth1 table
off and
on transistor
0 states
Figure(a)
3.12
Circuit CMOS realization of aand
(b) Truth table NOT gate. states
transistor
VDD
M. Saghir (EECE 320 – Summer 2023) Implementation Technology 15 / 57
DD
(a) Circuit (b) Truth table and transistor states
CMOS NAND gate
Figure 3.12 CMOS realization of a NOT gate.
T1 T2
VDD
Vf
T1 T3 T2 x1 x2 T1 T2 T3 T4 f
Vf 0 0 on on off off 1
0 1 on off off on 1
V x1 T3 x1 x2 T1 T2 T3 T4
T4 1 0 off on on
f
off 1
01 01 on off
on off
off offon 1
on 0
0 1 on off off on 1
V x2 T4 off on on off
1 0 1
1 1 off off on on 0
(a) Circuit (b) Truth table and transistor states
VDD
T2
V x1 T1
x1 x2 T1 T2 T3 T4 f
Vf
0 0 on on off off 1
Vx2
T3 T4 T2 0 1 on off off on 0
Vf
1x 1 x02 Toff
1 T 2on
T 3 on
T 4 off f 0
10 10 off off on on 1
on on off off
0
T3 T4 0 1 on off off on 0
1 0 off on on off 0
(a) Circuit (b) Truth
1 1 table
off and transistor
off on on 0 states
VDD VDD
Vf
Vx1
Vx2
VDD
f
To design the PDN we must express f
using uncomplemented input variables only. x1
But f = x1 x2 + x3 and we must once again
handle x3 . Since a = x3 it follows that a
f = x1 x2 + a. x2
x1 x2
x3 a f
x1
a
x2
The time it takes a gate output to rise from 10% to 90% of VDD is
called the rise time (tr ), and the time it takes to fall from 90% to 10%
of VDD is called the fall time (tf ). Both tr and tf depend on the
physical characteristics of the gate’s transistors, which are typically
designed so that tr ≈ tf .
M. Saghir (EECE 320 – Summer 2023) Implementation Technology 24 / 57
Vx to cause a change in VA . This interval is called the propagation delay, often written tp ,
of the inverter. It is the time from when Vx reaches 50 percent of VDD until VA reaches the
Propagation
same level. delay in a CMOS inverter
VDD
Vx 50% 50%
Gnd
VDD
90% 90%
Vf 50% 50%
Gnd 10% 10%
tr tf
Theobtained
Fan-In
The number of inputs that a gate can have in a particular logic family is called
the logic family’s fan-in. CMOS gates with more than two inputs can be
number of inputs
by extending on a logicdesigns
series-parallel gate isoncalled
Figuresits fan-in.
3-13 and 3-15 Although
in the
why,
series
manner. For example,
number of inputs.
in transistors
practice,limits
and 6 for NAND gates.
Figure
In practice,
mostthelogic
fan-ingates
3-16 shows
however,
of CMOShave
a 3-input
a logic gate can be designed with an arbitrary number of inputs,
gate’s
CMOS
In principle, you could design a CMOS NAND or NOR gate with a very
large propagation delay increases as athefunction
additive “on”
a fan-in
gates, typicallybetween
NAND
of itsresistance
to 4 for NOR
gate. the
fan-in. This
1 and
of
gates4.
is
the corresponding
thecient
multiple
of inputs is
requiring
as switching
a cascade
logic levels,
or impractical.
a increased,
delay.
thea large
Gates with resulting
CMOS gate
large number
ofHowever,
logic gates
at some
numbercircuit
of inputs
designers
of inputs
with fewer
point
generally
canmay becompen-
sate by increasing the size of the series transistors to reduce their resistance and
implemented [Link]-
this becomes
can be made
Despite
willfaster
be and
faster
DO NOT COPY
smaller
than by cascading gates
an equivalent logicwith
gate fewer
withinputs. For example,
a large fan-in. Figure 3-17 shows
I1
17 I2
I1
m I3
I2
o the I3
I4
DO NOT COPY
cture of I4
OUT OUT
MOS I5
I5
I6
I6
I7
I7
I8
I8
Vx
Vf
x f
e x f
e x f 0 0 Z
0 1 Z
xx f f 1 0 0
e=1 e=1
x x f f 1 1 1
(a) A
(a) A tri-state
tri-statebuffer
buffer (b) Equivalent circuit circuit
(b) Equivalent (c) Truth table
e x f
e Figure 3.57 Tri-state buffe
e x f
0 320 Z
0 – Summer
e
M. Saghir (EECE 2023) Implementation Technology 29 / 57
uit that implements the multiplexer using AND and OR gates is shown in
Tri-state buffers (2)
will present another way of building multiplexer circuits in section 3.9.2
them in detail in Chapter 6.
t of Figure 3.59, the outputs of the tri-state buffers are wired together. This
Tri-state
ssible because buffers
the control are
input s is used so
connected tothat
isolate logic
one of the two circuits
buffers from their loads. For
example, February
be in the high-impedance they can
state. The bex1 used
buffer
27, 2008 10:20 istovra_29532_ch03 s =
connect
active only multiple
when logic 61
0, number
Sheet circuits to 137 black
Page number
r is active only when s = 1. It would 1 be disastrous to allow both buffers
a shared data bus . The tri-state buffers
he same time. Doing so would create a short circuit between VDD and Gnd
would ensure that only one
wo buffers logic
producecircuit
differentwould
values. beFor given
example,access to the
assume that x1 = data
1 and bus at a time.
buffer produces the output VDD , and the x2 buffer produces Gnd. A short
between VTri-state
DD and Gnd, through the transistors in the tri-state buffers. The 3.8 Practical As
buffers can have active-low enable signals and inverted
nt that flows through such a short circuit is usually sufficient to destroy the
outputs. e e
x f x f
x1 f
(a) (b)
s
e e
x2
x f x f
The 7400-series standard chips were the most commonly used. They
were manufactured by several semiconductor companies, but each
chip included the same, standard, set of gates2 .
2
A list of 7400-series chips and their data sheets is available on Wikipedia.
M. Saghir (EECE 320 – Summer 2023) Implementation Technology 31 / 57
7400-series chips exist, and they are described in the data books produced by manufacturers
of these chips [3–7]. Diagrams of some of the chips are also included in several textbooks,
7400-series standard chips (2)
such as [8–12].
VDD
Gnd
7404
7408 7432
x1
x2
x3
f
M. Saghir (EECE 320 – Summer 2023) Implementation Technology 33 / 57
Standard chip logic densities
Pin 14
Pin 16
Pin 18
Pin 19
Pin 11
Pin 13
Pin 15
Pin 17
Pin 1
Pin 2
Pin 4
Pin 6
Pin 8
Pin 3
Pin 5
Pin 7
Pin 9
Figure 3.23 The 74244 buffer chip.
Input buffers
and
inverters
x1 x1 xn xn
P1
f1 fm
x1 x2 x3
Programmable
connections
OR plane
P1
P2
P3
P4
AND plane
f1 f2
x1 x2 x3
OR plane
P1
P2
P3
P4
AND plane
f1 f2
M. Saghir (EECE 320 – Summer 2023) Implementation Technology 38 / 57
Programmable Array Logic (PAL)
x1 x2 x3
P1
f1
P2
P3
f2
P4
AND plane
f1
Flip-ßop
D Q
Clock
To AND plane
Figure 3.29 Extra circuitry added to OR-gate outputs from Figure 3.28.
M. Saghir (EECE 320 – Summer 2023) Implementation Technology 41 / 57
Programming PLAs and PALs
PLAs and PALs are programmed using CAD systems. Once a design
is ready the CAD system generates a device programming file called
a fuse map. This is downloaded to the device using a special
programming unit.
rd
boa
uit
irc
dc
nte
Pri
3.6.4 2023)
M. Saghir (EECE 320 – Summer Complex Programmable
ImplementationLogic Devices (CPLDs)
Technology 43 / 57
Complex
0:20
Programmable
vra_29532_ch03
Logic Devices (CPLDs)
Sheet number 30 Page number 106 black
PLAs and PALs are suitable for relatively small designs. CPLDs are
programmable logic devices that include multiple PAL-like blocks and
programmable
C HAPTER 3 • interconnects. They are used to implement relatively
Implementation Technology
large designs.
I/O block
I/O block
PAL-like PAL-like
block block
Interconnection wires
I/O block
I/O block
PAL-like PAL-like
block block
Figure 3.32
M. Saghir (EECE 320 – Summer 2023)
Structure of a complex programmable logic device (CPLD).
Implementation Technology 44 / 57
PAL-like block inside a CPLD 3.6 Programmable Logic Devices 107
PAL-like block
D Q
D Q
D Q
Figure 3.33
M. Saghir (EECE 320 – Summer 2023) A section of the CPLD in FigureTechnology
Implementation 3.32. 45 / 57
08 10:20 vra_29532_ch03 Sheet number 32 Page number 108 black
A JTAG port can be used to connect a PCB with one or more CPLDs
to a host computer. This enables a device configuration file
(generated by a CAD system) to be downloaded to the CPLDs.
Printed
circuit board
I/O block
I/O block
I/O block
I/O block
e 3.36b. The
value function
multiplexer.
in each row of f1A from
the this table
sequence
truth table. can
of
The input 2nbebits
stored
variables x1 andcanxin the
2 arebe usedLUT theas
as 0/1
stored illustrated
a LUTinto
ininputs
select 0 0
0 1
of three multiplexers, which, depending on the valuation of x and x , select
1 2 0/1the content of
implement
one of the four storage nas-input
anycells logic
the output function.
of the LUT. We introduced multiplexers in section 1 0
2 x 1 1
2.8.2 and will discuss storage cells in Chapter 10.
x1 To see how a logic function can be realized in the two-input LUT, consider the truth
Example: 2-input
table in Figure 3.36b. LUT
The function implementing
f1 from this table can be stored1in the(a)LUTf =x x +x x
Circuit 2 : LUT
for a two-input
1 as2illustrated
1 in (b) f
1 = x1 x
0/1
x1 x
1
0/1 x
1 x
2 f
1
0/1 f 1
0/1 0/1 0 x01 x
2 11 f 0
f f
1
0/1 0 01 0 01 0
0/1
1 00 1 00
0/1 1
1 0 0
x2 1 11
x2 11 1 x
2
0/1
x1
0/1
x
2
0/1
0/1
0/1
0/1 f
3-input LUTs can 0/1
0/1
implement arbitrary 0/1
0/1
f
N
N 0 N 0
0 B
1 B
0 0
N N N!
1 0
B
0
1 B
1
B
1
I/O block
FPGAs use pin grid array (PGA) or ball grid array (BGA)
(a) General structure of an FPGA
packaging, and are also programmed using in-system programming
techniques like JTAG.
Designers use the standard cell libraries and CAD tools to organize
the logic gates in rows separated by interconnection wires.
x f
1 2
x
2
x
3
f
1
Another technology
February 27, 2008 10:20
for implementing
vra_29532_ch03
ASICs where only part of a chip
Sheet number 41 Page number 117 black
f
1
f
1
x
1
x
2
x
3
Figure 3.42 The logic function f1 = x2 x3 + x1 x3 in the gate array of Figure 3.41.
M. Saghir (EECE 320 – Summer 2023) Implementation Technology 56 / 57
Summary of chip packaging technologies