CODE
The Hidden Language of Computer Hardware and Software
2nd Edition

Chapter 8. Relays and Gates

A better approach to implementing logical operations in circuits is the use of logic gates, which can be built with simple relays. This chapter demonstrates how these logic gates perform logical operations.

Toggle the state of the switches with mouse clicks or finger taps.

AND Logic Relays (page 72)

Your browser does not support the canvas element.

OR Logic Relays (page 76)

Your browser does not support the canvas element.

Kitten Selector (page 81)

The kitten selector can be built from logic gates rather than switches.

Your browser does not support the canvas element.

Here are two more logic gates that are the inverses of those shown earlier.

NOR Logic Relays (page 82)

Your browser does not support the canvas element.

NAND Logic Relays (page 84)

Your browser does not support the canvas element.

Four Basic Two-Input Gates (page 87)

In this summary of the four basic logic gates, the switches are now shown as simple boxes at the upper-left. They display 0 if the switch is off and 1 if it's on. You can toggle these switches with either mouse clicks or finger taps. Instead of a lightbulb, the output is shown with a circle labeled 0 or 1.

Your browser does not support the canvas element.

Augustus De Morgan’s Laws (pages 89 and 90)

English mathematician Augustus de Morgan established in the 19th century that the various logical operations are intimately related, as this illustration demonstrates.

Your browser does not support the canvas element.