mux
A multiplexer: its output is whichever data input its select lines choose.
mux

#Attributes
colourThe symbol's colour.
paintAlso written:
colorhiddenDeclared but not drawn, and taking no room while hidden.
Default
false#Derived attributes
Computed while the element renders — read one with #id.name in attribute position or {{#id.name}} in prose, never set.
levelThe level of its output.
#Allowed content
Body { }Words set inside the symbol; usually empty
#Allowed in
#Examples
mux#m{}#Notes
- The data inputs are
d0tod3on its back, each numbered beside its wire and placed where its source stands. - The select line is
select(ors0) and enters one side, withs1on the other. Two data inputs need one select line, three or four need both. - A wire names the port it lands on after the id,
wire(from: #s; to: #m.select); a wire that names none takes the next free data input. - With a select line unknown, the output is still known when every input it might be choosing agrees.