Logic gate

From Fox Labs Wiki
Revision as of 14:47, 9 November 2023 by Inari (talk | contribs)
Jump to navigation Jump to search

A logic gate is an idealized or physical device that performs a Boolean function, a logical operation performed on one or more binary inputs that produces a single binary output.

Symbols

Type ANSI symbol Boolean algebra Truth table
Single-input gates
Buffer
Input Output
A Q
0 0
1 1
Inverter or
Input Output
A Q
0 1
1 0
AND gate or
Input Output
A B Q
0 0 0
0 1 0
1 0 0
1 1 1
OR gate or
Input Output
A B Q
0 0 0
0 1 1
1 0 1
1 1 1
NAND gate or
Input Output
A B Q
0 0 1
0 1 1
1 0 1
1 1 0
NOR gate or
Input Output
A B Q
0 0 1
0 1 0
1 0 0
1 1 0
XOR gate or
Input Output
A B Q
0 0 0
0 1 1
1 0 1
1 1 0
XNOR gate or
Input Output
A B Q
0 0 1
0 1 0
1 0 0
1 1 1

See also