Lesson Plan: Boolean Algebra and Logic Gates
Lesson Plan: Boolean Algebra and Logic Gates
Learning outcomes: At the end of the lecture, the students will have a
knowledge of different types of Boolean operators and fundamental gates,
truth table and logic circuit design.
2
Importance of Boolean Algebra
Boolean logic is a form of algebra in which all
values are reduced to either TRUE or FALSE.
Boolean algebra is extremely important in
computer sciences, such as programming,
database querying and computer engineering,
as electrical signals at the most basic level are
translated to and from binary (true/false, 1/0,
on/off, closed/open, etc).
Boolean Algebra is used to analyze and
simplify the digital (logic) circuits. It uses
only the binary numbers i.e. 0 and 1. It is
also called as Binary Algebra or logical
Algebra.
Output
Input 1 0
Input 0 1 Output
13
Truth Table for NOT Gate
The truth table for a NOT gate is the simplest of
all Truth Tables and is shown below:
Input Output
0 1
1 0
14
2.The AND gate.
Inputs Output
A B Q
0 0 0
0 1 0
1 0 0
1 1 1
• We can see that the output is only at a Logic 1
when Input A AND Input B are at a Logic 1.
Q
The truth table for the three-input AND gate is shown below:
Inputs Output
A B C Q
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1
• We can see that the output is only at a Logic 1
when Input A AND Input B AND Input C are at
a Logic 1.
A
Q
B
The truth table for the two-input OR gate is shown below:
Inputs Output
A B Q
0 0 0
0 1 1
1 0 1
1 1 1
Q
Truth Table for three-input OR gate
Inputs Output
A B C Q
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
• We can see that the output is at a Logic 1
when either Input A OR Input B OR Input C OR
any combination are at a Logic 1.
If you compare this truth table with that for the AND
gate, you will find that the output Q is the exact
opposite to the AND gate.
The Boolean expression for a 2 input NAND gate is:
Q=AB
Construct Truth Tables for 3-input and 4-
input NAND gates with their symbols and
Boolean expressions.
5.The NOR gate
The symbol for a two-input NOR gate
Truth Table for two-input NOR gate
Inputs Output
A B Q
0 0 1
0 1 0
1 0 0
1 1 0
If you compare this truth table with that for the OR gate, you
will find that the output Q is the exact opposite of the OR gate.
• Q = A ⊕ B or
• Q = A.B +A.B
8. Universal logic gates
1. Equation to Circuit
To convert a Boolean expression to a gate
circuit, evaluate the expression using standard
order of operations: multiplication before
addition, and operations within parentheses
before anything else.
Examples: A+C
• B (A+C)
AB+BC (B+C)
Circuit to Equation
Example:
Problem: Draw the circuit diagram for the equation AB + (AC)ʹ.
Write down the corresponding Boolean expression for following circuit.
Exercises:
Q A.B A.B
Q A B
QA Q A.B
Q A B
1. Which expression is correct for an AND gate. ……
2. Which expression is correct for a NOT gate. ……………
3. Which expression is correct for a NOR gate. ……………
4. Which two expressions are correct for an EXOR gate.
……… & ………
5. Which expression is correct for a NAND gate. ………
6. Which two expressions are correct for an XNOR gate.
……… & ………
7. Which expression is correct for an OR gate. ……………
Look at the following logic symbols
labelled A – G.
a) Which is the correct symbol for an AND gate. ……………