A logic diagram (or logic schematic) shows a circuit as gate symbols joined by lines that stand for wires. It is the third way to describe a function, next to a boolean expression and a truth table, and it is the one closest to real hardware.
Conventions that almost every diagram follows:
- Signals flow left to right. Inputs enter on the left, outputs leave on the right.
- Each gate's inputs attach to its back, and its output leaves from its front.
- Where a wire splits to feed several gates (fan out), the branch point is often marked with a dot.
- Two wires that simply cross without a dot are not connected.
- Inversions are drawn as NOT gates or as bubbles on gate pins.
Going from expression to diagram:
- Find the outermost operation. It becomes the last gate on the right.
- Each operand of that operation is a sub-expression. Draw a gate for each, feeding the last gate.
- Repeat until every wire on the left is a plain input or an inverted input.
Going from diagram to expression is circuit analysis. A diagram shows more than the bare function: the number of gates, how many levels deep the circuit is (which affects propagation delay), and which signals are shared.