
43-
10
REFERENCE DATA FOR ENGINEERS
CHART
3.
SWITCHING-VARIABLE
THEOREMS
INVOLVING
n
VARIABLES
(DeMorgan’s theorems)
(T13)
(T13’)
(XI
i-
X2
+
.
.
‘
f
Xn)’
=
x;X;
.
.
.
XA
(XIX,
.
‘
X,)’
=
Xi
f
Xi
+
’ ’
‘
f
XL
(Generalized DeMorgan’s theorem)
f(X,, X,,
.
.
,
,
X,,
+,
.)‘
=f(X;,
Xi,
. . .
,
XL,
.,
+)
(Expansion
theorem)
f(X,, X,,
.
.
.
,
x,)
=
X~f(l,
x2,
.
.
.
,
x,)
+
x;f(o,
xz,
. . .
2
xn)
f(X,, X,,
. .
.
,
X,)
=
[xi
+f(o,
Xz,
.
.
.
,
x,)l[x; ff(1, xz,
.
.
.
,
Xn)]
(T14)
(T15)
(T15‘)
for the networks of Figs.
6
and
7.
The final expressions
correspond to the networks of Figs. 6C and
7C.
f=x;x;x, +x;x,x; +x;x,x, +x,x;x;
f=x;x;x, +x;x2x, +x;x2x; +x,x;x;
f=x;x~x3+x;x,x3 +x;x,x, +x;x,x; +x,x;x;
f=x;x,(x;+x,) +x;x,(x,+x;) +x,x;x;
f=x;x,(l)
+XiX2(1)
+x,x;x;
,f=XiX,
+XiX2
+x,x;x;
f=x;
(X3
+X2)
+x,x;x;
Many of the theorems of ordinary algebra are also
valid for switching algebra. One that is not is the
cancellation law. In ordinary algebra, it follows that
X
=
Z
if
X
+
Y
=
Y
+
Z.
In switching algebra, this is not
true. For example, it is generally true that
X
+
XY
=
X
+
0,
but it is not necessarily true that
XY
=
0.
This can
be easily verified by writing out the tables of combina-
tions forf!
(X,Y)
=
X
+
XY,f2
(X,Y)
=
X
+
0,
andf3
(X,Y)
=
XY.
Similar remarks apply to the situation in
which
XY
=
XZ
does not imply that
Y
=
Z.
GENERAL
GATE
NETWORKS
The previous discussion of gate networks in this
chapter has been concerned solely with networks con-
structed of
AND
gates and
OR
gates. This can be
considered only an introduction to the topic of gate
networks, for other types of gates are equally important.
In this section, networks with other types of gates will
be considered.
Any arbitrary switching function can be realized by a
network of
AND
gates,
OR
gates, and inverters. A
natural question to ask in this connection is whether all
three types of elements are necessary. Inverters are
required if the inputs to the network consist of signals
representing the input variables but not of signals
representing the complements of the input variables.
The situation when signals representing the comple-
ments are available
is
called
double-rail logic,
and when
the complements are not available, the term
single-rail
is used. Both techniques are employed, but for the
purposes of the present discussion it will be assumed
that complements are not directly available (single-rail
logic). The functionf(x)
=
x‘
cannot be realized by a
network of
AND
gates and
OR
gates only.
Arbitrary functions can require inverters, but maybe
AND
gates and inverters can realize any function. That
OR
gates are not necessary is easily demonstrated, for it
is possible to construct a network having the function
of an
OR
gate and using only
AND
gates and inverters.
This is done by making use of DeMorgan’s theorem-
X
+
Y
=
(X’Y’)‘-as
illustrated in Fig.
8.
Thus, any
network consisting of
AND
gates,
OR
gates, and invert-
ers can be changed into a network containing only
AND
gates and inverters by using the replacement shown in
Fig.
8
to remove the
OR
gates. By duality, a similar
technique can be used to remove the
AND
gates instead.
Since it is not possible to use only inverters to realize
arbitrary functions, a minimum set
of
elements has now
been determined. Because it is possible to construct a
network containing only
AND
gates and inverters for any
arbitrary function, the
AND
gate and inverter are said to
form a
complete gate
set.
Similarly, the
OR
gate and
inverter form a complete gate set.
The two operations of the
AND
function and the
complement can be combined in a single gate, the
NAND
gate, shown in Fig.
9.
This is a very common inte-
grated-circuit gate. It comprises a complete gate set in
one gate since:
(1)
an inverter is obtained if
all
inputs
are connected to the same source, as in Fig. 9C;
(2)
an
AND
gate is formed by combining two
NAND
gates, as in
Fig. 9D.
Two symbols for the
NAND
gate are shown
in
Fig. 9A.
This is because the basic
NAND-gate
function
(XY)
’
can
also be written as
X’
+
Y’
by using DeMorgan’s
Theorem (T13).
Use
of
the two symbols facilitates
analysis and synthesis using these gates. The small
circles (“bubbles”) in Fig. 9 indicate inversion, and
from a logical standpoint each bubble can be replaced
by an inverter.
**
Y
;-
(A)
OR
gote.
(E)
Inuerter.aND
gate
equiualent
Fig.
8.
Realization
of
an
OR
gate
by
means
of
an
AND
gate
and
inverters.