Implementation of Boolean Expression With Logic Gates
Implementation of Boolean Expression With Logic Gates
[PO1]
5
Obtain the AND-OR implementation for F.
6
COMBINATIONAL LOGIC CIRCUIT FROM LOGIC
FUNCTION (CONT.)
C
A F
C
B
A G
NAND CIRCUITS
Two-level implementations
a) Original SOP
b) Implementation with NANDs
AND-OR (SOP) EMULATION
USING NANDS (CONT.)
Verify:
(a) G = WXY + YZ
(b) G = ( (WXY)’ • (YZ)’ )’
= (WXY)’’ + (YZ)’’ = WXY + YZ
MULTILEVEL NAND CIRCUITS
Starting from a multilevel circuit:
1. Convert all AND gates to NAND gates with AND-NOT
graphic symbols.
2. Convert all OR gates to NAND gates with NOT-OR graphic
symbols.
3. Check all the bubbles in the diagram. For every bubble that
is not counteracted by another bubble along the same line,
insert a NOT gate or complement the input literal from its
original appearance.
SOP WITH NAND
F (X,Y,Z) = m(0,6)
1. Express F in SOP form:
F = X’Y’Z’ + XYZ’
2. Obtain the AND-OR implementation for F.
3. Add bubbles and inverters to transform AND-OR to
NAND-NAND gates.
EXAMPLE (CONT.)
AB
AB+C’+D’
E’F(AB+C’+D’)
E’F(AB+C’+D’)+GH
ANOTHER EXAMPLE!
NOR GATE
Also a “universal” gate because ANY digital circuit can be implemented with NOR
gates alone.
This can be similarly proven as with the NAND gate.
NOR CIRCUITS
X Y F = XY
0 0 1
0 1 0
X F
1 0 0
Y 1 1 1
EXCLUSIVE-OR (XOR) FUNCTION
XOR (also ) : the “not-equal” function
XOR(X,Y) = X Y = X’Y + XY’
Identities:
X0=X
X 1 = X’
XX=0
X X’ = 1
Properties:
XY=YX
(X Y) W = X ( Y W)
XOR FUNCTION IMPLEMENTATION
Nonstraightforward:
4 NAND gates
XOR CIRCUIT WITH 4 NANDS