Six (6) Types of Logic Gates
Six (6) Types of Logic Gates
Six (6) Types of Logic Gates
1. NOT Gate:
Truth Table:
2. AND Gate:
• AND Gate produces ‘1’ as an output only and only if all inputs are ‘1’.
• If anyone input is '0' then the result will be '0'.
• It is represented by A.B.
3. OR Gate:
Logic Notation: X = A OR B
Boolean Algebra X = A + B
Truth Table:
4. NAND Gate:
Boolean Algebra X =
Truth Table:
5. NOR Gate:
Boolean Algebra X =
Truth Table:
6. XOR Gate:
• It is also known as Exclusive OR Gate.
• It produces ‘1’ in output if, (A is ‘1’ AND B is ‘0’) OR (A is ‘0’ AND B is ‘1’).
Logic Notation: X = A XOR B
Boolean Algebra X =
Truth Table:
Logic Circuits:
Steps:
1. First, add temporary output letters after each logic gate in a circuit as shown below:
2. Now find out the values of these new letters first i.e. K,L & M.
3. As you can see from the figure, that K is NOT A.
4. L is the output of A OR B
5. M is the output of K AND L.
6. And the final output will be M AND L.
7. This can also be written in the equation as X =
8. Therefore, it is advisable to solve in the same sequence and you will get your truth table easily.
Note: Just as you can make a boolean equation by seeing the logic circuit you can also create a
logic circuit from the equation.
Practice Exercise: Create a logic circuit and truth table for the following: