logDemux

Connection diagram

logDemux
in_0       out
in_1       invOut
...        
in_999        
         
 

Description

The demultiplexer sets its output with the number of the highest logic input of state true.
If no input is connected, or all inputs have state false, output is set to -1.

Inputs

in_0 ... in_999

Typeboolean
N.C.ignored

Inputs 0 to 999 can be connected in any order.
If its state is true, input in sets out to value 0, in_1 to 1 etc.

Outputs

out

Typenumeric

Number 0 to 999 of highest active input, or -1, if no input is active.

invOut

Typeboolean

Output value * -1.