XOR gate (English: Exclusive OR gate, XOR gate for short, also known as EOR gate, ExOR gate) is implemented in digital logicLogical XOROfLogic gate。There are multiple inputs and one output, and the multi input XOR gate can be composed of two input XOR gates.If two inputlevelDifferent, the output isHigh level1;If the two inputs have the same level, the output is low level 0.That is, if the two inputs are different, the XOR gate outputs high level 1.
Although XOR is not one of the basic operations of switch algebra, it is widely used in practical applicationsdiscreteXOR door of.Most switch technologies can not directly realize XOR function, but use multiple door combination design.[1]
Logical expression:(⊕ is the XOR operator)
Truth table:
A
B
Output Y
zero
zero
zero
zero
one
one
one
zero
one
one
one
zero
The "XOR logic" relationship means that when the values of two logical independent variables are different, the function is 1;On the contrary, when the independent variable values are the same, the function is 0.In other words, when two input signals are different, there is an output, but there is no output at the same time.[2]
The exclusive OR gate can realize the addition of modulo 2, so the exclusive OR gate can realize theBinaryAdd.Half adderIt is composed of XOR door andAnd doorComposed of.[3]
Symbol
Announce
edit
The common logic symbols of XOR door are shown in Figure 1 below.The logic function of inverting any two signals (input or output) of XOR gate at the same time without changing the result.In the design of "circle to circle", we choose the symbol that can best express the logical function to be realized.[1]
Figure 1
IEC 60617-12
ANSI/IEEE Std 91-1984
Equivalent symbol of XOR door
application
Announce
edit
Figure 2[2]
XOR gates are widely used in computing circuits and error correction circuits for digital signal transmission.The commonly used XOR gate integrated circuit model is 74LS386, which contains four two input XOR gate circuits. Its pin functions and internal logic structure are shown in Figure 2.