| XOR gate | |
| ID | 42 |
|---|---|
| Category | Signal-i2o1 |
| Sublayer width | 14 |
Outputs 1 when exactly one of its input is 1.
The XOR gate is a binary device. If a value of 1 is read from IN0 or IN1, but not from both at the same time, the XOR gate outputs 1. Otherwise it outputs 0. Since this is a binary device, the input value is rounded so any value ≥0.5 is equal to 1.
| IN0 | IN1 | OUT0 |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 1 | 0 |
IN0: Value AIN1: Value BOUT0: A XOR B