Simplification of Boolean Expressions and Universal Gates
Simplification of Boolean Expressions and Universal Gates
&
Universal Gates
Tawsif Ibne Alam
▪ A large Boolean Logic Expression can often be simplified to a simpler and shorter
Boolean Logic Expression. This is done by applying the laws and rules of Boolean
Algebra.
▪ Using Boolean algebra techniques, simplify this expression:
𝐀𝐁 + 𝐀 𝐁 + 𝐂 + 𝐁 𝐁 + 𝐂
A.(B+C)
B+C
B.(B+C)
ҧ
𝐴𝐵𝐶 + (𝐴 + 𝐴)ҧ 𝐵ത 𝐶ҧ + 𝐴𝐶(𝐵 + 𝐵)
ത
𝐴𝐵𝐶ҧ + 𝐵ത 𝐶ҧ + 𝐴𝐶
ҧ
𝐴𝐶 + 𝐴𝐵𝐶 + 𝐵ത 𝐶ҧ
𝐶(𝐴 + 𝐴𝐵)ҧ + 𝐵ത 𝐶ҧ
𝐶(𝐴 + 𝐵) + 𝐵ത 𝐶ҧ ҧ
As (𝐴 + 𝐴𝐵)=A+B
𝐴𝐶 + 𝐵𝐶 + 𝐵ത 𝐶ҧ
Universal Gates
• Although we can implement any circuit with AND/OR/NOT, we can
also implement any circuit with only NAND or NOR gates.
• We might want to do this because of technology considerations, that
is, these gates might be cheaper to implement in silicon or they
might be the only type of gates we have available.
• Since we can always use only NAND or NOR gates, these gates are
sometimes called universal gates.
• The “trick” (if you want to call it that) is to see that we can implement
the three basic gates (AND, OR, NOT) in terms of NAND or NOR gates.
Universal Property of NAND and NOR gate
The NAND gate as a Universal logic gate:
𝐴. 𝐴 = 𝐴ҧ
𝐴.ҧ 𝐵ത = 𝐴ҧ + 𝐵ത = 𝐴 + 𝐵
The NOR gate as a Universal logic gate:
• 1) One NOR gate used as an inverter (NOT gate):
Solution:
Implementation using NAND gates ONLY:
C
D
E
(ii) Replace each basic gate with its equivalent NAND gate implementation from Table 1.
A’’=A
A’
(iii) Cancel two consecutive NOT equivalent gates (according to Boolean algebra).
A
(iv)Redraw the final circuit
A (A.B’)’
[ 𝐴. 𝐵ത . 𝐶]ҧ (𝐴. 𝐵ത + C)
B’
(𝐴. 𝐵ത + C) . 𝐷
(𝐴. 𝐵ത + C) 𝐴. 𝐵ത + 𝐶 . 𝐷. 𝐸ത
C’
𝐴. 𝐵ത + 𝐶 . 𝐷 + 𝐸ധ
𝐴. 𝐵ത + 𝐶 . 𝐷 + 𝐸
𝐸ത
(iii) Cancel two consecutive NOT equivalent gates (according to Boolean algebra).
(iv)Redraw the final circuit.
In Class Activity
• Design the following equation using i) NAND gates only ii) NOR gates
only
• Count the number of gates for each design and comment on which
one is better.
•Y=(A’.B+C)’
i) Basic Gate Design
iii) Final Circuit after
reduction
ii) Replacement
using NAND only
i) Basic Gate Design
iii) Final Circuit after
reduction
ii) Replacement
using NOR only
Comment
• Since after design both the circuits using NAND and NOR gates it is
found that NAND gate design requires 5 gates in the final design
while, the NOR gate design requires only 3 gates. So in my opinion,
NOR gate design is more preferred as it has lesser number of gates
and cost effective.