lunes, 3 de enero de 2011

Logical gate

A logic gate perfoms a logical operation on one or more logic inputs and produces a single logic output. Logic gates are primarily implented electronically using diodes or transistors, but can also be constructed using electromagnetic relays, fluidic logic, pneumatic logic, optics, molecules, or even mechanical elements.

TYPES

Type Distinctive shape Rectangular shape Boolean algebra between A & B Truth table
AND
AND symbol AND symbol A \cdot B
INPUT OUTPUT
A B A AND B
0 0 0
0 1 0
1 0 0
1 1 1
OR
OR symbol OR symbol A + B
INPUT OUTPUT
A B A OR B
0 0 0
0 1 1
1 0 1
1 1 1
NOT
NOT symbol NOT symbol \overline{A}
INPUT OUTPUT
A NOT A
0 1
1 0

NAND
NAND symbol NAND symbol \overline{A \cdot B}
INPUT OUTPUT
A B A NAND B
0 0 1
0 1 1
1 0 1
1 1 0
NOR
NOR symbol NOR symbol \overline{A + B}
INPUT OUTPUT
A B A NOR B
0 0 1
0 1 0
1 0 0
1 1 0

XOR
XOR symbol XOR symbol A \oplus B
INPUT OUTPUT
A B A XOR B
0 0 0
0 1 1
1 0 1
1 1 0
XNOR
XNOR symbol XNOR symbol \overline{A \oplus B} or {A \odot B}
INPUT OUTPUT
A B A XNOR B
0 0 1
0 1 0
1 0 0
1 1 1

No hay comentarios:

Publicar un comentario