2.4 Logic circuits
Now that we have a sense of how the logic works, we can look at logic circuits. The most basic logic circuits look like binary relationships but more advanced ones implement operations for addition, multiplication, and many other mathematical operations. They also manipulate basic data. Logic circuits implement algorithms and ultimately the apps on your computer or device.
We begin with examples of the core operations, also called gates.
To me, the standard gate shapes used in the United States look like variations on spaceship designs.
Rather than use true and false, we use 1 and 0 as the values of the bits coming into and out of gates.
This gate has two inputs and one output. It is not reversible because it produces the same output with different inputs. Given the 0 output, we cannot know which example produced it. Here are the other gates we use, with example inputs:
The symbol...