Logic

XOR Block

Logical XOR gate - output is 1 if inputs are different

Open XOR in BlockWerk →

# XOR Gate Block

Description

The XOR (Exclusive OR) gate outputs 1 when an ODD number of inputs are true.

Truth Table (2 inputs)

| Input 1 | Input 2 | Output | | ------- | ------- | ------ | | 0 | 0 | 0 | | 0 | 1 | 1 | | 1 | 0 | 1 | | 1 | 1 | 0 |

Truth Table (3 inputs)

| A | B | C | Output | | --- | --- | --- | ------ | | 0 | 0 | 0 | 0 | | 0 | 0 | 1 | 1 | | 0 | 1 | 0 | 1 | | 0 | 1 | 1 | 0 | | 1 | 0 | 0 | 1 | | 1 | 0 | 1 | 0 | | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 |

Mathematical Model

y(t) = u_1(t) \oplus u_2(t)

Parameters

Number of Inputs

Number of inputs to the XOR gate (2-10).

Default: 2

numInputs

Type: number (Default: 2)

Number of Inputs parameter description placeholder.

operation

Type: string (Default: "XOR")

Operation parameter description placeholder.

Logic

Key Property

Typical Applications

Examples

Remarks

See Also