alu

An arithmetic logic unit, drawn for a datapath and computing nothing.

aluNode
On this page
Switches labelled Reg A and Reg B wired to the a and b inputs of an ALU; the ALU computes nothing, so its output wire is dashed and the Result lamp reads a question mark.Switches labelled Reg A and Reg B wired to the a and b inputs of an ALU; the ALU computes nothing, so its output wire is dashed and the Result lamp reads a question mark.

#Attributes

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

#Derived attributes

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

levelDerived
Always absent: an ALU computes nothing here.

#Allowed content

Body { }Words set inside the symbol

#Allowed in

#Examples

alu#alu{ALU}

#Notes

  • It carries words: its output is unknown, so the wires it drives are dashed.
  • Its operands a and b land either side of its notch, and op enters its side.
  • A wire that names no port takes a, then b, so op is always named.

Last updated