Saturday, 14 July 2012

The OR and XOR Gates


The OR gate is also a two-input, single-output gate. Unlike the AND gate,
the output is 1 when one input, or the other, or both are 1. The OR gate
output is 0 only when both inputs are 0.

A
B
Q=A AND B
0
0
0
0
1
1
1
0
1
1
1
1


A related gate is the XOR, or eXclusive OR gate, in which the output is 1
when one, and only one, of the inputs is 1. In other words, the XOR output
is 1 if the inputs are different.

0 comments:

Post a Comment