Looking ahead: prefix adders
You will learn
How a prefix network computes every carry in log2 n levels, and what Kogge-Stone, Sklansky and Brent-Kung pay for it.
The carries of an adder are prefixes of one associative operator, so they can be computed as a tree instead of a chain. The widget draws four networks from the spec's src() function, one dot per prefix cell. At 16 bits ripple needs 15 levels; Kogge-Stone needs 4 levels and 49 cells, Brent-Kung 7 levels and 26 cells, Sklansky 4 levels and 32 cells with a fanout of 8. The spec does not take the counts on trust: covers() replays each network on spans and checks that every column ends up covering bits 0 to i.