Logical expression of exclusive OR operation

Logical expression: F=AB'⊕A'B((AB'⊕A'B)'=AB⊙A'B', ⊙ is "same or" operation)

The truth table of the XOR logic is shown in Figure 1.

What is the use of XOR operation? Binary XOR algorithm

Show, its logical symbol is shown in Figure 2. The relationship of XOR logic is: when AB is different, the output P=1; when AB is the same, the output P=0. “⊕” is an XOR operator, and XOR logic is also a combination of OR and Logic. The logical expression is:

P=A⊕B

As can be seen from Figure 1, the rule of the XOR operation is

0⊕0=0,0⊕1=1

1⊕0=1,1⊕1=0

Mouth: Same as 0, different from 1

In fact, XOR is defined in English as either one (isone), butnotboth, that is, when only one is true (1), it is true (1).

What is the use of XOR operation? Binary XOR algorithm

What is the use of XOR operation?

XOR operations are commonly used in computers. XOR logic symbols are generally used in xor, and are also useful:

True false = true

False ⊕ true = true

False fake = false

Really true = false

Or for:

True⊕False=True

False⊕True=True

False⊕False=False

True⊕True=False

Some computer languages ​​use 1 for true, 0 for false, so two bytes are XORed as follows

What is the use of XOR operation? Binary XOR algorithm

Here are two binary values ​​for XOR calculation:

In reality, all decimal values ​​are used, so let's take a look at how two decimal values ​​are XORed:

What is the use of XOR operation? Binary XOR algorithm

5⊕3=?

1. Convert the values ​​to binary before performing the XOR calculation:

5 and 3 are converted to binary respectively: 0101, 0011

What is the use of XOR operation? Binary XOR algorithm

2. Convert the result 0110 to decimal: 6

3. So 5⊕3=6

The nature and use of the XOR operation

Two numbers exchange:

A simple way to exchange without using the third number:

What is the use of XOR operation? Binary XOR algorithm

An exclusive OR operation is its own inverse operation, that is, for any two Boolean variables or numbers (axorb) xorb=a. Therefore, there are the following exchange methods: supplement, the simple nature of the XOR operation:

What is the use of XOR operation? Binary XOR algorithm

1.a⊕a=0

2.a⊕b=b⊕a

3.a⊕b⊕c=a⊕(b⊕c)=(a⊕b)⊕c;

4.d=a⊕b⊕c can be launched a=d⊕b⊕c.

5.a⊕b⊕a=b.

6. If x is a binary number 0101, y is a binary number 1011

Then x⊕y=1110

The result is 1 only if the two compared bits are different, otherwise the result is 0.

That is, "the same is 0, the difference is 1"! Except for the above properties, XOR has a elimination law: a^b=b^c=”a=b, and the AND, OR operation does not satisfy this property.

Binary exclusive OR algorithm

XOR operation, common symbol A text to understand the binary XOR algorithm "or" A text to understand the binary XOR algorithm "To show that its operation rules are:

A text to understand the binary XOR algorithm

It can be seen that when the logical operation variables of the two phases are the same, the result of XOR is 0. When the values ​​are different, the result of XOR is 1.

Panasonic Insertion Machine

Panasonic understands manufacturers` challenges in adapting to the demands of increasingly wider market segments. So Panasonic designed a common platform that incorporates jumper wire and radial solutions in both the high-density and high-speed arenas, and an expanded axial solution with built-in jumper wire flexibility.



Radial Insertion Machine,Universal Radial Insertion Machine,Panasonic Radial Insertion Machine,Panasonic Insertion Machine

Shenzhen Keith Electronic Equipment Co., Ltd. , https://www.aismtks.com