Learning Objectives: in This Chapter You Will Learn About
Learning Objectives: in This Chapter You Will Learn About
Boolean algebra
Fundamental concepts and basic laws of Boolean
algebra
Boolean function and minimization
Logic gates
Logic circuits and Boolean expressions
Combinational circuits and design
X Y Z
Postulate 1:
(a) A = 0, if and only if, A is not equal to 1
(b) A = 1, if and only if, A is not equal to 0
(a) x x = 1
(b) x x = 0
For example, in the table below, the second row is obtained from
the first row and vice versa simply by interchanging ‘+’ with ‘.’
and ‘0’ with ‘1’
Theorem:
x+x·y=x
Proof:
L.H.S.
= x x y
= x 1 x y by postulate 2(b)
= x (1 y) by postulate 5(a)
= x (y 1) by postulate 3(a)
= x 1 by theorem 2(a)
= x by postulate 2(b)
= R.H.S.
x + x ·y = x
=
0 0 0 0
0 1 0 0
1 0 0 1
1 1 1 1
x+x=x
Proof:
L.H.S.
=x x
= (x x) 1 by postulate 2(b)
= (x x) (x +X) by postulate 6(a)
= x x X by postulate 5(b)
=x 0 by postulate 6(b)
=x by postulate 2(a)
= R.H.S.
Dual Theorem:
x x=x
Proof:
L.H.S.
=x x
Notice that each step of
=x x 0 by postulate 2(a)
the proof of the dual
= x x x X by postulate 6(b)
theorem is derived from
= x (x + X ) by postulate 5(a) the proof of its
=x 1 by postulate 6(a) corresponding pair in
=x by postulate 2(b) the original theorem
= R.H.S.
Binary variables
W=X + Y· Z
Variable W is a function of X, Y, and Z, can also be
written as W = f (X, Y, Z)
X Y Z W
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
F 2 = x y + x z
F2 has 3 literals (x, y, z) and 2 terms
x y z F1 F2
0 0 0 0 0
0 0 1 1 1
0 1 0 0 0
0 1 1 1 1
1 0 0 1 1
1 0 1 1 1
1 1 0 0 0
1 1 1 0 0
(a ) x x y
(b ) x x y
(c) x y z x y z x y
(d ) x y x z y z
(e) (x . y) . (x + z) . (y + z)
A +A +A +...+A = A A A ...A
1 2 3 n 1 2 3 n
A A A ...A = A +A +A +...+A
1 2 3 n 1 2 3 n
F = xyz+ x y z
1
x+y +z x+y + z
Now we complement each literal giving
1
0 0 1
x` y` z m 1
x y z` M 1
0 1 0
x` y z` m 2
x y` z M 2
0 1 1
x` y z m 3
x y` z` M 3
1 0 0
x y` z` m 4
x` y z M 4
1 0 1
x y` z m 5
x` y z` M 5
1 1 0
x y z` m 6
x` y` z M 6
1 1 1
x y z m 7
x` y` z` M 7
Note that each minterm is the complement of its corresponding maxterm and vice-versa
x x+ y
x+ y z x y+z
xy + x y x y+x y z`
x y z F1
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
x x+ y x+yx+ y
x+ y x + yx+ y+z
x+ y z x+ yx+ y
x y z F1
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
Example:
A
C= A B
B
Inputs Output
A B C=A B
0 0 0
0 1 0
1 0 0
1 1 1
A
C=A+B
B
Inputs Output
A B C=A +B
0 0 0
0 1 1
1 0 1
1 1 1
A A
Input Output
A A
0 1
1 0
A
B C= A ↑B= A B=A +B
Inputs Output
A B C = A +B
0 0 1
0 1 1
1 0 1
1 1 0
Complemented OR gate
A
B C= A ↓B=A B=A ⋅B
Inputs Output
A B C =A ⋅B
0 0 1
0 1 0
1 0 0
1 1 0
The three logic gates (AND, OR, and NOT) are logically
complete because any Boolean expression can be
realized as a logic circuit using only these three gates
A
A
NOT
D= A ⋅B + C
B B+C AND
C
OR
OR
A A B
B
AND NOT
AND
A A ⋅ B
B
A ⋅B + C
C
OR
AND NOT
A A ⋅B A ⋅B
B
AND AND
C C ⋅D
D A ⋅B + C ⋅D + E ⋅F
AND
E E ⋅F E ⋅F
F NOT
A ⋅A = A + A = A
A
(a) NOT gate implementation.
A ⋅A = A
A
A ⋅B A + B A B
B ⋅B = B
B
(c) OR gate implementation.
A A ⋅B
B A ⋅B + C ⋅A + B ⋅D
B B ⋅D
D A +B ⋅D
A
C
C⋅A +B ⋅D
AND
OR
A 1
A ⋅B
B
5
AND OR
B 2
B⋅D
D A+B⋅D
3
A A ⋅B + C⋅A+B⋅D
AND
4
C C⋅A+B⋅D
A
1
B
A ⋅B + C⋅A +B ⋅D
5
B
2
D
3
A
4
C
A A A = A ⋅A = A
A A A=A
A + B A ⋅B A ⋅B
B B =B
B
(c) AND gate implementation.
AN
A D
A ⋅B
1
B OR
5 6
A ⋅B + C ⋅A +B ⋅D
AN
B D
B ⋅D
2
D OR
AN
3 D
A
C ⋅A +B ⋅D
4
C
A +B ⋅D
(b) Step 2: Substituting equivalent NOR functions.
(Continued on next slide)
A 1
B
5 6
A ⋅B + C⋅A +B ⋅D
B 2
D
3
A
4
C
(c) Step 3: NOR implementation.
A C = A ⊕B = A ⋅B+ A ⋅B
B
A C = A ⊕B = A ⋅B+ A ⋅B
⊕
B
Inputs Output
A B C =A ⊕B
0 0 0
0 1 1
1 0 1
1 1 0
A C = A €B = A ⋅B+ A ⋅B
B
Inputs Output
A B C=A €B
0 0 1
0 1 0
1 0 0
1 1 1
Inputs Outputs
A B C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
S = A ⋅B+ A ⋅B
Boolean functions for the two outputs.
C = A ⋅B
A A ⋅B
A
S = A ⋅B+ A ⋅B
B
B A ⋅B
A
B C = A ⋅B
A A ⋅B ⋅D
B
D
A A ⋅B ⋅D
B
D
S
A
B A ⋅B ⋅D
D
A
A ⋅B ⋅D
B
D
A A ⋅B
B
A A ⋅ D C
D
B B ⋅D
D
(b) Logic circuit diagram for carry