Components, digital

mux

Every option, pin and variant of mux, as release 1.3.1 of the compiler states them.

Pins

mux specimen1 component and 0 connections.MUXU1in1in2out1selectenable
mux specimen
mux with its default options, pins named.

Pin functions

PinSide
in1left
in2left
out1right
selectbottom
enablebottom

A wire names a pin as ID.pin. Rotating the part moves the pins with it; their names stay the same.

Options

Options go in square brackets after the colour, as name=value. Any option not listed here is an error.

Options

OptionAcceptsDefault
typeOne of 2 values: mux,demuxmux
inputsWhole number from 1 to 32 2 1 when type=demux
outputsWhole number from 1 to 32 1 2 when type=demux
orientationOne of 4 values: right,down,left,upright
fitOnly wiresNone

fit and orientation cannot be written together.

Variants

Pin names depend on the selected variant. Each drawing labels its own pins.

mux specimen1 component and 0 connections.MUXU1in1in2out1selectenable
mux specimen
type=mux

in1 (left),in2 (left),out1 (right),select (bottom),enable (bottom)

mux specimen1 component and 0 connections.DEMUXU1in1out1out2selectenable
mux specimen
type=demux

in1 (left),out1 (right),out2 (right),select (bottom),enable (bottom)

Writing one

mux:U1 at (120, 123) #purple