Module 6 - Intro To Digital Logic and Digital System
Module 6 - Intro To Digital Logic and Digital System
OBJECTIVES:
LEARNING CONTENTS:
a. Boolean Expression and Function
b. Representing Boolean functions
c. Logic gates
d. Minimization of circuits
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
Boolean Function: A Boolean function typically has one or more input values and
yields a result, based on these input value, in the range {0, 1}.
Truth table: a table that gives all the possible values of logical and the combination
of the variables. It is possible to convert the Boolean equation into a truth table.
The number of rows in the truth table should be equal to 2 n, where “n” is the
number of variables in the equation. For example, if a Boolean equation consists
of 3 variables, then the number of rows in the truth table is 8. (i.e.,) 2 3 = 8.
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
Boolean Laws/Identities
Distributive Law a(b + c) = ab + ac
Associative Law For addition:
a + (b + c) = (a + b) + c
For Multiplication:
(ab)c = a(bc)
Commutative Law For Addition
a+b=b+a
For Multiplication
ab = ba
Identity Law a+0=a
a▪1=a
Complement Law a + 𝑎̅ = 1
a ▪ 𝑎̅ = 0
Idempotent Law a + a= a
a ▪ a= a
Dominance Law a+1=1
a▪0=0
Double Complement Law 𝑎̿ = 1
Absorption Law a + (a ▪ b)= a
a ▪ (a + b)= a
Simplification Law a + (𝑎̅ ▪ b)= a + b
a ▪ (𝑎̅ + b)= a ▪ b
De Morgan’s Law a ▪ b = a̅ + b
̅̅̅̅̅̅̅ ̅
a + b = a̅ ▪ b
̅̅̅̅̅̅̅̅ ̅
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
Any Boolean function can be expressed as a sum of its 1 - minterms and the inverse
of the function can be expressed as a sum of its 0 - minterms.
a b c Term Minterm
0 0 0 𝑎̅𝑏̅𝑐̅ mo
0 0 1 𝑎̅𝑏̅𝑐 m1
0 1 0 𝑎̅𝑏𝑐̅ m2
0 1 1 𝑎̅𝑏𝑐 m3
1 0 0 𝑎𝑏̅𝑐̅ m4
1 0 1 𝑎𝑏̅𝑐 m5
1 1 0 𝑎𝑏𝑐̅ m6
1 1 1 abc m7
Example:
F(a, b, c) = 𝑎̅𝑏̅𝑐̅ + 𝑎𝑏̅𝑐 + 𝑎𝑏𝑐̅ + abc
F(a, b, c) = mo+ m5 + m6 + m7
F(a, b, c) = ∑(0,5,6,7)
Complement:
F̅(a, b, c) = 𝑎̅𝑏̅𝑐 + 𝑎̅𝑏𝑐̅ + 𝑎̅𝑏𝑐 + 𝑎𝑏̅𝑐̅
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
F̅(a, b, c) = m1 + m2 + m3 + m4
F̅(a, b, c) = ∑(1, 2, 3, 4)
Any Boolean function can be expressed as a product of its 0 - maxterms and the
inverse of the function can be expressed as a product of its 1 - maxterms.
a b c Term Maxterm
0 0 0 a+b+c MO
0 0 1 𝑎 + 𝑏 + 𝑐̅ M1
0 1 0 𝑎 + 𝑏̅ + 𝑐 M2
0 1 1 𝑎 + 𝑏̅ + 𝑐̅ M3
1 0 0 𝑎̅ + 𝑏 + 𝑐 M4
1 0 1 𝑎̅ + 𝑏 + 𝑐̅ M5
1 1 0 𝑎̅ + 𝑏̅ + 𝑐 M6
1 1 1 𝑎̅ + 𝑏̅ + 𝑐̅ M7
Example:
F(a, b, c) = (𝑎̅ + 𝑏̅ + 𝑐̅) (𝑎̅ + 𝑏̅ + 𝑐)(𝑎̅ + 𝑏 + 𝑐̅)(a+ b +c)
F(a, b, c) = M7+ M6 + M5 + M0
F(a, b, c) = ∏ (0, 5, 6, 7)
Complement:
F̅(a, b, c) = (𝑎 + 𝑏 + 𝑐̅)( 𝑎 + 𝑏̅ + 𝑐) (𝑎̅ + 𝑏 + 𝑐) (𝑎 + 𝑏̅ + 𝑐̅)
F̅(a, b, c) = M1 + M2 + M3 + M4
F̅(a, b, c) = ∏ (1, 2, 3, 4)
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
AND gate
NOR gate
Inputs Output This gate is the
a b F
combination of OR and
F = ̅̅̅̅̅̅̅
𝑎+𝑏 0 0 1
0 1 0 NOT gate.
1 0 0
1 1 0
XOR gate
Inputs Output XOR gate gives high
a b F
output if either input a
F = (a ⨁ b) 0 0 0
0 1 1 or input b but not both
= 𝑎̅b + a𝑏̅ 1 0 1 are high.
1 1 0
XNOR gate
Inputs Output XNOR gate gives high
a b F
F = ̅̅̅̅̅̅̅̅
𝑎 ⨁𝑏 output if both inputs are
0 0 1
= ab + 𝑎̅𝑏̅ 0 1 0 the same that is, both 0
1 0 0 or both 1.
1 1 1
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
Solution:
F = 𝑥̅ 𝑦̅z + 𝑥̅ yz + x𝑦̅
= 𝑥̅ z (𝑦̅ + y) + x𝑦̅ (Complement Law)
= 𝑥̅ z (1) + x𝑦̅ (Identity Law)
= 𝑥̅ z + x𝑦̅
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
Example 2
Simplify the function F = ((𝑎𝑏𝑐
̅̅̅̅̅)( 𝑏̅ + c)) + 𝑎𝑐
̅̅̅.
Solution:
F = ((𝑎𝑏𝑐
̅̅̅̅̅)( 𝑏̅ + c)) + 𝑎𝑐
̅̅̅
= ((𝑎̅ + 𝑏̅ + 𝑐̅)( 𝑏̅ + c)) + (𝑎̅ + 𝑐̅) (De Morgan’s Law)
= ((𝑎̅ + 𝑏̅ + 𝑐̅)( 𝑏̅ + c)) + 𝑎̅ + 𝑐̅ (Associative Law)
= 𝑎̅𝑏̅ + 𝑏̅𝑏̅ +𝑏̅𝑐̅ + 𝑎̅c + 𝑏̅c + 𝑐̅c + 𝑎̅ + 𝑐̅ (Distributive Law)
= 𝑎̅𝑏̅ + 𝑏̅ +𝑏̅𝑐̅ + 𝑎̅c + 𝑏̅c + 𝑐̅c + 𝑎̅ + 𝑐̅ (Idempotent Law)
= 𝑎̅𝑏̅ + 𝑏̅ + 𝑏̅𝑐̅ + 𝑎̅c + 𝑏̅c + 𝑎̅ + 𝑐̅ (Complement Law)
= 𝑏̅(𝑎̅ + 1) +𝑏̅(𝑐̅ + c) + 𝑎̅(c + 1) + 𝑐̅ (Distributive Law)
= 𝑏̅ +𝑏̅(𝑐̅ + c) + 𝑎̅ + 𝑐̅ (Identity Law)
= 𝑏̅ +𝑏̅ + 𝑎̅ + 𝑐̅ (Complement Law)
= 𝑏̅ + 𝑎̅ + 𝑐̅ or 𝑎̅ + 𝑏̅ + 𝑐̅ (Idempotent Law)
The Karnaugh Map also called as K Map is a graphical representation that provides
a systematic method for simplifying the boolean expressions.
Here, A and B are the two variables of the given boolean function.
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
Here, A, B and C are the three variables of the given boolean function.
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
Here, A, B, C and D are the four variables of the given boolean function.
• We can either group 0’s with 0’s or 1’s with 1’s but we can not group 0’s
and 1’s together.
NOTE
There is no need of separately grouping X’s i.e. they can be ignored if all 0’s and 1’s
are already grouped.
Rule-02:
Rule-03:
Example-
Rule-04:
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
Rule-05:
Example:
Rule-06:
Rule-07:
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
Example 1:
Minimize the boolean function F(A, B, C, D) = Σm(0, 1, 2, 5, 7, 8, 9, 10, 13, 15)
Solution:
F(A, B, C, D)
= BD + 𝐶̅ D + 𝐵̅𝐷
̅
F(A, B, C, D) = BD + 𝐶̅ D + 𝐵̅𝐷
̅
Example 2:
Minimize the boolean function F(A, B, C, D) = Σm(0, 1, 3, 5, 7, 8, 9, 11, 13, 15)
Solution-
F(A, B, C, D)
= D + 𝐵̅𝐶̅
F(A, B, C, D) = 𝐵̅ 𝐶̅ + D
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
Example 3:
Minimize the boolean function-
Solution-
F(A, B, C, D)
+ (𝐴̅𝐵̅ + 𝐴̅B)( 𝐶̅ 𝐷
̅ + C𝐷
̅)
= AD + 𝐵̅D + 𝐵̅ 𝐶̅ + 𝐴̅𝐷
Example 4:
Minimize the boolean function F(A, B, C) = Σm(0, 1, 6, 7) + Σd(3, 5)
Solution-
F(A, B, C)
= 𝐴̅𝐵̅ + AB
F(A, B, C) = AB + 𝐴̅𝐵̅
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
Example 5:
Minimize the boolean function F(A, B, C) = Σm(1, 2, 5, 7) + Σd(0, 4, 6)
Solution-
F(A, B, C)
= 𝐵̅ + A + 𝐶̅
F(A, B, C) = A + 𝐵̅ + 𝐶̅
Example 6:
Minimize the boolean function F(A, B, C) = Σm(0, 1, 6, 7) + Σd(3, 4, 5)
Solution-
F(A, B, C)
= 𝐵̅ + A
F(A, B, C) = A + 𝐵̅
Example 7:
Minimize the boolean function F(A, B, C, D) = Σm(0, 2, 8, 10, 14) + Σd(5, 15)
Solution-
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
F(A, B, C, D)
= (AB + A𝐵̅)C𝐷
̅ + (𝐴̅𝐵̅ + A𝐵̅)( 𝐶̅ 𝐷
̅ + C𝐷
̅)
= AC𝐷
̅ + 𝐵̅𝐷
̅
F(A, B, C, D) = AC𝐷
̅ + 𝐵̅𝐷
̅
Example 8:
Minimize the boolean function F(A, B, C, D) = Σm(3, 4, 5, 7, 9, 13, 14, 15)
Solution-
F(A, B, C, D)
= 𝐴̅B(𝐶̅ 𝐷
̅ + 𝐶̅ D) + (𝐴̅𝐵̅ + 𝐴̅B)(CD) + (AB + A𝐵̅)( 𝐶̅ D) + AB(CD + C𝐷
̅)
Example 9:
Consider the boolean function F(W, X, Y, Z) = Σm(1, 3, 4, 6, 9, 11, 12, 14)
Solution-
F(W, X, Y, Z)
= (𝑊
̅ X + WX)( 𝑌̅𝑍̅ + Y𝑍̅) + (𝑊
̅ 𝑋̅ + W𝑋̅ )( 𝑌̅Z + YZ)
= X𝑍̅ + 𝑋̅Z
=X⊕Z
F(W, X, Y, Z) = X ⊕ Z
Clearly, the given boolean function depends on only two variables X and Z.
COMBINATIONAL LOGIC
- a digital logic that implements Boolean circuits where the output is a
function of the present input alone. The logical function of the current
input state, logic “0” or logic “1”, at any given instant time determines
the outputs of combinational logic.
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
LOGIC DIAGRAM
- shows the wiring and connections of each logic gate, which are
represented by a specific graphical symbol.
ACTIVITIES
1.
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
x
F
y
z
2.
II. Simplify the Boolean expression from the above logic diagrams
using
▪ Algebraic Manipulation
▪ K – Mapping
III. Draw the logic diagram of the function and find for the
simplified Boolean expression of the following:
1. F(a, b, c) = ∑(0, 2, 3, 4, 5, 6)
2. F(a, b, c, d) = ∑(0, 2, 3, 4, 6, 8, 10, 12, 13, 14, 15)
3. F(a, b, c, d) = ∏(1, 2, 4, 5, 6, 7, 10, 11, 13, 15)
SELF – ASSESSMENT
Given:
x
y
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0
MODULE 6: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL SYSTEM IT 123/ IT 51 – Discrete Mathematics
1. Algebraic Manipulation
2. K Map
d. Draw the logic diagram of the simplified expression
References
• Mano, Morris. Digital Design, 5th edition
• Levin, Oscar. DISCRETE MATHEMATICS: AN OPEN INTRODUCTION.
CreateSpace. USA. 2016
• Detlovs, Vilnis et.al. INTRODUCTION TO MATHEMATICS LOGIC. University of
Latvia. USA. 2017
• Lehman, Eric. MATHEMATICS FOR COMPUTEER SCIENCE. 12 th Media
Services. USA. 2017
• https://www.tutorialspoint.com/discrete_mathematics/discrete_mathema
tics_relations.htm
• https://www.cl.cam.ac.uk/teaching/1314/DiscMath/DiscMathNotes.pdf
• https://cseweb.ucsd.edu/~gill/BWLectSite/
• https://arxiv.org/pdf/0805.0585.pdf
ISUR – ICT – InM – 065 Prepared by: ENGR. MARY JANE C. BANIQUED
Effectivity: October 21, 2018
Revision: 0