Inverting gates
Categories: logic logic gates
There are two main types of inverting gates - NAND and NOR gates.
NAND gates
A NAND gate (NOT AND) is similar to an AND gate, but it produces the opposite output - if both inputs are 1, the output is 0, otherwise the output is 1.
This is the symbol for a NAND gate:
You can think of the gate as being equivalent to an AND gate followed by a NOT gate:
NAND Truth table
Here is the truth table for a NAND gate:
NOR gates
A NOR gate (NOT OR) is similar to an OR gate, but it produces the opposite output - if either (or both) inputs are 1, the output is 0, otherwise the output is 1.
This is the symbol for a NOR gate:
You can think of the gate as being equivalent to an OR gate followed by a NOT gate:
NOR Truth table
Here is the truth table for a NOR gate:
Video
See also
Sign up to the Creative Coding Newletter
Join my newsletter to receive occasional emails when new content is added, using the form below:
Popular tags
555 timer abstract data type abstraction addition algorithm and gate array ascii ascii85 base32 base64 battery binary binary encoding binary search bit block cipher block padding byte canvas colour coming soon computer music condition cryptographic attacks cryptography decomposition decryption deduplication dictionary attack encryption file server flash memory hard drive hashing hexadecimal hmac html image insertion sort ip address key derivation lamp linear search list mac mac address mesh network message authentication code music nand gate network storage none nor gate not gate op-amp or gate pixel private key python quantisation queue raid ram relational operator resources rgb rom search sort sound synthesis ssd star network supercollider svg switch symmetric encryption truth table turtle graphics yenc