Logic Gate
Logic Gate
Chapter 10
Logic Gate
• What is Logic gate
AND Gate
Input Output / result
A= 0/ 1 A
X X= 0/ 1
B= 0/ 1 B
X= A AND B
Logic Gate
• Difference type of Logic gate
NOT Gate AND Gate
• Several logic gates combined together form logic circuit that are designed to perform
a specific function.
• The logic gate and logic circuit used truth table to check outputs.
Truth Table
• Truth tables are used to trace the output from a logic gate or logic circuit.
• When constructing truth tables, all possible combinations of 1s and Os which can be
input are considered.
A B
0 0
0 A 1 1
A X X
0 B
A X A B X(output)
0 0 ?
0 ?
0 1 ?
? 1 0 ?
1
1 1 ?
Truth Table
• For logic circuits, the number of inputs can be more than 2. A B C X
• For example :
• The number of the input = 3 0 0 0
• Possible combination= 2 no of input = 23 = 8
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Truth Table
• For the no. of input =4
• Possible combination=24 = 16
Function of Logic gate
NOT Gate
Truth Table
A X A X
0 1
logic notation
1 0
X = NOT A
1 0 0
1 1 1
Function: The output, X, is 1 if: input A AND input B are NOT both 1.
Function of Logic gate
NOR Gate
A Truth Table
X A B X
B
0 0 1
logic notation
0 1 0
X = A NOR B 1 0 0
1 1 0
A B C P Q X
A AND B NOT C P OR Q
0 0 0 0 1 1
Q 0 0 1 0 0 0
0 1 0 0 1 1
1. On the circuit diagram, add temporary letters of each gate’ output (P,Q) 0 1 1 0 0 0
2. Create a blank truth table, allowing space for all the temporary 1 0 0 0 1 1
letters
1 0 1 0 0 0
3. Write into the truth table all the possible unique input
combinations 1 1 0 1 1 1
4. In the truth table, calculate the output at each temporary letter 1 1 1 1 0 1
(each logic gate)
5. able to find the final output for the logic circuit after calculation of
each gate result ( temporary letters)
How to produce a truth table for Logic Circuit
P
R
Pg no . 364
X Act 10.2 ( No 1 (a-e)
Q
0 0 1 0 0 0
0 1 1 1 1 1
1 0 0 1 0 1
1 1 0 1 0 1
Activity 3.2
Produce truth tables for each of the following logic circuits. You are
advised to split them up into intermediate parts to help eliminate
errors.
Input Working Space Output
P A B P Q R X
(A AND (A NOT (P OR
B) OR Q Q)
B)
0 0
R 0 1
Q
1 0
1 1
For the given circuit, draw the truth table.
a. b.
How to design a logic circuit from a given logic
statement/Boolean algebra
Example:1
X= (A AND B) OR ( B NAND C)
Example:2
Example:3
X= (NOT (A NAND B)) OR (B NOR C)
1. X= ( (A NAND B) XOR ( NOT B OR C)) OR (B NOR C)
2. X = ((((NOT A AND B) OR C) AND B) NOR (B OR C))
3. X = (A OR B) OR (NOT A AND B)
4. Y = (NOT A AND NOT B) AND (NOT B OR C)
• For given logic statement , draw logic circuit and truth table
How to design a logic circuit from a given logic statement
X = A AND NOT B
How to create from logic statement/Boolean
algebra from Truth table
Which Boolean expression is represented by the following truth table?
Input Output
A B C X
0 0 0 1 A= 0 and B =0 and C = 0 = NOT A AND NOT B AND NOT C
Pg 370 0 0 1 0
(3,4,5(a)) 0 1 0 0
0 1 1 0
1 0 0 1 A= 1 and B =0 and C = 0 = A AND NOT B AND NOT C
1 0 1 0
1 1 0 1 A= 1 and B =1 and C = 0 = A AND B AND NOT C
1 1 1 0
X = (NOT A AND NOT B AND NOT C ) OR (A AND
NOTE .Join each expression using OR to NOT B AND NOT C) OR ( A AND B AND NOT C)
create final expression
C.
How to design a logic expression, circuit and truth
table from a given problem
A safety system uses three inputs to a logic circuit. An alarm, X, sounds
if input A represents ON and input B represents OFF;
or
if input B represents ON and input C represents OFF.
Produce a logic circuit and truth table to show the conditions which cause the output X to be 1. (Note
ON=1 and OFF=0)
Truth Table
THANK YOU…….