Basic Gates and Boolean Algebra
Basic Gates and Boolean Algebra
Boolean Algebra
Topics to be covered
• Logic Gates (NOT, AND, OR, NAND, NOR, XOR, XNOR)
• Rules of Boolean Algebra
• DeMorgan’s Theorem
VH (max) 5V
High (Binary 1) Logic-1=4.5V-5V
VH (min) 4.5V
Unacceptable Range
VL (max) 1.5V
Low (Binary 0)
Logic-0=0-1.5V
VL (min) 0V
voltage
When the input is LOW, the output
is HIGH 0 1
When the input is HIGH, the 1 0
output is LOW time
Pulsed waveforms
5
AND Gate
Symbol
Logic:-The output of an AND gate is
HIGH only when all inputs are
HIGH. For all other cases of input,
Truth table output is low.
voltage
0 1 0 1
0 0 1 1
0 0 0 1
0 = LOW
Pulsed time
1 = HIGH
Boolean output waveforms
N =2𝒏 expression
𝑋 = 𝐴 .𝐵
6
Symbol
The OR Gate
Logic:-The output of an OR gate is
HIGH whenever one or more inputs
are HIGH. For all other cases of input
states , the output is low.
Truth table
voltage
0 1 0 1
0 0 1 1
0 1 1 1
Boolean output
expression
0 = LOW time
1 = HIGH Pulsed
Logical OR wavefor
operator ms
7
UNIVERSAL GATE
The NAND Gate
Symbol
Boolean output
expression
0 1
𝑋 = 𝐴 .𝐵 0 1
1 0
0 = LOW
1 = HIGH Pulsed waveforms
8
UNIVERSAL GATE
The NOR Gate
Symbol
Boolean output
expression
0 = LOW
1 = HIGH
Pulsed waveforms
9
Exclusive-OR (XOR)
Symbol
Pulsed waveforms
0 = LOW
1 = HIGH
The output of an XOR gate is HIGH when there are
ODD number of 1’s on the inputs to the gate
10
Exclusive-NOR Gate (XNOR)
Symbol
Logic:- The output for XNOR gate is LOW when odd
number of inputs are HIGH. For all other cases of
input, output is HIGH.
Truth table
Boolean output
expression
11
1
0
0 1
𝐴 + 𝐵(𝐴 + 𝐴)ҧ
𝐴 + 𝐵. 1 = 𝐴 + 𝐵
𝐴 𝐴 + 𝐵 + 𝐴(𝐴ҧ + 𝐵)
𝐴 + 𝐵 (𝐴ҧ + 𝐵)
= 𝐴 1 + 𝐶 + 𝐵 + 𝐵𝐶
= 𝐴. 1 + 𝐵𝐶
= 𝐴 + 𝐵𝐶
Simplification using boolean algebra
Obama + Obama + Obama = Obama
B(1+C+A+A)+AC
B.1+AC
B+AC
▪ The first theorem is stated as follows:
The complement of a product of variables is equal to the sum of the complements
of the variable.
The formula of this theorem for two variables is written as
𝐗𝐘 = 𝐗 + 𝐘
▪ The second theorem is stated as follows:
The complement of a sum of variables is equal to the product of the complements
of the variables.
The formula of this theorem for two variables is written as
𝐗 + 𝐘 =X . Y
Textbooks:
[1] Thomas L. Floyd, “Digital Fundamentals” 11th
edition, Prentice Hall.
[2] M. Morris Mano, “Digital Logic & Computer
Design” Prentice Hall.