Unit 2 Boolean Algebra
Unit 2 Boolean Algebra
Inputs Output
A A’
0 1
1 0
Logic Gate
A logic gate is an electronic circuit that operates on
one or more input signals to produce an output
signal. It is used for binary operation and is the
basic component of digital computer. It is
embodied into integrated circuit (IC). Each gate
has its specific function and graphical symbol.
The function of gate is expressed by means of an
algebraic expression. In the digital computer,
there are three basic gates, which are:
• AND Gate
• OR Gate
• NOT Gate
Apart from the basic gates, there are other gates
which are derived from basic gates, they are
• NAND gate
• NOR gate
• Exclusive OR (XOR) gate
• Exclusive NOR (XNOR) gate
1. AND Gate:
It is an electronic circuit which produce 1 output
when all the inputs are 1, otherwise the
output will be 0. It has two or more inputs and
produce only one output.
Algebraic expressions: F=A.B Where . Stands for
AND operation, A and B are input and F is
output.
Truth Table
Inputs Output
A B F=A.B
0 0 0
0 1 0
1 0 0
1 1 1
A B
2. OR Gate:
It is an electronic circuit, which produce 1
output when one of the input is 1. If all inputs
are 0, then the output will also be 0. It also
has two or more inputs and produces a single
output.
Algebraic Expression: F=A+B Where + stands for
OR operation, A and B are inputs and F is
output.
Graphical Symbol:
Venn-Diagram
AI
4. NAND Gate
It is the combination of AND and NOT gate. It is
an electronic circuit which produce 0 output
when all inputs are 1, otherwise the output
will be 1. It is the complement of AND gate. It
also has two or more inputs and produces a
single output.
Algebraic expression: F=(A.B)I
Truth Table: Inputs Output
s
A B A.B (A.B)I
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
F=(A.B)
A F=(A.B)I
B
2. NOR Gate
It is the combination of OR gate and NOT gate. It
is an electronic gate which produces 1 output
when all inputs are 0 otherwise, outputs will
be 0. It is the complement of OR gate. It also
has two or more inputs and produces a single
output.
Algebraic Expression: F=(A+B)I
Graphical Symbol:
F=(A+B)I
F=(A+B) F=(A+B)I
Truth Table
Inputs Output
A B A+B F=(A+B)I
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
Venn-Diagram
6. Exclusive-OR (X-OR) Gate:
It is an electronic gate which produces 0 output
when both the inputs are same otherwise, the
output will be 1. It has also two or more inputs
and produce a single outputs.
Algebraic Expression:
F A B A .B A.B
I I
Truth Table
Inputs Output
0 0 1 1 0 0 0
0 1 1 0 1 0 1
1 0 0 1 0 1 1
1 1 0 0 0 0 0
Graphical Symbol
Venn-Diagram
7. Exclusive-NOR (XNOR) Gate:
It is an electronic circuit which produces 1
output when all inputs are either 0 or 1. It is
the complement of XOR gate. It can also have
two or more inputs and a single output.
Algebraic Expression:
F AB A.B A .B I I
Graphical Symbol
Truth Table
Inputs Output
0 0 1 1 0 1 1
0 1 1 0 0 0 0
1 0 0 1 0 0 0
1 1 0 0 1 0 1
Venn-Diagram
De Morgan’s Theorem
• First Theorem:
The De Morgan’s first theorem states that
“The complement of a sum equals to the
product of the complements.”
i.e (A+B)I=AI.BI
To proof:
Graphical Symbol
Conclusion: Comparing the values of (A+B)I and AI.BI from
the truth table, both are equal, hence proved.
Second Theorem
DeMorgan’s second theorem states that “The
complement of a product is equal to the sum
of the complements.”
i.e. (A.B)I=AI+BI
To proof:
Graphical Symbol
Inputs Output 1 Output 2
Conclusion: Comparing the values of (A.B)I=AI+BI from the truth table both
are equal, hence proved.