Digital Logic Chap 4
Digital Logic Chap 4
1
4.1 Introduction
2
4.2 Boolean Algebra
3
4.2 Boolean Algebra
4
4.2 Boolean Algebra
5
4.2 Boolean Algebra
6
4.2 Boolean Algebra
• As with common
arithmetic, Boolean
operations have rules of
precedence.
• The NOT operator has
highest priority, followed
by AND and then OR.
• This is how we chose the
(shaded) function
subparts in our table.
8
4.2 Boolean Algebra
9
4.2 Boolean Algebra
10
4.2 Boolean Algebra
11
4.2 Boolean Algebra
12
4.2 Boolean Algebra
13
4.2 Boolean Algebra
14
4.2 Boolean Algebra
Simplify further
16
Simplify
P A. ( B C) A(C B)
A
17
Simplify
P A. ( B C) A(C B)
A
18
Karnaugh Map (K map)
• Method for minimizing logic
• Is used to represent the values of a function for different input values
• The rows and columns of the K-map correspond to the possible values of the
function's input
• Each cell in the K-map represents a minterm (i.e. a three variables function
has: x’y’z’, x’y’z, x’yz’, x’yz, xy’z’, xy’z, xyz’ and xyz)
19
x y z O
Karnaugh Map (K map) 0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 0
(xy’ + yz)’
20
LOGIC GATES
21
4.3 Logic Gates
22
4.3 Logic Gates
• The three simplest gates are the AND, OR, and NOT
gates.
24
4.3 Logic Gates
25
4.3 Logic Gates
26
XNOR A B P
0 0 1
XNOR P = A B A
P 0 1 0
B 1 0 0
1 1 1
27
Design example:
Sound the buzzer when either car door is open and the driver is seated
on the seat. The output should be 1 when either OR right door is open
AND the driver is seated.
O= (L+R). S (Boolean Eqn.)
28
Design example:
Sound the buzzer when either car door is open and the driver is seated
on the seat. The output should be 1 when either OR right door is open
AND the driver is seated.
O= (L+R). S (Boolean Eqn.)
R
O
S
29
Exercise
Complete the truth table for this circuit and name the equivalent
primitive function/gate.
A B A+B A.B A.B P
0 0 0 0 1 0
0 1 1 0 1 1
1 0 1 0 1 1
1 1 1 1 0 0
31
COMBINATIONAL CIRCUITS
32
4.4 Digital Components
34
4.5 Combinational Circuits
35
4.5 Combinational Circuits
S= X.Y’+ X’Y
C= X.Y
36
4.5 Combinational Circuits
37
4.5 Combinational Circuits
S=A’BC’+A’B’C+ABC+AB’C’
C= AB+BC+AC
38
4.5 Combinational Circuits
This is a block
diagram for a
decoder.
39
4.5 Combinational Circuits
40
4.5 Combinational Circuits
42
EXERCISE
43
• Design a circuit which which will give an
output 1 when 2 or more buttons are
pressed.
Combinational circuit design steps.
1. Problem definition
2. Truth table
3. K map
4. Boolean equation
5. Logic circuit
44
1. A circuit which will give an output 1 when 2 or more buttons are
pressed.
A B C O
2. Truth Table
0 0 0 0
3. K Map 0 0 1 0
AB 0 1 0 0
00 01 11 10
C 0 1 1 1
0
0 0 1 0 1 0 0 0
1 0 1 1 1 1 0 1 1
1 1 0 1
4. Boolean equation 1 1 1 1
O= A.B+ B.C+ A.C A
5. Logic Circuit
B O
C 45
Karnaugh Map reduction method
46
Exercise
47
Draw K Map
(B) 48
(A)
(B)
49
50
51