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
  The truth table of AND gate



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
 The truth table of OR gate



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
 Truth table of NOT gate




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.
                                                                   

Input A
Input B
Output Y
0
0
1
0
1
1
1
0
1
1
1
0
 Truth table of NAND gate

                                                           


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
 The truth table of XOR table

XNOR gate

The XNOR gate is a combination of XOR and NOT gates. The output of XNOR gate is true if both inputs are same. The XNOR refers equality function gate because the output is true when inputs are equal to each.
                           

Input A
Input B
Output Y
0
0
1
0
1
0
1
0
0
1
1
1
 Truth table of XNOR gate






Plzzzzz press on bell icon and also click on notification for more update












Next topic is (karnaugh map) K-map

Comments

Popular posts from this blog

python pattern programming

Decision making statement in python

javaScript Calculator.