Digital Systems Section 3 Boolean Algebra. Digital Systems Section 3 Boolean Algebra.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Chapter 2 Logic Circuits.
ECE 331 – Digital System Design Boolean Algebra (Lecture #3) The slides included herein were taken from the materials accompanying Fundamentals of Logic.
ECE 331 – Digital System Design
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
Digital Logic Review: Part II
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra.
Computer Organization
Digital Logic Circuits – Chapter 1 Section 1-3, 1-2.
CHAPTER 2 Boolean Algebra
Binary Logic and Gates Binary variables take on one of two values.
Boolean Algebra and Digital Circuits
Computer Science 210 Computer Organization Introduction to Boolean Algebra.
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
Why? What’s Boolean algebra used for? –“The purpose of Boolean algebra is to facilitate the analysis and design of digital circuits.” Express a truth table.
KFUPM COE 202: Digital Logic Design Combinational Logic Part 1 Courtesy of Dr. Ahmad Almulhem.
Discrete Mathematics CS 2610 September Equal Boolean Functions Two Boolean functions F and G of degree n are equal iff for all (x 1,..x n )  B.
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
© BYU 03 BA1 Page 1 ECEn 224 Boolean Algebra – Part 1.
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
Laws of Boolean Algebra Commutative Law Associative Law Distributive Law Identity Law De Morgan's Theorem.
BOOLEAN ALGEBRA – Digital Circuit 1 Choopan Rattanapoka.
Module –I Boolean Algebra Digital Design Amit Kumar Assistant Professor SCSE, Galgotias University, Greater Noida.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Lecture 18: Boolean Algebra Boolean Functions. w = Chris is allowed to watch television x = Chris's homework is finished y = it is a school night z =
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Combinational Logic Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
©2010 Cengage Learning SLIDES FOR CHAPTER 3 BOOLEAN ALGEBRA (continued) Click the mouse to move to the next page. Use the ESC key to exit this chapter.
CHAPTER 2 Boolean algebra and Logic gates
Boolean Algebra & Logic Gates
ECE 301 – Digital Electronics
Logic Gates and Logic Circuits
Chapter 11 (Part 1): Boolean Algebra
Computer Science 210 Computer Organization
De Morgan’s Theorem,.
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Gate Circuits and Boolean Equations
CHAPTER 3 BOOLEAN ALGEBRA (continued)
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Boolean Algebra – Part 1 ECEn 224.
Give qualifications of instructors: DAP
SLIDES FOR CHAPTER 2 BOOLEAN ALGEBRA
FIGURES FOR CHAPTER 2 BOOLEAN ALGEBRA
Optimized Implementation of Logic Function
Lecture 3: Boolean Algebra
CHAPTER 2 Boolean Algebra
Boolean Algebra.
Optimized Implementation of Logic Function
Lecture 14: Boolean Algebra
Chapter 2 Boolean Algebra and Logic Gate
COE 202: Digital Logic Design Combinational Logic Part 1
Computer Science 210 Computer Organization
February 7, 2002 John Wawrzynek
Boolean Algebra Introduction CSCI 240
Digital Systems Section 12 Binary Adders. Digital Systems Section 12 Binary Adders.
Optimized Implementation of Logic Function
CHAPTER 3 BOOLEAN ALGEBRA (continued)
ECE 352 Digital System Fundamentals
BOOLEAN ALGEBRA.
Circuit Analysis Procedure by Dr. M
Presentation transcript:

Digital Systems Section 3 Boolean Algebra

Lecture Digital Systems Boolean Algebra Boolean Algebra is a mathematical system for formulating logical statements with appropriate symbols, so that logical problems can be solved algebraically (in a manner similar to ordinary algebra). Boolean Algebra is the mathematics of digital systems. Boolean Algebra is introduced by an english mathematician, George Boole (1815-1864). The widespread use of Boolean Algebra is initiated by an american mathematician, Claude Shannon (1916-2001). In 1937, as a Master Student, he demonstrated that electrical applications of Boolean Algebra could construct any logical numerical relationship. He is credited with founding both digital computer and digital circuit design theory. George Boole credential: bring a computer die photo wafer : This can be an hidden slide. I just want to use this to do my own planning. I have rearranged Culler’s lecture slides slightly and add more slides. This covers everything he covers in his first lecture (and more) but may We will save the fun part, “ Levels of Organization,” at the end (so student can stay awake): I will show the internal stricture of the SS10/20. Notes to Patterson: You may want to edit the slides in your section or add extra slides to taylor your needs. Claude Shannon

Lecture Digital Systems Boolean Algebra The variables in Boolean Algebra are the truth values of True (1) and False (0). The main operations of Boolean Algebra are The conjunction (and, ·) The disjunction (or, +) The negation (not, ’) credential: bring a computer die photo wafer : This can be an hidden slide. I just want to use this to do my own planning. I have rearranged Culler’s lecture slides slightly and add more slides. This covers everything he covers in his first lecture (and more) but may We will save the fun part, “ Levels of Organization,” at the end (so student can stay awake): I will show the internal stricture of the SS10/20. Notes to Patterson: You may want to edit the slides in your section or add extra slides to taylor your needs.

Rules of Boolean Algebra Lecture Digital Systems Rules of Boolean Algebra Rule Number Boolean Expression 1.a 0 · 0 = 0 1.b 1 + 1 = 1 2.a 1 · 1 = 1 2.b 0 + 0 = 0 3.a 0 · 1 = 1 · 0 = 0 3.b 0 + 1 = 1 + 0 = 1 4.a If x = 0, then x' = 1 4.b If x = 1, then x' = 0

Rules of Boolean Algebra Lecture Digital Systems Rules of Boolean Algebra Rule Number Boolean Expression Property 5.a x · 0 = 0 Annulment 5.b x + 1 = 1 6.a x · 1 = x Identity 6.b x + 0 = x 7.a x · x = x Idempotent 7.b x + x = x 8.a x · x’ = 0 Complement 8.b x + x’ = 1 9 (x’)’ = x Double Negation

Rules of Boolean Algebra Lecture Digital Systems Rules of Boolean Algebra Rule Number Boolean Expression Property 10.a x · y = y · x Commutative 10.b x + y = y + x 11.a x · (y · z) = (x · y) · z Associative 11.b x + (y + z) = (x + y) + z 12.a x · (y + z) = x · y + x · z Distributive 12.b x + (y · z) = (x + y) · (x + z) 13.a x + x · y = x Absorption 13.b x · (x + y) = x

Rules of Boolean Algebra Lecture Digital Systems Rules of Boolean Algebra Rule Number Boolean Expression Property 14.a x · y + x · y’ = x Combining 14.b (x + y ) · ( x + y’) = x 15.a (x · y)’ = (x’ + y’) De Morgan’s Theorem 15.b (x + y)’ = x’ · y’ 16.a x + x’ · y = x + y Elimination 16.b x · (x’ + y) = x * y 17.a x · y + x’ · z + y · z = x · y + x’ · z Consensus 17.b (x + y ) · (x’ + z) · (y + z) = (x + y) · (x’+ z)

Rules of Boolean Algebra Lecture Digital Systems Rules of Boolean Algebra Principle of Duality “If a Boolean Expression is valid, then the dual of that function is also valid.” A dual of a Boolean Expression is obtained by replacing all + operators with · operators, all · with +, all 1 with 0, all 0 with 1. To reflect the Principle of Duality, all the rules (except Rule 9) are listed in pairs. For the purpose of simplification, the · operator is frequently omitted. If two elements are written next to each other, then it implies the use of and (·). For example: w + x · y = (w + x) · (w + z) is equivalent to w + xy = (w + x)(w + z)

Lecture Digital Systems De Morgan’s Theorem A key theorem in simplifying Boolean Algebra expressions is De Morgan’s Theorem. It states: (x + y)’ = x’ · y’ (x · y)’ = x’ + y’ Prove De Morgan’s Theorem by writing its truth tables.

Precedence of Operations Lecture Digital Systems Precedence of Operations In order to avoid excessive use of parentheses, a convention defines the precedence of the basic operations. It states that, in the absence of parentheses, operations in a logic expression must be performed in the order: NOT, AND, and then OR. For example, in A · B + A’ · C’, complements (’) must be performed first, followed by AND operations (·), followed by OR operation (+). But, in case of A ·( B + A’) · C’, parentheses must be done first, followed by complements (’), followed by OR operation (+) since it is in the parentheses, followed by AND operations (·).

Boolean Simplification Lecture Digital Systems Boolean Simplification Simplify F = AB’ + C’D + AB’ + C’D. F = AB’ + C’D + AB’ + C’D = AB’ + C’D (Rule 7) Simplify F = ABC + ABC’ + A’C. F = ABC + ABC’ + A’C = AB(C+C’) + A’C (Rule 12) = AB(1) + A’C (Rule 8) = AB + A’C (Rule 6)

Method to Complement a Function Lecture Digital Systems Method to Complement a Function De Morgan’s Theorem can be used to get a complement of a function. The steps are: Change F to F’, or F’ to F Change OR to AND Change AND to OR Complement each individual variable Find the complement of F = AB + C’D + B’D. F = AB + C’D + B’D F’ = (A’ + B’) · (C + D’) · (B + D’) (Rule 15)

Boolean Simplification Lecture Digital Systems Boolean Simplification Simplify F = (x1 + x3) · (x1’ + x3’). F = (x1 + x3) · (x1’ + x3’) = x1·x1’+ x1·x3’ + x3·x1’+ x3·x3’ (Rule 12) = x1·x3’ + x1’·x3 (Rule 8) Simplify F = x’yz + x’yz’ +xz. F = x’yz + x’yz’ + xz = x’y(z + z’) + xz (Rule 12) = x’y ·(1) + xz (Rule 8) = x’y + xz (Rule 6)

Boolean Simplification Lecture Digital Systems Boolean Simplification Find the complement of F = x + yz + xz. F’ = x’ · (y’ + z’) · (x’ + z’) A Simplify F = x’y’ +x’y + xy. F = x’ + y A

Boolean Simplification Lecture Digital Systems Boolean Simplification Simplify F = C + (B · C)’. F = 1 A Simplify F = (A + C)(AD + AD’) + AC + C. F = A + C A

Boolean Simplification Lecture Digital Systems Boolean Simplification Prove that (A + B)(A’ + B’) = AB’ + A’B. Prove that AC’ + B’ C’ + AC + B’C = A’B’ + AB + AB’.

Venn Diagram Representation Lecture Digital Systems Venn Diagram Representation Venn Diagram is a diagram representing mathematical or logical sets pictorially as circles or closed curves within an enclosing rectangle (the universal set) Common elements of the sets are represented by the areas of overlap among the circles.

Venn Diagram Representation Lecture Digital Systems Venn Diagram Representation Constant 1 Constant 0 x x' Variable x Variable x’

Venn Diagram Representation Lecture Digital Systems Venn Diagram Representation x y x · y x + y x y z x · y’ x · y + z

Exercise with Venn Diagram Lecture Digital Systems Exercise with Venn Diagram Draw and give shade to the Venn diagram of x·(y+z). x y z Draw and give shade to the Venn diagram of x·y + x’y’z. x y z

Exercise with Venn Diagram Lecture Digital Systems Exercise with Venn Diagram Verify xy + x’z + yz = xy + x’z by using Venn diagram. x y z x·y x y z x·y x y z x’·z y x z y·z x y z x’·z y z x x·y + x’·z + y·z y z x x·y + x’·z

Exercise with Venn Diagram Lecture Digital Systems Exercise with Venn Diagram Using Venn diagram, prove that (A + B)(A’ + B’) = AB’ + A’B. Using De Morgan’s theorem, find also the complement of (A + B)(A’ + B’).

Lecture Digital Systems Homework 2 Give the dual of the Boolean expression: (X + Y) · (X’ + Z’) · (Y + Z) Find the complement of: A’(BC’ + B’C) xy + y’z + z’z Using Boolean algebra, simplify this expression: AB + A(B + C) + B(B + C) Determine the expression that defines the shaded area of the following Venn diagram. U W V Deadline: Tuesday, 20 September 2016.