NAND

Inputs

PinTypeDescription
AbitFirst input signal
BbitSecond input signal

Outputs

PinTypeDescription
QbitResult: 0 only when A=1 and B=1

How It Works

NAND outputs 0 only when both inputs are 1. It is a universal gate — NOT, AND, OR, and XOR can all be built from NAND gates alone.

Truth Table

ABQ
001
011
101
110

Usage

Available as a basic component. To build a NOT gate: connect both inputs together. To build an AND gate: feed the NAND output into a NOT gate.