[MUX_BO] Multiplexer 1 of n for BOOL values

Description

This instruction is a multiplexer with the function "1 of n" for input values of data type BOOL.

The number of IN input parameters can be changed.

Depending on the input value K, one of the input parameters IN0 to INp is output at the output parameter OUT.

Example:

With K = 2, the input value IN2 is output at output parameter OUT.

Troubleshooting

ENO = 0 and OUT = 0, if K > (n - 1) or K < 0.

Parameters

Parameters

Declaration

Data type

Description

Default

K

Input

INT

Selection value

0

INp

0 ≤ p ≤ (n - 1)

Input

BOOL

Input value "p"

0

OUT

Output

BOOL

Output value

0