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
ABCandDrepresent theTop PortRight PortBottom PortandLeft Porton the front side. The remaining nodesabcd, andOare 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
Atoathrough 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 fromatoAthrough 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
Otocthrough 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
cis 5 V, and it receives 3 V from nodeO, the voltage of nodecwill 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
ABC, andDto theTop portRight portBottom port, andLeft porton 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, nodeAwill 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 cthrough wire26, and finally conducted to node Cthrough wire6, which will output 5 V at the bottom port.

