Multiplexer v1.0
Overview

The states and relations of four ports on the front can be totally controlled by the back input.
Description
The inside design:
- The circles represent voltage nodes. Nodes
A
B
C
andD
represent theTop Port
Right Port
Bottom Port
andLeft Port
on the front side. The remaining nodesa
b
c
d
, andO
are auxiliary nodes. - Dashed lines represent normally open paths, with a total of 10; solid lines represent normally closed paths, with a total of 4.
- Each path consists of two unidirectional wires, each with a switch, making a total of 28 switches.
- The 28 switches can be controlled by the voltage of the back input:
- For normally open paths, for example, if the lowest bit (referred to as the nth bit below) is 1, switch 1 in the diagram will close, the wire controlled by the switch will be conductive; then the voltage can be transmitted from node
A
toa
through this wire. If the 2nd bit is 1, switch 2 in the diagram will close, the wire will controlled by the switch be conductive; then the voltage can be transmitted froma
toA
through this wire, and so on. - For normally closed paths, for example, if the 26th bit is 1, switch 26 in the diagram will open, the wire will be non-conductive; then the voltage will not be able to transmit from
O
toc
through this wire.
- For normally open paths, for example, if the lowest bit (referred to as the nth bit below) is 1, switch 1 in the diagram will close, the wire controlled by the switch will be conductive; then the voltage can be transmitted from node
- When a node receives a new voltage, it performs a bitwise OR operation between this voltage and the voltage of itself, and the voltage of itself becomes the result of this operation. For example, if the voltage of node
c
is 5 V, and it receives 3 V from nodeO
, the voltage of nodec
will become 5 | 3 = 7 V. - When a node's voltage changes, it will transmit the new voltage to other nodes it can conduct to, until all node voltages stabilize. Finally, the results are output based on the voltages of nodes
A
B
C
, andD
to theTop port
Right port
Bottom port
, andLeft port
on the front side. - Whenever the voltage of the back or front input changes, all internal nodes will reset to 0 and recalculate the output.
💡 Example
If the back input is 0x21 V (binary 100001), switches 1 and 6 will close. When the voltage of the top input is 5 V, nodeA
will become 5 V. Because of the conductive wire1
, the voltage will be conducted to node a
, then conducted to node O
through wire21
, then conducted to node c
through wire26
, and finally conducted to node C
through wire6
, which will output 5 V at the bottom port.