Professional Documents
Culture Documents
Topic: Logic Gate and Truth Table
Topic: Logic Gate and Truth Table
Topic
Submitted By A Q IB
Submitted To
Roll Number:
JA V E D
FAWAD JAVED
14090819-025
LOGIC GATE
The AND gate produces a HIGH output when all inputs areHIGH; otherwise,
the output is LOW. For a 2-input gate,
the truth table is
INPUT
OUTPUT
B
0
X
0
A
0
THE OR GATE
The OR gate produces a HIGH output if any input is HIGH;
if all inputs are LOW, the output is LOW. For a 2-input gate,the truth table is
LOGIC GATE
inputs
A
B
0
0
0
1
1
0
1
1
output
X
0
1
1
1
EXAMPLE:-
An alarm system
that attach one room and two windows . when any window or room is open the
alarm is on .circut shown in figure.
Using OR gate
LOGIC GATE
INPU
T
A B
0 0
OUTPU
T
X
1
0
1
1
0
0
0
1
0
1
EXAMPLE:
INPU
T
A B
0 0
0 1
1 0
1 1
OUTPU
T
X
0
1
1
0
Notice that the XOR gate will produce a HIGH only when exactly one
input is HIGH.
EXAMPLE:
LOGIC GATE
circuit produce a different output , which cause the XOR input to be at opposite level
.This condition produce a HIGH on the output of XOR gate , indicating a failure in one of
the circuit.
THE INVERTER:
INPUT
OUTPUT
LOW
(0)
HIGH
(1)
EXAMPLE: SEE
HIGH
EXAMPLE OF
THE EXCLUSIVE-NOR
LOW(0)
(1)
THE BELOW
XNOR GATE.
GATE:
INPUT
A B
0 0
OUTPUT
X
1
0
1
1
0
0
1
1
0
1
EXAMPLE:
LOGIC GATE
THE output waveform for the XOR gate and XNOR gate given the input waveform A
and B as shown in figure.
NOTICE that the XNOR output is high only when both input are same.