Logic gate
Logic gate
A logic gate is an electronic switch which produces an electrical signal(representing 0 and 1) based one or more input signal using principal of Boolean logic such as AND, OR or NOT.Basic logic gate
Basic logic gate are building block of digital circuit that perform various logical operation such as AND,OR or NOT on binary input.there are following basic logic gate.
AND
OR
NOT
AND gate
The AND gate contains two input such as A and B and gives one output Y. In AND logic gate if both input is true then output is true otherwise false.An AND logic gate can have one or more than inputs. AND gate expressed logically.
Y=A.B
Input A
|
Input B
|
Output Y(A.B)
|
0
|
0
|
0
|
0
|
1
|
0
|
1
|
0
|
0
|
1
|
1
|
1
|
OR gate
The OR gate contains two input such as A and B and gives one output Y. The output of OR gate is true if any one input is true and if both inputs are false than output is false.An OR logic gate can have one or more than inputs. OR gate expressed logically
Y=A+B
Input A
|
Input B
|
Output Y(A+B)
|
0
|
0
|
0
|
0
|
1
|
1
|
1
|
0
|
1
|
1
|
1
|
1
|
NOT gate
The NOT gate one line input and output. NOT gate inverts the value of input for producing the output. For example if we input 0 then output is 1 and if we input 1 than output is 0.It is also known as inverter. logical NOT gate expressed logically.
Input A
|
Input B
|
0
|
1
|
1
|
0
|
Derived logic gate
Derived logic gates are those logic gate that perform logical operations on binary inputs with the help of combination of two or more than logic gates.
NAND
NOR
XOR
XNOR
NAND gate
NAND gate is a series combination of AND and NOT gates. The output of NAND gate is true if any one of the input or both inputs are false,and other hand output is false if both input are true.
Truth table of NAND gate
Input A
|
Input B
|
Output Y
|
0
|
0
|
1
|
0
|
1
|
1
|
1
|
0
|
1
|
1
|
1
|
0
|
NOR gate
NOR gate is a series combination of OR and NOT gates. The output of NOR gate is true if and only if both inputs are false.
Input A
|
Input B
|
Output Y
|
0
|
0
|
1
|
0
|
1
|
0
|
1
|
0
|
0
|
1
|
1
|
0
|
Tuth table of NOR gate
XOR gate
XOR gate is also called Exclusive-OR gate.The output of XOR gate is true if any one of input is true,how ever if the both inputs are same the output is false.The XOR gate refers inequaity function gate,because output is true when the inputs are not equal.
Input A
|
Input B
|
Output Y
|
0
|
0
|
0
|
0
|
1
|
1
|
1
|
0
|
1
|
1
|
1
|
0
|
XNOR gate
Input A
|
Input B
|
Output Y
|
0
|
0
| 1 |
0
|
1
| 0 |
1
|
0
| 0 |
1
|
1
|
1
|
Plzzzzz press on bell icon and also click on notification for more update
Comments
Post a Comment