Tap 8 + 5 on your phone's calculator and 13 is on the screen before your finger has left the glass. Nobody inside the phone counted on their fingers. A few dozen tiny switches, wired in the right pattern, settled into the answer by themselves, and the moment you changed a digit they settled again. There was no memory of the last sum and no ticking clock, only gates that turn the numbers now in front of them into the answer now. Circuits of this kind are called combinational circuits, and the adder is the first, and the most famous, of them.
This chapter teaches you to design one. Written papers love the question: "design a full adder", "design a full adder using two half adders and an OR gate", "what is a half adder? explain with a logic circuit". Each has a method, and the method is the same every time.
By the end of the chapter you'll be able to tell a combinational circuit from a sequential one and say why. You'll follow a six-step recipe that turns any word problem into a drawn circuit. You'll build a half adder, a full adder, a half subtractor and a full subtractor from their truth tables. You'll chain full adders into an adder for numbers of any width, work out in numbers why that chain is slow, and see how carry lookahead makes it fast. And you'll see how a single adder, with a few XOR gates, does subtraction too.
We'll go in four parts, from easy to hard: what "combinational" means and the design recipe; adding two bits; adding many bits and doing it fast; and subtraction, with a borrow or with an adder.