EXOR (Exclusive OR)
N-input logical exclusive OR primitive.
Model
Truth Table
Simic uses a 4-value logic system (0, 1, X, Z). For EXOR gates, the output is 1 if an odd number of inputs are 1. If any input is X or Z, the output is X.
| Input A | Input B | Output Q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
| X | — | X |
| Z | — | X |
Boolean Description
Q = I[1] ⊕ I[2] ⊕ ... ⊕ I[n]
Hazards
- Near Hazard Analysis: Automatic hazard detection identifies potential glitches during multiple input transitions.
Restrictions
- Input Limit: Supports between 1 and 32,767 inputs.
Equivalent Type Statement
Type=EXOR i=I[1:1–32767] o=Q