Xor
Logical xor of inputs
Description
Connections
Parameters
Modelica Standard Library
Compute the exclusive-or of the inputs. Two definitions of exclusive-or are supported:
If the Compute parity parameter is false (the default), the output is true if exactly one input is true, otherwise the output is false.
If the Compute parity parameter is true, the output is true if an even number of inputs are true, otherwise the output is false.
The Use vector boolean parameter selects the type of inputs.
If false (the default), the block has two boolean inputs, u1 and u2.
If true, the block has a single boolean vector input, u, and the Signal size parameter sets the dimension of u. Signal size must be greater than 1.
Name
Modelica ID
u1
Boolean input signal 1
u2
Boolean input signal 2
y
Boolean output signal
u
Boolean input vector
Default
Units
Use vector
false
True (checked) means use a single boolean vector input; otherwise use two scalar boolean inputs
useVector
Signal size
2
Dimension of the vector input signal (n>1)
signalSize
Compute parity
True (checked) means return true if and only if an even number of inputs are true; otherwise, return true if and only if exactly one input is true
computeParity
The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.
See Also
Boolean Signal Blocks
Signal Blocks
Download Help Document