| Overall Reading | |
|---|---|
| Brookshear: | pp. 20-23 |
| Decker/Hirshfield: | Mod. 7.3 |
Outline:
How can we determine this? How do we describe the behavior?
One possibility is to draw a truth table of all possible scenarios:
(lets label the three switches as A, B and C, starting from the top.
| A | B | C | result |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 1 |
| 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 1 | 1 | 1 |
But behavior is still not very intuitive. Perhaps if we think about the logic of the circuit it will be more clear. In particular, the key to understanding this particular circuit is looking at switch C.
If C=0,
Alternatively, if C=1,
So this circuit simply lets the signal from either input A or input B
to pass through, where the choice is controled by switch C.
It is called a two-way multiplexor (MUX).
Addition in binary is particularly easy. When you add a column, there are two relevant bits of information as a result.
If we want to design a circuit for this process, it would have the following behavior:
| A | B | sum | carry |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
Here is a circuit which implements the behavior:
[demo Logg-O file]
However, this circuit only works for the rightmost column of the addition, in which there are two bits of input.
For a general column, we must consider the possibility of three bits of input, since a carry may have taken place in the previous column.
Therefore, the circuit above is called a one-bit, half-adder (as shown in Figure 7.7 of [DH]).
A one-bit, full-adder is a circuit designed to do addition on a general column, in which there are three bits of input.
A full-adder can be built by properly combining two half-adders. A schematic is shown in Figure 7.8 of [DH]. (The precise circuit will be built as part of the next assignment.)
We say that a circuit has feedback if the output of a gate might eventually lead back and become input to that same gate!
Though some very bizarre things may happen, if used properly, this technique can lead to circuits that demonstrate a "memory" for the past.
Here is a circuit called a flip-flop, from Figure 1.3 of [Br].
[demo Logg-O file]
Up until now, the output of a circuit has been determined completely
by the current settings of the input switches. The output of a
flip-flop may also depend on the recent history of the input settings.
Specifically, let's examine the output of the circuit in the case where both input switches are off. By examination, we find that
The circuit serves as one bit of memory
Here is a diagram, modified slightly from Figure 7.15 of [DH].
[demo Logg-O file]
Its behavior is as follows: