DEV Community

Liana Petrosyan
Liana Petrosyan

Posted on

LOGIC GATES

Logic gates are essential elements of all digital systems. In digital electronics, there are seven core types of logic gates utilized to perform diverse logical operations. It is designed by using components like transistors, diodes, resistors, etc. The logic gates can be classified into three core types: Basic logic gates, universal and derived logic gates.
1) Basic Logic Gates:
AND Gate
OR Gate
NOT Gate
2) Universal Logic Gates:
NOR Gate
NAND Gate
3) Derived Logic Gates:
XOR Gate
XNOR Gate

AND Gate is one of the basic logic gates, it generates 1 output and only when all its inputs are 1, otherwise the output is 0.

Image description

OR Gate produces 1 output when one or more are 1. If all inputs are 0, output is 0.

Image description

NOT Gate used to perform complement of an input signal. It takes only one input and one output. The output of the NOT gate is a complement of the input applied to it. Therefore, if the output of NOT gate is 1, input will be 0 and vice versa.

Image description

NOR Gate takes two inputs but one output. It is basically a combination of two basic gates OR gate followed by NOT gate.
NAND Gate performs the inverse operation of the AND gate. The NAND gate can have two inputs but only one output. This gate is also represented as a combination of two basic logic gates AND gate and NOT gate.

Image description

XOR Gate is used to perform modulo sum. XOR gate can take only two inputs and only one output. The output of the XOR gate is 1 only when its two inputs are dissimilar.

Image description

XNOR Gate is a combination of two logic gates XOR gate and NOT gate. It takes only two inputs and produces only one output. THe output of an XNOR gate is 1 when its both inputs are similar.

Image description

Top comments (0)