Professional Documents
Culture Documents
Logic-Design-Boolean-Algebra-and-Logic-Gate (2)
Logic-Design-Boolean-Algebra-and-Logic-Gate (2)
Logic-Design-Boolean-Algebra-and-Logic-Gate (2)
2
Logic Gates
3
Logic Gates
4
Logic Gates
5
AND gate (2-input AND gate)
6
AND gate (2-input AND gate)
7
AND gate (3-input AND gate)
8
AND gate (4-input AND gate)
• Homework.
9
AND gate: The laws of Boolean algebra
• The laws of Boolean algebra govern how AND gates operate. The
formal laws for the AND function are:
10
AND gate: exercise 1
• The output waveform would look exactly like the input waveform at
input A.
11
AND gate: exercise 2
• what would the output pulse train look like? (two pulse trains are
being ANDed)
12
OR gate (2-input OR gate)
13
OR gate (2-input OR gate)
14
OR gate (3-input OR gate)
15
OR gate (4-input OR gate)
Homework
16
OR gate: The laws of Boolean algebra
• The bar over the last variable means not A , or the opposite of A .
17
OR gate: exercise 1
• The output waveform would look exactly like the input waveform at
input A.
18
OR gate: exercise 2
• What would the output pulse train look like? (two pulse trains are
being ORed)
19
NOT gate
• A NOT gate is also called an inverter.
• The NOT gate has only one input and one output.
• The input A is inverted (not A)/complement A.
20
NOT gate: The laws of Boolean algebra
21
Other logic gates:
1. NAND gate
2. NOR gate
3. exclusive-OR gate
4. exclusive-NOR gate
• Combining Logic Gates
22
Seven logic gate
• The AND, OR, and NOT gates are the most fundamental.
• Four other useful logic gates can be made from these fundamental
devices; NAND gate, the NOR gate, the exclusive-OR gate, and the
exclusive-NOR gate.
• At the end of this chapter, you will know the logic symbol, truth table,
and Boolean expression for each gate.
23
NAND gate
• The NAND logic symbol is an AND symbol with a small bubble at the
output (invert bubble). The invert bubble provides a simplified
method of representing the NOT gate.
24
NAND gate
25
3-input NAND gate
26
Exercise 1
27
Exercise 2
28
NOR gate
29
NOR gate
30
3-input NOR gate
31
Exercise 1
32
Exercise 2
33
EXCLUSIVE-OR gate (XOR)
34
EXCLUSIVE-OR gate
35
3-input EXCLUSIVE-OR gate
36
Exercise
• What will the pulse train at the output of the XOR
gate?
37
EXCLUSIVE-NOR gate (XNOR)
• The output of an XOR gate is inverted.
38
EXCLUSIVE-NOR gate (XNOR)
• XNOR gate detects even numbers of 1s.
39
3-input EXCLUSIVE-NOR gate (XNOR)
40
Exercise
41
Combining Logic Gates: AND-OR pattern
42
Combining Logic Gates: AND-OR pattern
43
Exercise 1
44
Exercise 1
45
Exercise 2
46