Avinash Singh Computer Learning What is a logic gate and what are its types?

What is a logic gate and what are its types?

What is a logic gate and what are its types? post thumbnail image

Logic gates

Logic gates are the basic building blocks of any digital system. Logic gates are electronic circuits. It has one or more inputs and only one output. The relationship between input and output is based on a particular logic.

In this, the input and output are in binary form, that is, the value of input / output will be only 0 (low) and 1 (high).

You can also read: What Is Boolean Algebra In Computer Science

Types of logic gates

Generally, there are three types of logic gates –

  1. AND gate
  2. OR gate
  3. NOT gate

There are many other types of logic gates which are based on these three logic gates. like :-

NAND GATE, NOR GATE, XOR gate.

AND Gate

AND GATE has two or more inputs but only one output. The output of AND GATE is high only when all the inputs are high. AND GATE performs the multiplication operation on two or more inputs. The operation of AND GATE is represented by (.).

Ex: X= A AND B
X= AB

Logical Diagram of AND Gate

What is a logic gate and what are its types?
What is a logic gate and what are its types?

Truth Table of And

ABA.B
000
010
100
111
What is a logic gate and what are its types?

OR GATE 

OR GATE consists of two or more input signals and only one output signal. It is called OR GATE because the output is high when any one input or all the inputs are high. In OR GATE, addition operation is performed on two or more inputs. OR GATE operation is represented by (+) symbol.

Ex: X=A OR B
X= A+B

Logic Diagram of OR Gate

What is a logic gate and what are its types?
What is a logic gate and what are its types?

Truth Table of OR Gate

ABA+B
000
011
101
111
What is a logic gate and what are its types?

Not Gate

NOT GATE has only one input and one output because its output state is opposite to the input state. That is, the input is high when the output is low. NOT GATE is also called complement, negation or inverter. The NOT GATE operation is displayed with a bar or (¯) symbol.

Ex: X = NOT A
X = A’

Logic Diagram of NOT Gate

What is a logic gate and what are its types?
What is a logic gate and what are its types?

Truth Table of NOT Gate

AA’
01
10
What is a logic gate and what are its types?

NAND GATE

On adding an AND GATE with NOT GATE, a new GATE is obtained which is called NAND GATE. It performs NOT and AND operations. What is NAND GATE is a compliment (¯) of AND GATE.

Ex: X = A NAND B
X = (AB)’

Logic Diagram of NAND Gate

What is a logic gate and what are its types?
What is a logic gate and what are its types?
What is a logic gate and what are its types?
What is a logic gate and what are its types?

Truth Table of NAND Gate

AB(A.B)’
001
011
101
110
What is a logic gate and what are its types?

NOR GATE

It is a combination of NOT and OR GATE. The GATE obtained by adding a NOT GATE and an OR GATE is called NOR GATE. What is NOR GATE is a compliment to OR GATE.

Ex: X = A NOR B
X = (A+B)’

Logic Diagram of NOR Gate

What is a logic gate and what are its types?
What is a logic gate and what are its types?
What is a logic gate and what are its types?
What is a logic gate and what are its types?

Truth Table of NOR Gate

AB(A+B)’
001
010
100
110
What is a logic gate and what are its types?

XOR GATE

XOR GATE is widely used in digital circuits although it is not a basic operation but it can be constructed using basic GATES (AND, OR, NOT) or by using universal GATE (NAND or NOR).

XOR can be used in half adder, full adder, and subtractor. XOR is also called Ex-OR.

Logic Diagram of XOR Gate

What is a logic gate and what are its types?
What is a logic gate and what are its types?

Truth Table of XOR Gate

ABAB
000
011
101
110
What is a logic gate and what are its types?

Conclusion

If you liked this post of logic gates, then share it with your friends. And if you have any questions related to logic gates then you can ask in comment.

You can also visit my Hindi YouTube Channel.

mm
Avinash Singh

I am Avinash Singh, a software engineer from the profession and have been working in the IT industry since 2009. I live in Barabanki district of Uttar Pradesh in India and completed intermediate in 2001 from Ram Sevak Inter College, a UP Board school. After inter I completed my professional degree (BCA & MCA) from Indira Gandhi National Open University, Delhi in 2008 and along with it I did many certifications to keep my knowledge up to date and the next year I started a software development company E – Vision Technocraft Pvt Ltd.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post