Half adder: one XOR and one AND — circuit to expression

coresum output reads back as A ⊕ B

Answer

A′ · B + A · B′ (output column 0110)

Why this example is worth doing

A two-output circuit, which is where reading a schematic stops being a single expression. The tool reports one expression per output — A ⊕ B for sum and A·B for carry — and the page insists on that framing because students trained on single-output problems try to combine them. It is also the first circuit on the page with a name attached to it, and the link to the adders page carries the netlist across so the same drawing can be read with its K-maps beside it.

Try your own input in the Logic circuit → expression. Wire up gates and read the Boolean expression and truth table back out.

How the answer is reached

Gate list

Gate list — columns Node, Gate, Inputs
NodeGateInputs
sumxorA, B
carryandA, B

Quine–McCluskey

Prime implicants — Quine–McCluskey
#Term
1A′ · B
2A · B′
Minimum cover — Quine–McCluskey
#Cover
1A′ · B + A · B′
Warning:

2 term(s), 4 literal(s); 2 essential prime implicant(s).

Truth table

Truth table — columns #, A, B, F
#ABF
0000
1011
2101
3110

Compare with

Open the Logic circuit → expression

This input is entered in the tool itself — it is too rich for a link to carry.

Note:

Notation this page assumes

  • Symbols: · is AND, + is OR, ⊕ is XOR, a prime or an overline is NOT. The field also takes ∧ ∨ ¬ ~ ! & | and the words.
  • Operator precedence, tightest first: NOT, then AND (including juxtaposition), then XOR/XNOR, then NAND/NOR, then OR, then IMPLIES, then IFF.
  • Gate symbols follow whichever standard the header toggle is set to: ANSI/IEEE Std 91-1984 distinctive shapes, or IEC 60617-12 rectangles.

Sources

  • Shannon, “A Symbolic Analysis of Relay and Switching Circuits” (1938)
  • ANSI/IEEE Std 91-1984, Graphic Symbols for Logic Functions