Xor - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Xor

Logical xor of inputs

 

Description

Connections

Parameters

Modelica Standard Library

Description

Compute the exclusive-or of the inputs. Two definitions of exclusive-or are supported:

1. 

If the Compute parity parameter is  (the default), the output is  if exactly one input is , otherwise the output is .

2. 

If the Compute parity parameter is , the output is  if an even number of inputs are , otherwise the output is .

The Use vector boolean parameter selects the type of inputs.

• 

If  (the default), the block has two boolean inputs,  and .

• 

If , the block has a single boolean vector input, , and the Signal size parameter sets the dimension of . Signal size must be greater than .

Connections

Name

Description

Modelica ID

Boolean input signal 1

u1

Boolean input signal 2

u2

Boolean output signal

y

Boolean input vector

u

Parameters

Name

Default

Units

Description

Modelica ID

Use vector

 

True (checked) means use a single boolean vector input; otherwise use two scalar boolean inputs

useVector

Signal size

 

Dimension of the vector input signal (n>1)

signalSize

Compute parity

 

True (checked) means return  if and only if an even number of inputs are ; otherwise, return  if and only if exactly one input is

computeParity

Modelica Standard Library

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