Professional Documents
Culture Documents
DIGITAL LOGIC DESIGN NO. 1 (Boolean Algebra & Logic Gates) From APCOMS
DIGITAL LOGIC DESIGN NO. 1 (Boolean Algebra & Logic Gates) From APCOMS
&
Logic Gates
Common Postulates (Boolean Algebra)
• Closure
N={1,2,3,4,5,…..}
It is closed w.r.t +
i.e. a+b=c
as a,b,cΣN
• Associative Law
(x*y)*z = x*(y*z)
for all x,y,z,ΣS
• Commutative Law
x*y = y*x for all x,yΣS
x+y = y+x
x+y = y+x x.Y = y.x
Common Postulates (Boolean Algebra)
• Identity Element
e*x = x*e = x xΣS
x+0 = 0+x = x e+x = x+e = x
x.1 = 1.x = x 0+x = x+0 = x
1*x = x*1 = x
• Inverse
x+x’ = 1 x*y = e →a*1/a = 1
x+y = e
x.x’ = 0
a+(-a) = 0
• Distributed Law
x*(y.z) = (x*y) . (x*z)
x.(y+z) = (x.y) + (x.z)
x+(y.z) = (x+y) . (x+z)
Boolean Algebra and Logic Gates
x y x.y x y x+y x x’
0 0 0 0 0 0 0 1
0 1 0 0 1 1 1 0
1 0 0 1 0 1
1 1 1 1 1 1
x.(y+z) = (x.y)+(x.z)
x y z Y+z x.(y+z) x.y x.z (x.y)+x.z
0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 0
0 1 0 1 0 0 0 0
0 1 1 1 0 0 0 0
1 0 0 0 0 0 0 0
1 0 1 1 1 0 1 1
1 1 0 1 1 1 0 1
1 1 1 1 1 1 1 1
Postulates and Theorems of Boolean Algebra
Postulate 2 (a) x+0 = x (b) x.1 = x
x=x+xy
xy’ xy x’y
x’y’
x x y
y
z z
x+(y+z) xy+xz
x y z F1 F2 F3 F4
0 0 0 0 0 0 0
0 0 1 0 1 1 1
0 1 0 0 0 0 0
0 1 1 0 0 1 1
1 0 0 0 1 1 1
1 0 1 0 1 1 1
1 1 0 1 1 0 0
1 1 1 0 1 0 0
z
x F2
x
y F1
z
(b) F2 = x+y’z
(a) F1 = xyz’
x
F3
z
(c) F3 = x’y’z+x’yz+xy’
x
F4
(c) F4 = xy’+x’z
z
(A+B+C)’ = (A+X)’
= A’X’
= A’.(B+C)’
= A’.(B’C’)
= A’B’C’
∴(A+B+C+D+…..Z)’ = A’B’C’D’…..Z’
(ABCD….Z)’ = A’+B’+C’+D’+….+Z’
Example using De Morgan’s Theorem (Method-1)
F1 = x’yz’+x’y’z
F1’ = (x’yz’+x’y’z)’
= (x+y’+z)(x+y+z’)
F2 = x(y’z’+yz)
F2’= [x(y’z’+yz)]’
= x’+(y+z)(y’+z’)
Example using dual and complement of
each literal (Method-2)
F1 = x’yz’ + x’y’z
Dual of F1 = (x’+y+z’)(x’+y’+z)
Complement ⇒ F1’ = (x+y’+z)(x+y+z’)
F2 = x(y’z’+yz)
Dual of F2=x+(y’+z’)(y+z]
Complement =F2’= x’+ (y+z)(y’+z’)
Minterm or a Standard Product
n variables forming an AND term provide 2n possible
combinations, called minterms or standard products
(denoted as m1, m2 etc.).
Variable primed if a bit is o
Variable unprimed if a bit is 1
Maxterm or a Standard Sum
n variables forming an OR term provide 2n possible
combinations, called maxterms or standard sums
(denoted as M1,M2 etc.).
Variable primed if a bit is 1
Variable unprimed if a bit is 0
MINTERMS AND MAXTERMS FOR THREE BINARY VARIABLES
MINTERMS MAXTERMS
x y z Term Designation Term Designation
0 0 0 x’y’z’ m0 x+y+z M0
0 0 1 x’y’z m1 x+y+z’ M1
0 1 0 x’yz’ m2 x+y’+z M2
0 1 1 x’yz m3 x+y’+z’ M3
1 0 0 xy’z’ m4 x’+y+z M4
1 0 1 xy’z m5 x’+y+z’ M5
1 1 0 xyz’ m6 x’+y’+z M6
1 1 1 xyz m7 x’+y’+z’ M7
FUNCTION OF THREE VARIABLES
x y z Function f1 Function f2
0 0 0 0 0
0 0 1 1 0
0 1 0 0 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
f1 = x’y’z+xy’z’+xyz =m1 + m4 + m7
f2 = x’yz+xy’z+xyz’+xyz = m3 + m5 + m6 + m7
MINTERMS AND MAXTERMS FOR THREE BINARY VARIABLES
f1 = x’y’z+xy’z’+xyz
f1’ = x’y’z’+x’yz’+x’yz+xy’z+xyz’
f1 =(x+y+z)(x+y’+z)(x+y’+z’)(x’+y+z’) (x’+y’+z)
= M0.M2.M3.M5.M6
= M0M2M3M5M6
f2 = x’yz+xy’z+xyz’+xyz
f2’ = x’y’z’+x’y’z+x’yz’+xy’z’
f2 = (x+y+z)(x+y+z’)(x+y’+z)(x’+y+z)
= M0 M1 M2 M4
Canonical Form
Boolean functions expressed as a sum of minterms or product of
maxterms are said to be in canonical form.
M3+m5+m6+m7 or M0 M1 M2 M4
Sum of Minterms (Sum of Products)
Example: F = A+B’C
F = A(B+B’)+B’C(A+A’)
= AB+AB’+AB’C+A’B’C
= AB(C+C’)+AB’(C+C’)+AB’C+A’B’C
= ABC+ABC’+AB’C+AB’C’+AB’C+A’B’C
= A’B’C+AB’C’+AB’C+ABC’+ABC
= m1+m4+m5+m6+m7
F(A,B,C)=Σ(1,4,5,6,7)
Similarly
F(x,y,z) = Π(0,2,4,5)
F(x,y,z) = Σ(1,3,6,7)
Standard Forms
Sum of Products (OR operations)
F1 = y’+xy+x’yz’
(AND term/product term)
Standard form of F3
F3=ABC’D’ + A’B’CD
TRUTH TABLE FOR THE 16 FUNCTIONS OF
TWO BINARY VARIABLES
x y F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15
0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
0 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
1 0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Operator
symbols
+ ,
⊂ ,
⊃
F0 = 0 F1 = xy F2 = xy’ F3 = x
F4 = x’y F5 = y F6 = xy’ +x’y F7= x +y
F8 = (x+y)’ F9 = xy +x’y’ F10 = y’ F11 = x +y’
F12 = x’ F13 = x’ + y F14 = (xy)’ F15 = 1
BOOLEAN EXPRESSIONS FOR THE 16 FUNCTIONS OF TWO VARIABLE
AND F=XY X Y F
X 0 0 0
F
Y 0 1 0
1 0 0
1 1 1
OR F=X+Y X Y F
0 0 0
X
F 0 1 1
Y
1 0 1
1 1 1
NAME GRAPHIC ALGEBRIC TRUTH
SYMBOL FUNCTION TABLE
Inverter X F
0 1
X F F=X’ 1 0
Buffer X F
0 0
X F
F=X 1 1
X Y F
X F 0 0 1
NAND Y F=(XY)’
0 1 1
1 0 1
1 1 0
NAME GRAPHIC ALGEBRIC TRUTH
SYMBOL FUNCTION TABLE
X Y F
X 0 0 1
NOR Y F F=(X+Y)’ 0 1 0
1 0 0
1 1 0
X Y F
Exclusive-OR X F F=XY’+X’Y 0 0 0
Y
(XOR) =X⊕Y 0 1 1
1 0 1
1 1 0
Exclusive-NOR X Y F
or X F 0 0 1
Y F=XY+X’Y’
Equivalence 0 1 0
=X Y
1 0 0
1 1 1
(X+Y)’
x
[Z+(X+Y)’]’
Y (X Y) Z=(X+Y) Z’
=XZ’+YZ’
Z
X (X ( Y Z)=X’(Y+ Z)
=X’Y+X’Z
[X+(Y+Z)’]’
(Y+Z)’
Y
Z
(a) There input NOR gate (b) There input NAND gate
A
B
C
F=[(ABC)’. (DE)’]’=ABC+DE
D
E
(c) Cascaded NAND gates
X XOR
Y F=X ⊕ Y ⊕ Z
Z
XNOR
(b) Three input gates Odd
function
Even
(b) Three input exclusive OR gates function
IC DIGITAL LOGIC FAMILIES
TTL⇒ Transistor- Transistor Logic
• Very popular logic family.
• It has a extensive list of digital functions.
• It has a large number of MSI and SSI devices, also has LSI devices.
1 2 3 4 5 6 7 1 2 3 4 5 6 7
GND GND
TTL gates
VCC 2 Some Typical IC Gates
16 15 14 13 12 11 10 9
10107 Triple
Exclusive – OR/
NOR gates
1 2 3 4 5 6 7 8 VEE 2 (-5.2V)
VCC 1
VCC 2
16 15 14 13 12 11 10 9
10102 Quadruple
2-Input NOR gate
VEE (-5.2V)
VCC 1 1 2 3 4 5 6 7 8
(3-15 V)
VDD NC
14 13 12 11 10 9 8
C MOS
GATES
1 2 3 4 5 6 7
NC Vss (GND)
16 15 14 13 12 11 10 9
CMOS
GATES
1 2 3 4 5 6 7 8 Vss
VDD (GND)
(3-15 V)
1 H 0 H
0 L
L 1
Negative Logic
Positive Logic
X y z
0 0 1
x
0 1 1 z
y
1 0 1
1 1 0