Cover of Code by Charles Petzold - Business and Economics Book

From "Code"

Author: Charles Petzold
Publisher: Microsoft Press
Year: 2000
Category: Computers

🎧 Free Preview Complete

You've listened to your free 10-minute preview.
Sign up free to continue listening to the full summary.

🎧 Listen to Summary

Free 10-min Preview
0:00
Speed:
10:00 free remaining
Chapter 12: A Binary Adding Machine
Key Insight 2 from this chapter

Design and Implementation of an 8-Bit Binary Adder

Key Insight

An 8-bit binary adding machine is designed to add numbers ranging from 0000-0000 to 1111-1111 (decimal 0 to 255). Its control panel features two rows of eight switches for input, where a switch in the 'off' position represents 0 and 'on' represents 1. The output is displayed via a row of nine lightbulbs, with an unlit bulb indicating 0 and a lit bulb indicating 1. The ninth lightbulb accommodates the potential 9-bit sum, as two 8-bit numbers can result in a sum up to 1-1111-1110 (decimal 510).

The 8-bit adder is constructed by cascading eight 'Full Adders'. The rightmost 'Full Adder' processes the least significant bits of the input numbers, with its 'Carry In' connected to ground (a 0 bit). Its 'Carry Out' then feeds as the 'Carry In' to the next 'Full Adder' in the sequence. This 'ripple carry' architecture continues through all eight 'Full Adders', with each successive 'Full Adder' handling the next pair of bits and incorporating the carry from the preceding column. The final 'Carry Out' from the eighth 'Full Adder' illuminates the ninth lightbulb, representing the most significant bit of the sum. This entire 8-bit adder necessitates 144 relays for its operation.

While the described adder illustrates the fundamental principles, modern computers implement addition with significant advancements. The 'ripple carry' design, where carries propagate sequentially, can be slow. Faster adders incorporate 'look-ahead carry' circuitry to accelerate the process. Crucially, contemporary computers no longer utilize bulky, noisy relays, which were common in early digital machines. Instead, they rely on microscopic transistors. Transistors perform the same logical functions as relays but are dramatically faster, smaller, quieter, more power-efficient, and considerably cheaper, enabling high-performance and compact computing devices.

📚 Continue Your Learning Journey — No Payment Required

Access the complete Code summary with audio narration, key takeaways, and actionable insights from Charles Petzold.