The full adder

You will learn

Why three trits still fit one sum trit and one carry trit.

A full adder adds a carry from the place below. Three trits sum to -3..3, and that range is always 3 x carry + sum with both still single trits; the spec's test checks all 27 cases. The lesson spec in the player is a different machine: ternary_full_adder.t27 builds a binary full adder out of ternary neurons, the way the repository's FPGA BitNet work does. Same word, two meanings, both runnable.

Open the interactive lesson →