A NAND gate is a logic gate used to build digital logic circuits.
It is a combination of an AND and NOT gate. The name refers to this. The NAND gate is a “universal gate”, that means all other types of logic gates can be obtained by wiring exclusively one or more NAND gates in a particular manner.
Given two inputs, A and B, A NAND B will be true if at most one of A and B is true. In other words, A NAND B is false if both A and B are true, and true otherwise.
INPUT | OUTPUT | |
A | B | A ⊼ B |
0 | 0 | 1 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
There are three symbols for drawing NAND gates in electrical circuit schematics: the "distinctive shape" symbol, the “military” symbol, and the “rectangular” symbol. For more information see logic gate symbols.
Since a NAND gate is a universal gate, microprocessors can be built using this type of gate only. For example:
This article uses material from the Wikipedia Simple English article NAND gate, which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). Content is available under CC BY-SA 4.0 unless otherwise noted. Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki Simple English (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.