Inverting gates

By Martin McBride, 2017-01-04
Tags: not gate nand gate nor gate truth table
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:

gate

You can think of the gate as being equivalent to an AND gate followed by a NOT gate:

gate

NAND Truth table

Here is the truth table for a NAND gate:

table

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:

gate

You can think of the gate as being equivalent to an OR gate followed by a NOT gate:

gate

NOR Truth table

Here is the truth table for a NOR gate:

table

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