Logic Gates and Boolean Algebra-Outline
Logic Gates and Boolean Algebra-Outline
Logic Gates
• Computers are developed using bi-stable devices
such as transistors.
• They can be in only 2 states either ON or OFF.
• A simple switch is an example for such a device
which can either be ON or OFF.
• Electronic gates require a power supply.
• Gate INPUTS are driven by voltages having two
nominal values, e.g. 0V and 5V representing logic 0
and logic 1 respectively.
• The OUTPUT of a gate provides two nominal values
of voltage only, e.g. 0V and 5V representing logic 0
and logic 1 respectively. In general, there is only one
output to a logic gate except in some special cases.
Switch Bulb
Fundamental logic gates
0 0
1. AND are all 1 1
inputs are true?
2. OR is at least one input is true?
3. NOT flip the truth value
Truth Tables
Truth tables are used to help show the function of a logic
gate.
Logic Gates
Digital systems are said to be constructed by using logic
gates.
These gates are the AND, OR, NOT, NAND, NOR, EXOR
and EXNOR gates.
The basic operations are described below with the aid of
truth tables.
(2) OR gate
The OR gate is an electronic circuit that gives a high
output (1) if one or more of its inputs are high. A plus (+)
is used to show the OR operation.
(5) NOR gate
This is a NOT-OR gate which is equal to an OR gate
followed by a NOT gate. The outputs of all NOR gates are
low if any of the inputs are high.
The symbol is an OR gate with a small circle on the
output. The small circle represents inversion.
Boolean algebra
• George Boole (1815-1864) developed an algebra
know an as the Boolean algebra
Boolean multiplication
0.0 = 0
0.1 = 0
1.0 = 0
1.1 = 1
Boolean Theorem
• Commutative Law: In terms of the result, the order in
which variables are ORed or ANDed makes no
difference.
• Associative Law: When ORing or ANDing more than
two variables, the result are the same regardless of
the grouping of the variables.
• Basic Rules
AB + AC = A(B+ C)
11. A + AB = A + B
Universal Gates