Professional Documents
Culture Documents
Baigiang KTSo 2020 Ch3 Lec31 LogicGate
Baigiang KTSo 2020 Ch3 Lec31 LogicGate
SYSTEMS
V SS (Gnd)
SiO 2
V = 0V
S
V
D
SiO2
VS = 0 V
VD = 0 V
Channel (type n)
(b) When VGS = 5 V, the transistor is on
+ W2
W1
+
L
L
NMOS NAND
Vf - Series connection of NMOS to
Vx
1
create the logic AND function
x1 x2 f - VX1= VX2=5V, tr is turned off --
Vx
0 0 1 > Vf=5V
2 0 1 1
1 0 1
- When VX=5V, trs are turned
1 1 0 on, their drains are pulled down
(a) Circuit (b) Truth table
to Gnd --> Vf will be closed to
0V
x1 x1
x2
f
x2
- If only one of trs is turned off,
f
then Vf will be pulled up to 5V
- R is used to limit the current
(c) Graphical symbols
during turning on of tr.
NMOS realization of a NAND (problem?)
gate.
V DD
NMOS NOR
- Parallel connection of
x1 x2 f NMOS to create the logic
Vf
0 0 1 NOR function
Vx
1
Vx
2 0 1 0 - Either VX1= 5V or VX2=5V,
1 0 0
1 1 0 Vf will be closed to 0V
- If both Vx =0V --> Vf will
(b) Truth table
(a) Circuit be pulled up to 5V
x1 x1
x2 f x2 f
x1 x2 f
Vx2 0 0 0
0 1 0
1 0 0
1 1 1
x1 x1
f f
x2 x2
1 0 1
1 1 1
x1 x1
x2 f x2 f
Vx
1
Pull-down network
(PDN)
Vx
n
Vx
or the PUN pulls Vf up to VDD
1
Pull-down network - The PDN & PUN have equal
(PDN) numbers of trs. (the networks are
Vx
n
duals of one another)
- Whenever the PDN has NMOS trs.
Structure of a CMOS circuit. in series, the PUN has PMOS trs. in
parallel, and vice versa
VDD
CMOS NOT
R
- When Vx= 0V, T1 is ON &
VDD
Vf T2 is OFF, Vf= 5V. Since T2
Vx is OFF, no current flows
through trs.
T1 - When Vx= 5V, T2 is ON &
T1 is OFF, Vf= 0V. Since T1
Vx Vf NMOS realization of NOT gate
is OFF, no current flows
x T1 T2 f
T2 through trs.
0 on off 1 - KEY: no current flows in
1 off on 0 CMOS Inverter
(a) Circuit (b) Truth table and transistor states
Vf
Vx T3 x1 x2 T1 T2 T3 T4 f
1
0 0 on on off off 1
0 1 on off off on 1
Vx T4
2 1 0 off on on off 1
1 1 off off on on 0
f = x1 + x2 = x1 x2
Vx T1
1
Vx T2
2
x1 x2 T1 T2 T3 T4 f
Vf
0 0 on on off off 1
T3 T4 0 1 on off off on 0
1 0 off on on off 0
1 1 off off on on 0
Vf
Vx
1
Vx
2
Vx
2
For PDN, take complemented form of f
Vx
which leads to result as shown in Fig. 3
f = x1 + x2 x3 = x1 ( x2 + x3 )
Consider the following function : Example 3.2
( )
f = x1 + x2 + x3 x4
Build a circuit using CMOS to implement this functionality
VDD
Example 3.2
Vx
! f = x1 (x2 x3 + x4 )
3
Vx
4
Voltage Levels
V DD
Vf Vx Vx Vf
1 2
Vx L L H
1
L H H
H L H
Vx H H L
2
1 1 0 x1
1 0 0 f
x2
0 1 0
0 0 1
VDD
Gnd
7404
7408 7432
1
x
x2
3
x
f
An implementation of f = x1 x2 + x2 x3
- Because of their low logic capacity, the standard
chips are seldom used in practice.
- One exception: many modern products include
standard chips containing buffers (logic gates that
are usually used to improve the circuit speed)
Pin 12
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
The 74244 buffer chip comprises 8 tri-state
buffers
VDD
Buffer
N1
f To inputs of
x
n other inverters
x f
e= 1
x f
e x f x f x f
0 0 Z
0 1 Z (a) (b)
1 0 0 Four types of tri-
1 1 1
state buffers. e e
(c) (d)
Multiplexer
From Truth Table, derive canonical SOP form
f ( s, x1 , x2 ) = sx1 x2 + sx1 x2 + s x1 x2 + sx1 x2
( ) ( )
= sx1 x2 + x2 + s x1 + x1 x2 = sx1 + sx2
An application of tri-state buffers: Multiplexer
x1 f
x2
0 0 Z
0 Z
0 1 Z
1 x
1 0 0
1 1 1
Truth table: Transmission gate
x
1 x1 f
s s
x2
x f
2
f = x1 ⊕ x2 Truth table
CMOS implementation
0 0 0
0 1 1
x1
1 0 1 f = x1 ⊕ x2
x2
1 1 0
x1
x2
f = x1 ⊕ x2
NOR plane
S1
VDD
S2
VDD
S3
NOR plane f1 f2
f1 fm
General structure of a PLA (Programmable Logic Array).
x1 x2 x3
f1 = x1 x2 + x1 x3 + x1 x2 x3
Programmable
connections
OR plane
P1
P2
P3
P4
AND plane
OR plane
P1
P2
P3
P4
AND plane
P1
f1
P2
P3
f2
P4
AND plane
- Programmable switches present 2 difficulties in manufacturing
- PAL (Programmable Array Logic): programmable AND plane,
fixed OR plane -> less flexibility than PLA
Select
Enable
f1
Flip-flop
D Q
Clock
To AND plane
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
PAL-like block
- A CPLD consists of
many PAL-like blocks
D Q
interconnected via
switches
-A commercial CPLD has
D Q
2-100 PAL-like blocks
- Each PAL-l.b. has 3
macrocells.
D Q - Each macrocell some
OR gates ….
To computer
Printed
circuit board
0/1 x1 x2 f1
f
0/1 0 0 1
0 1 0
0/1
1 0 0
x2 1 1 1
A three-input LUT.
LUT Extra Circuit
Select
Out
Flip-flop
In1
In2 LUT D Q
In3
Clock
- Two-input LUTs x1
- Four wires in each
routing channel x1 0 x2 0
- Fig. shows 0 f1 1 f2
0 0
programmed states of x2 x2
1
x3
0
the L.Bs. & switches
+ Blue switches: ON
+ Black switches: OFF
f1 = x1 x2
f1 0
f 2 = x2 x3 1
1
f
f2
1
f = f1 + f 2
x1 f2
x2
x3
f1
x1
x2
x3