Professional Documents
Culture Documents
AND
[condition1]
Message1
AND
[condition2]
Message2
AND
AND
AND
AND
AND
Async Message
AND
AND
a
a
and
one
and
and
3
1
a
b
The only
picture of
after the
the chart
this:
AND
This combination gate could be described this way: For the output to be on, one input AND the other input must both
be on. Thus this type of gate has a name, and in the tradition of the informal terminology invented by computer
people, because it reminds us of what the word AND means, it is simply called an AND gate. Now to fill in a few
details purposely left out above, the original gate we looked at works like the AND gate except the output is the
opposite, or the negative of the AND gate. Thus it is called a Negative AND gate, or just a NAND gate for short.
The simple gate that had both inputs tied together also has its own name. The output is always the opposite of the
one input, that is, if the input is on, the output is not on (off.) If the input is off, the output is not off (on.)
The output is always NOT what the input is, thus, it is called a NOT gate.
Notice the difference between the diagrams of the AND gate and the NAND gate. They are the same except that there is
a little circle at the beginning of the output of the NAND gate. The thing that looks like a large letter D means
to do the AND function, which means to take action only if both inputs are on, and the little circle means switch
to the opposite. So an AND gate is on if both inputs are on, a NAND gate is off if both inputs are on. The NOT gate
starts with a triangle, which just means take the input and turn it into an output. The circle then means to switch
to the opposite.
The AND gate is used a lot in computers, and it is probably the easiest to understand, but we looked at the NAND
gate first for two reasons. The first and less important reason is that the NAND gate is the easiest gate to build.
When you have to build a large number of gates, it will be cheaper and more reliable if you can use the type of gate
that is easiest to build. The second, and very important reason that we looked at the NAND gate first is this: That
everything in a computer that makes it a computer, can be made out of one or more NAND gates. We have already seen
that the NOT gate and the AND gate can be made out of NAND gates, and we will see a few more interesting
combinations as we go along. But every one of them is based on this silly little thing called a NAND gate.