Sunday, April 27, 2014

Logic Gates

A LOGIC GATE is an elementary building block of a digital circuit. Most logic gates have two inputs and one output.


The Following are the Basic Logic Gates with its schematic diagram and truth table:



And Gate 
- The AND gate is so named because, if 0 is called "false" and 1 is called "true," the gate acts in the same way as the logical "and" operator. The output is "true" when both inputs are "true." Otherwise, the output is "false."



 
A  B | Output
----------------
0  0  |   0
0  1  |   0
1  0  |   0
1  1  |   1



OR Gate
- he OR gate gets its name from the fact that it behaves after the fashion of the logical inclusive "or." The output is "true" if either or both of the inputs are "true." If both inputs are "false," then the output is "false."



A  B | Output
---------------
0  0  |   0
0  1  |   1
1  0  |   1
1  1  |   1



NOT Gate
- A logical inverter , sometimes called a NOT gate to differentiate it from other types of electronic inverter devices, has only one input. It reverses the logic state.


A  | Output
-----------
0   |   1
1   |   0



NAND Gate
- The NAND gate operates as an AND gate followed by a NOT gate. It acts in the manner of the logical operation "and" followed by negation. The output is "false" if both inputs are "true." Otherwise, the output is "true."




A  B | Output
---------------
0  0  |   1
0  1  |   1
1  0  |   1
1  1  |   0



NOR Gate
- The NOR gate is a combination OR gate followed by an inverter. Its output is "true" if both inputs are "false." Otherwise, the output is "false."



A  B | Output
----------------
0  0  |   1
0  1  |   0
1  0  |   0
1  1  |   0



EXOR Gate
- The 'Exclusive-OR' gate is a circuit which will give a high output if either, but not both, of its two inputs are high.  An encircled plus sign () is used to show the EOR operation.




 A  B | Output
----------------
0  0  |   0
0  1  |   1
1  0  |   1
1  1  |   0


EXNOR Gate
 - The 'Exclusive-NOR' gate circuit does the opposite to the EOR gate. It will give a low output if either, but not both, of its two inputs are high. The symbol is an EXOR gate with a small circle on the output. The small circle represents inversion.



 A  B | Output
-----------------
0   0  |   1
0   1  |   0
1   0  |   0
1   1  |   1












No comments:

Post a Comment