Implementation Using Logic Gates and
Implementation Using Logic Gates and
18B11EC215
Lecture 7
Implementation using Logic Gates and
Standard forms
1
Outline
▪ Universal Gates: NAND and NOR
▪ Standard Forms
▪ Canonical Form
▪ SOP
▪ POS
▪ Conversion between canonical forms
2
Universal Gates: NAND and NOR[1,3]
▪ AND/OR/NOT gates are sufficient for building any Boolean functions.
▪ We call the set {AND, OR, NOT} a complete set of logic.
▪ However, other gates are also used because:
(i) usefulness
(ii) economical on transistors
(iii) self-sufficient
3
NAND Gate
▪ NAND gate is self-sufficient (can build any logic circuit with it).
▪ Therefore, {NAND} is also a complete set of logic.
▪ Can be used to implement AND/OR/NOT.
▪ Implementing an inverter using NAND gate:
x x'
4
NAND Gate[2]
▪ Implementing AND using NAND gates:
(x.y)'
x ((xy)'(xy)')' = ((xy)')' idempotency
x.y
y = (xy) involution
x'
x ((xx)'(yy)')' = (x'y')' idempotency
x+y = x''+y'' DeMorgan
= x+y involution
y
y'
5
NOR Gate[2]
▪ NOR gate is also self-sufficient.
▪ Therefore, {NOR} is also a complete set of logic
▪ Can be used to implement AND/OR/NOT.
▪ Implementing an inverter using NOR gate:
x x'
6
NOR Gate[2]
Implementing AND using NOR gates:
x'
x
x.y
((x+x)'+(y+y)')'=(x'+y')' idempotency
y
y' = x''.y'' DeMorgan
= x.y involution
(x+y)'
x
x+y
y
((x+y)'+(x+y)')' = ((x+y)')' idempotency
= (x+y) involution
7
Implementation using NAND gates[1,2,3]
▪ Possible to implement any Boolean expression using NAND gates.
Procedure:
(i) Obtain sum-of-products Boolean expression:
e.g. F3 = xy'+x'z
(ii) Use DeMorgan theorem to obtain expression using 2-level NAND
gates
e.g. F3 = xy'+x'z
= (xy'+x'z)' ' involution
= ((xy')' . (x'z)')' DeMorgan
8
Implementation using NAND gates contd.
x (xy')'
y'
F3
x'
z (x'z)'
9
Implementation using NOR gates[1,2,3]
▪ Possible to implement any Boolean expression using NOR gates.
Procedure:
(i) Obtain product-of-sums Boolean expression:
e.g. F6 = (x+y').(x'+z)
(ii) Use DeMorgan theorem to obtain expression using 2-level NOR gates.
e.g. F6 = (x+y').(x'+z)
= ((x+y').(x'+z))' ' involution
= ((x+y')'+(x'+z)')' DeMorgan
10
Implementation using NOR gates contd.
x (x+y')'
y'
F6
x'
z (x'+z)'
F6 = ((x+y')'+(x'+z)')' = (x+y').(x'+z)
11
Standard Forms
▪ x, x' , y, y'
A product term or a logical sum (OR) of A sum term or a logical product (AND) of
several product terms. several sum terms.
x, x,
x.(y+z'),
x+y.z',
(x+y').(x'+y+z),
x.y'+x’.y.z,
(A+B).(A'+B')
A.B+A'.B'
Neither
F1 = ΠM(0,1,2,3,4,5,7) =(x+y+z).(x+y+z’)(x+y'+z).(x+y'+z’)(x’+y+z)(x’+y+z’)(x’+y’+z’)
F2 = ΠM(0,2,3) = (x+y+z).(x+y'+z).(x+y'+z’)
F3 = ΠM(0,2,6,7)
= (x+y+z).(x+y'+z).(x'+y'+z).(x'+y'+z')
Conversion of POS from standard to
canonical form
■ Expand noncanonical terms by adding 0 in terms of missing variables (e.g., x.x’ = 0)
and using the distributive law
■ f1(a,b,c) = (a+b+c)•(b’+c’)•(a’+c’)
= (a+b+c)•(aa’+b’+c’)•(a’+bb’+c’)
= (a+b+c)•(a+b’+c’)•(a’+b’+c’)•(a’+b+c’)•(a’+b’+c’)
= (a+b+c)•(a+b’+c’)•(a’+b’+c’)•(a’+b+c’)
Conversion Between Canonical Forms [1]
terms
■ Replace ∑ with ∏ (or vice versa) and replace those j’s that appeared in the
original form with those that do not.
■ Example:
f1(a,b,c) = a’b’c + a’bc’ + ab’c’ + abc’
= m1 + m2 + m4 + m6
= ∑m(1,2,4,6)
= ∏M(0,3,5,7)
= (a+b+c)•(a+b’+c’)•(a’+b+c’)•(a’+b’+c’)
Implementation of SOP Expressions[1]
▪ Sum-of-Products expressions can be implemented using:
❖ 2-level AND-OR logic circuits
❖ 2-level NAND logic circuits
▪ AND-OR logic circuit
A
B
F = AB + CD + E
C
F
D
25
Implementation of SOP Expressions
contd.
▪ NAND-NAND circuit (by circuit
transformation) A
a) add double bubbles B
b) change OR-with- C
inverted-inputs to NAND F
D
& bubbles at inputs to
their complements E
A
B
C
F
D
E'
26
Implementation of POS Expressions[1]
▪ Product-of-Sums expressions can be implemented using:
❖ 2-level OR-AND logic circuits
❖ 2-level NOR logic circuits
▪ OR-AND logic circuit
A
B
G = (A+B).(C+D).E
C
G
D
27
Implementation of POS Expressions
contd.
A
B
C
G
D
E'
28
References
[1] M. Morris Mano and Michael D. Ciletti, “Digital Design with an Introduction to the
Verilog HDL,” 5th Edition, Pearson Education,2013.
[2] Reshu Gupta, Amit Gupta ,Atul Kumar Sharma “ Switching Theory(Digital
Electronics)”, Tech India Publication Series, Satya Prakashan, New Delhi.
[3] R. P. Jain, “Modern Digital Electronics,” 4th Edition, Tata McGraw-Hill Education,
2009.
29