Professional Documents
Culture Documents
Logic Gates 5,6
Logic Gates 5,6
Binary logic
Binary variables +
X , y , z
logic operators.
The difference between binary arithmetic and binary logic. binary arithmetic
binary logic
OR : 1 + 1 =
Addition :1 + 1 = 10 Multiplication : 1 . 1 = 1
AND AND
:1.1= 1 :1.0= 0 1 = 0 0 = 1
NOT: 1 = NOT: 0 =
OR
X 0 0 1 1 Y 0 1 0 1
X+Y
NOT
X 0 1 X 1 0
0 0 0 1
0 1 1 1
Logic Gates
Inverter AND Gate OR Gate Exclusive-OR Gate NAND Gate NOR Gate Exclusive-NOR Gate
prepared by : maher al-omari
The Inverter
Truth table
0 = LOW 1 = HIGH
Pulsed waveforms
Truth table
0 = LOW 1 = HIGH
Pulsed waveforms
The output of an AND gate is HIGH only when all inputs are HIGH.
prepared by : maher al-omari
The OR Gate
Truth table
0 = LOW 1 = HIGH
Pulsed waveforms
The output of an OR gate is HIGH whenever one or more inputs are HIGH
prepared by : maher al-omari
The OR Gate
Truth table
0 = LOW 1 = HIGH
Pulsed waveforms
The output of a NAND gate is HIGH whenever one or more inputs are LOW.
prepared by : maher al-omari
Truth table
0 = LOW 1 = HIGH
Pulsed waveforms
The output of a NOR gate is LOW prepared by : maher al-omari or more inputs are HIGH. whenever one
Exclusive-OR Gate
Truth table
0 = LOW 1 = HIGH
Pulsed waveforms
The output of an XOR gate is HIGH whenever the prepared by : maher al-omari two inputs are different.
Exclusive-NOR Gate
Truth table
0 = LOW 1 = HIGH
Pulsed waveforms
The output of an XNOR gate is HIGH prepared by : maher al-omari whenever the two inputs are identical.
convention