The function computes the bitwise exclusive OR between the values of inputs a
and b
. The result of the operation is sent to the output y
.
Example in Python
y = a ^ b
Truth Table:
Operand | Value (DEC) |
Value (HEX) |
Value (BIN) | |||||||
---|---|---|---|---|---|---|---|---|---|---|
bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 | |||
a |
150 | 0x96 |
1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 |
b |
85 | 0x55 |
0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 |
y |
193 | 0xC3 |
1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 |
Function menu | Block diagram |
---|---|
![]() |
![]() |
Name | Type | Description |
---|---|---|
a |
int32 | Operand No. 1 |
b |
int32 | Operand No. 2 |
Name | Type | Description |
---|---|---|
y |
bool | Bitwise exclusive OR result |
Not available