mux

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

muxNode
On this page
A two-input multiplexer with its inputs numbered 0 and 1 and its select line entering its side; select is 0, so input 0, which is on, reaches the lit lamp.A two-input multiplexer with its inputs numbered 0 and 1 and its select line entering its side; select is 0, so input 0, which is on, reaches the lit lamp.

#Attributes

colourAnimatable
The symbol's colour.
paint
Also written: color
hiddenAnimatable
Declared but not drawn, and taking no room while hidden.
Defaultfalse

#Derived attributes

Computed while the element renders — read one with #id.name in attribute position or {{#id.name}} in prose, never set.

levelDerived
The level of its output.

#Allowed content

Body { }Words set inside the symbol; usually empty

#Allowed in

#Examples

mux#m{}

#Notes

  • The data inputs are d0 to d3 on its back, each numbered beside its wire and placed where its source stands.
  • The select line is select (or s0) and enters one side, with s1 on 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.

Last updated