Unit 4
Unit 4
The output of AND gate is high (‘1’) if all of its inputs are high (‘1’).
The output of AND gate is low (‘0’) if any one of its inputs is low (‘0’).
Logic Symbol-
The output of OR gate is high (‘1’) if any one of its inputs is high (‘1’).
The output of OR gate is low (‘0’) if all of its inputs are low (‘0’).
Logic Symbol-
The output of NOT gate is high (‘1’) if its input is low (‘0’).
The output of NOT gate is low (‘0’) if its input is high (‘1’).
From here-
It is clear that NOT gate simply inverts the given input.
Since NOT gate simply inverts the given input, therefore it is also known
as Inverter Gate.
Universal Logic Gates-
Universal logic gates are the logic gates that are capable of
implementing any Boolean function
without requiring any other type of gate.
1. NAND Gate-
Logic Symbol-
An odd number of logic “1’s” on its inputs gives a logic “1” at the output.
These two inputs can be at logic level “1” or at logic level “0” giving us
the Boolean expression of:
Q = (A ⊕ B) = A.B’ + A’.B
Ex-NOR
An Even number of logic “1’s” on its inputs gives a logic “1” at the output.
These two inputs can be at logic level “1” or at logic level “0” giving us
the Boolean expression of:
Q = (A ⊕ B) = A.B + A’.B’
Using Boolean algebra simplification of Boolean function
Rule-1
Rule-2
x + xy =x
Similarly there are other property which can prove but we will remember only without
proving.
A+BC=(A+B)(A+C)
AB+BC(B+C)=B(A+C)
A+B(A+C)+AC=A+BC
A+B(A+C)+AC=?
DE MORGAN THEOREM
DeMorgan’s theorems state the same equivalence in “backward” form: that inverting
the output of any gate results in the same function as the opposite type of gate (AND
vs. OR) with inverted inputs:
DeMorgan’s First theorem proves that when two (or more) input variables
are AND’ed and negated, they are equivalent to the OR of the complements of the
individual variables. Thus the equivalent of the NAND function will be a negative-OR
function, proving that A.B = A+B. We can show this operation using the following table
DeMorgan’s Second Theorem
DeMorgan’s Second theorem proves that when two (or more) input variables
are OR’ed and negated, they are equivalent to the AND of the complements of
the individual variables. Thus the equivalent of the NOR function is a negative-
AND function proving that A+B = A.B, and again we can show operation this
using the following truth table.
Karnaugh Maps
• Any two adjacent cells in the map differ by ONLY one variable,
which appears complemented in one cell and
uncomplemented in the other.
• Example:
m0(=x1’x2’) is adjacent to m1(=x1’x2) and m2(=x1x2’) but NOT m3
(=x1x2)
Cell Adjacency
CD
00 01 11 10
AB
00
01
11
10
K-Map SOP Minimization
For above
rule group
Overlapping
is applicable
Mapping Directly from a Truth Table
I/P O/
P C
A B C X 0 1
AB
0 0 0 1
0 0 1 0 00 1
0 1 0 0
0 1 1 0 01
1 0 0 1 11 1 1
1 0 1 0
1 1 0 1 10 1
1 1 1 1
Don’t Care Conditions
• The approaches are much the same (as SOP) except that with
POS expression, 0s representing the standard sum terms are
placed on the K-map instead of 1s.
Design of combinational digital circuits
Inputs Output
A B C X X (3,5,6,7)
0 0 0 0 0
X
1 0 0 1 0 BC
2 0 1 0 0 A 00 01 11 10
3 0 1 1 1 0 0 0 1 0
4 1 0 0 0 1 0 1 1 1
5 1 0 1 1
6 1 1 0 1
7 1 1 1 1 X AC AB BC
A B C