TM
Block Preview

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

IN1 Input Variable bit TM
First input data, always TM. Width: Input Size × TM Factor
Default: Must be connected
IN2 Input Variable bit TM
Second input data, TM or scalar.
Default: Must be connected
OUT Output 16 bit TM
XOR result output, always TM. Width: Input Size × TM Factor

Properties

Property window

Input size (bits) InputSize

Set the size of each input in bits

Number of bits per input sample. Range: 1 – 16384.

Default: 16

Range: 1 – 16384

TM Factor TMFactor

Time Multiplexing factor (number of phases)

Time-multiplexing factor. Range: 2 – 32.

Default: 4

Range: 2 – 32

IN2 Mode IN2_Mode

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