Logic XOR [TM]
Time-multiplexed bitwise XOR operation. Performs logical XOR (exclusive OR) between two TM inputs or one TM input and a scalar mask. Output is 1 when inputs differ. Supports TM factors from 2 to 32. Pure combinational logic (zero latency).
Introduction
This block performs a bitwise XOR operation on time-multiplexed (TM) data streams. Supports two operation modes:
- TM mode: Both IN1 and IN2 are TM, element-wise XOR per phase
- STD mode: IN1 is TM, IN2 is scalar mask applied to all phases
The operation is purely combinational with zero clock latency:
$$ \mathrm{OUT}(n) = \mathrm{IN1}(n) \oplus \mathrm{IN2}(n), $$
where $\oplus$ represents the logical XOR operation.
Pin Description
Input Size × TM Factor
Input Size × TM Factor
Properties
Set the size of each input in bits
Number of bits per input sample. Range: 1 – 16384.Default: 16
Range: 1 – 16384
Time Multiplexing factor (number of phases)
Time-multiplexing factor. Range: 2 – 32.Default: 4
Range: 2 – 32
Specify if IN2 input is Time Multiplexed (TM) or Standard (STD). STD mode allows using a constant mask applied to all TM phases.
Input mode for IN2: TM or STD.Default: TM
Options: TM STD
Functional description
XOR (exclusive OR) returns 1 when inputs are different, 0 when they are equal.
Truth table:
| IN1 | IN2 | OUT |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Timing
Purely combinational with zero latency.
Typical use cases
- Parity checking
- Bitwise comparison and difference detection
- Pseudo-random number generation
- Error detection codes