An Easy Way To Remember Logic Gates Outputs

 When we think of multiple inputs logic gates, it is better to use a simple rule to find output of a logic gate. We will talk about six logic gates AND, NAND, OR, NOR, XOR, XNOR, one by one.

AND Gate:

As we know, output of an AND gate is 1 if all inputs are 1. So, we can say that if any bit in the input is 0 then the output will be 0.

NAND Gate:

As we know, NAND is NOT AND i.e. complement of an AND gate. So, if any bit in the input is 0 then the output will be 1.

OR Gate:

As we know, output of an OR gate is 1 if any input is 1.

NOR Gate:

As we know, NOR is NOT OR i.e. complement of an OR gate. So, if all inputs are 0 then the output will be 1.

XOR Gate:

If odd number of inputs are 1 then the output will be 1.

XNOR Gate:

If even number of inputs are 1 then the output will be 1.


Happy reading and Thank you. Meet you soon.


Comments

Popular posts from this blog

Bash Shell In Linux

Creating An Animation Using A Text Editor

expr command In TCL