Explain all the Logic gates with the truth table.

visit :- allinpython.com  for more practicals

Logic gate is electrical circuit having one or more than one input and only one output. There are seven types of gates and they are:

  1. OR GATE
  2. AND GATE
  3. NOT GATE
  4. NOR GATE
  5. NAND GATE
  6. XOR GATE
  7. XNOR GATE

SYMBOL FOR ALL THE GATES:

OR GATE:

if one or more then one input is one then output is one. In other word output is one when any one or more then one input is one (it is like addition). For more clarification show truth table of OR GATE.

AND GATE:

As name suggest ‘AND’, If all the input is one then and then output is one. It is like multiplication and truth table for AND GATE as shown in below:

NOT GATE:

As name suggest ‘NOT’ means apposite of given input, if input is one then output is zero and when input is zero then output is one. Show the truth table below:

NOR GATE:

NOR gate means NOT-OR, when OR GATE is in order with NOT GATE then resultant will be NOR GATE. In short output of NOR GATE is opposite to the output of OR GATE (in other word perform NOT gate in the output of OR gate to get NOR gate). For more clarification show truth table of NOR GATE.

NAND GATE:

NAND gate means NOT-AND, when AND gate is in order with NOT gate then resultant will be NAND gate. In short output of NAND gate is opposite to the output of AND gate (in other word perform NOT gate in the output of AND gate to get NAND gate). truth table of NAND gate shown below:

XOR (EXCLUSIVE OR): 

If only one input is one then and then output is one. In other word output is zero when inputs are same. Truth table for XOR gate is..

XNOR (EXCLUSIVE NOR): 

Output is one if and only if both the input is same. In other word if input is not same then output is zero. Truth table for XNOR gate shown below.

 

----xxxx-----

visite allinpython.com for more practicals and explainations





 

0 Comments