- A logic gate is an idealized or physical device implementing a Boolean function. Logic gates perform basic logical functions and are the are the fundamental building blocks of digital integrated circuits. Most logic gates take an input of two binary values, and output a single value of a 1 or 0. Some circuits may have only a few logic gates, while others, such as microprocessors, may have millions of them. There are seven different types of logic gates, which are outlined below.
- In the following examples, each logic gate except the NOT gate has two inputs, A and B, which can either be 1 (True) or 0 (False). The resulting output is a single value of 1 if the result is true, or 0 if the result is false.
ØAn AND gate is a logic circuit that performs the AND
Ø The AND gate operation is performed by multiplication of 1s and 0s.
ØThe Boolean expression for AND operation is :
Ø If 0 is called “false” and 1 is called “true”, an output of
AND gate will only get 1 if both input of AND gate is 1.
Otherwise, the output will be always 0 .
Input A
|
Input B
|
Output
|
1
|
||
1
|
||
1
|
1
|
1
|
THE OR GATE
ØAn OR gate is a logic circuit that performs an OR operation on the circuit’s input.
Ø The output is "true" if either or both of the inputs are "true." If both inputs are "false," then the output is "false."
Ø The Boolean expression for OR operation is :
Output = A + B
Input A
|
Input B
|
Output
|
1
|
1
|
|
1
|
1
|
|
1
|
1
|
1
|
ØThe NAND gate is a combination of NOT - AND.
ØIt acts in the manner of the logical operation " and " followed by a negation. The output is "false" if both inputs are "true".
Otherwise the outputs is "true"
ØThe Boolean expression of NAND operation is :
Output = A' . B'
Input A
|
Input B
|
Output
|
1
|
||
1
|
1
|
|
1
|
1
|
|
1
|
1
|
ØThe NOR gate is a combination OR gate followed by an inverter. Its outputs is "true" if both inputs are "false". Otherwise , the outputs is "false"
ØThe Boolean expression of NOR operation is :
Output = A' + B'
Input A
|
Input B
|
Output
|
1
|
||
1
|
||
1
|
||
1
|
1
|
ØThe Boolean expression of XOR operation is :
Output = A . B' + A' . B
Input 1
|
Input 2
|
Output
|
1
|
1
|
|
1
|
1
|
|
1
|
1
|
ØThe XNOR (exclusive-NOR) gate is a combination XOR gate
followed by an inverter. Its output is "true" if the inputs are the
same, and "false" if the inputs are different .
Input A
|
Input B
|
Output
|
1
|
||
1
|
||
1
|
||
1
|
1
|
1
|
0 comments:
Post a Comment