wire

A connection from one part's output to another's input in a logic circuit.

wireNode
On this page
A NOT gate between a switch and a lamp: the wire from the switch is grey at 0, the wire to the lamp lit at 1.A NOT gate between a switch and a lamp: the wire from the switch is grey at 0, the wire to the lamp lit at 1.

#Attributes

fromRequiredImplicit
The part the wire leaves, or one of its outputs by #id.port.
logic-ref
Can be written as shorthand: wire:value
toRequired
The part the wire arrives at, or one of its inputs by #id.port.
logic-ref
label
Inline text set in a chip on the wire's straight run.
hiddenAnimatable
Declares the wire without drawing it or giving it room; it still carries its level.
Defaultfalse

#Allowed in

#Examples

wire(from: #a; to: #x1)
wire(from: #s; to: #m.select)

#Notes

  • A wire carries no arrowhead: its colour is its level, lit in the circuit's high: hue at 1, grey at 0, dashed while unknown.
  • An end that names no port takes the part's next free port.
  • The environment routes a wire as a flowchart's arrows are routed, from the front of one part to the back of the next.
  • cue.draw strokes a wire in.

Last updated