Digital Logic Design Week 4 Boolean algebra. Laws and rules De Morgan’s theorem Analysis of logic circuits Standard forms Project 1 preparation.

Slides:



Advertisements
Similar presentations
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Advertisements

1 CK Cheng CSE Dept. UC San Diego CS 140, Lecture 2 Combinational Logic.
ECE 331 – Digital System Design Boolean Algebra (Lecture #3) The slides included herein were taken from the materials accompanying Fundamentals of Logic.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
Digital Fundamentals Floyd Chapter 4 Tenth Edition
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Digital Fundamentals with PLD Programming Floyd Chapter 4
Chapter 5 Boolean Algebra and Reduction Techniques 1.
Boolean Algebra. Introduction 1854: Logical algebra was published by George Boole  known today as “Boolean Algebra” 1854: Logical algebra was published.
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
Digital Logic Design ESGD2201
Boolean Algebra and Logic Simplification. Boolean Addition & Multiplication Boolean Addition performed by OR gate Sum Term describes Boolean Addition.
Digital Logic Design Adil Waheed. BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION AND gate F = A.B OR gate F = A + B NOT gate F = A NAND gate F = A.B NOR gate.
Boolean Algebra and Logic Simplification
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Boolean Algebra and Digital Circuits
ECE 331 – Digital System Design
Ch. 4 Boolean Algebra and Logic Simplification
 Seattle Pacific University EE Logic System DesignSOP-POS-1 The Connection: Truth Tables to Functions abcF abcF
1 Digital Logic Design Week 5 Simplifying logic expressions.
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
LOGIC GATES & BOOLEAN ALGEBRA
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 6 – Canonical Forms.
1 BOOLEAN ALGEBRA Basic mathematics for the study of logic design is Boolean Algebra Basic laws of Boolean Algebra will be implemented as switching devices.
Boolean Logic 1 Technician Series Boolean 1.1 ©Paul Godin Created Jan 2015 gmail.com.
CH41 Chapter 4 Boolean Algebra and Logic Simplification By Taweesak Reungpeerakul.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
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.
Module –I Switching Function
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 4 © 2008 Pearson Education.
Chapter 2 Boolean Algebra and Minimization Techniques.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  Boolean postulate  Simplifying boolean equations  Truth tables You will learn: 2.
DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan mohd nor
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
1 Ch. 4 Boolean Algebra and Logic Simplification Boolean Operations and Expressions Laws and Rules of Boolean Algebra Boolean Analysis of Logic Circuits.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
1 3- De-Morgan’s Theorems 1.The complement of a product of variables is equal to the sum of the complements of the variables. 2. The complement of a sum.
ECE DIGITAL LOGIC LECTURE 6: BOOLEAN ALGEBRA Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 02/01/2016.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
DeMorgan’s Theorem DeMorgan’s 2 nd Theorem The complement of a sum of variables is equal to the product of the complemented variables. A + B = A. B Applying.
1 CS 352 Introduction to Logic Design Lecture 2 Ahmed Ezzat Boolean Algebra and Its Applications Ch-3 + Ch-4.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
ECE 301 – Digital Electronics
De Morgan’s Theorem,.
DeMorgan’s Theorem DeMorgan’s 2nd Theorem
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Boolean Algebra & De Morgan's Theorems
Logic Gates and Boolean Algebra
CHAPTER 1 : INTRODUCTION
Boolean Algebra.
Boolean Algebra – Part 1 ECEn 224.
TN 221: DIGITAL ELECTRONICS 1
Digital Logic and Design
Boolean Algebra.
Chapter 2 Boolean Algebra and Logic Gate
Boolean Algebra.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
COMS 361 Computer Organization
Digital Fundamentals Floyd Chapter 4 Tenth Edition
Analysis of Logic Circuits Example 1
Laws & Rules of Boolean Algebra
Boolean Algebra S.SADHISH PRABHU.
Presentation transcript:

Digital Logic Design Week 4 Boolean algebra

Laws and rules De Morgan’s theorem Analysis of logic circuits Standard forms Project 1 preparation

Boolean algebra George Boole British mathematician and philosopher. An Investigation of the Laws of Thought on Which are Founded the Mathematical Theories of Logic and Probabilities (1854) Claude Shannon American electrical engineer. First to apply Boole’s work to design of logic circuits (1937)  Boolean algebra is the mathematics of digital systems  deals with values 0 and 1, and just three operations: addition, multiplication, and complement

Boolean operations Boolean addition differs from binary addition! There is no carry in Boolean addition = = = = 1 0 · 0 = 0 0 · 1 = 0 1 · 0 = 0 1 · 1 = 1 0’ = 1 1’ = 0 Boolean addition Boolean multiplication Complement

Boolean operations = = = = 1 0 · 0 = 0 0 · 1 = 0 1 · 0 = 0 1 · 1 = 1 0’ = 1 1’ = 0 Boolean addition Boolean multiplication Complement ANDORNOT

Sums and products Sum terms are generated by OR gates  Examples of sum terms: A+BA+B’A+B+C’  Variables are symbols representing Boolean values 0,1  A, B and C are variables  Literals are variables or complement of variables  A, B’ and C’ are literals

Sums and products Boolean addition is the same as the OR function, so… – sum term is 1 if one or more of the literals are 1 – sum term is 0 only if each literal is 0 Example: Determine the values of the variables A,B,C,D that make the sum term A+B’+C+D’ = 0 Literals A, B’, C and D’ must all equal zero if sum=0 A = B’ = C = D’ = 0A=0, B=1, C=0, D=1

Sums and products Product terms are generated by AND gates  Examples of product terms: ABAB’ABC’ Example: Determine the values of the variables A,B,C,D that make the product term AB’CD’ = 1 Literals A, B’, C and D’ must all equal 1 if product=1 A = B’ = C = D’ = 1A=1, B=0, C=1, D=0 A B X Remember: A·B often written simply as AB

Boolean algebra Laws and rules De Morgan’s theorem Analysis of logic circuits Standard forms Project 1 preparation

Commutative laws For addition: A + B = B + A The order in which variables are ORed makes no difference For multiplication: A · B = B · A The order in which variables are ANDed makes no difference

Associative laws For addition: A + (B + C) = (A + B) + C For multiplication: A(BC) = (AB)C

Distributive law Expresses the process of factoring A(B + C) = AB + AC

Rules of Boolean algebra  Rules 1–9 from definitions of AND, OR and NOT  Rules 10–12 derived from simpler rules and three laws 12. (A + B)(A + C) = A + BC 1. A + 0 = A 2. A + 1 = 1 3. A · 0 = 0 4. A · 1 = A 5. A + A = A 7. A · A = A 6. A + A = 1 8. A · A = 0 9. A = A = 10. A + AB = A 11. A + AB = A + B

A couple of the simpler rules A + 0 = A – A variable ORed with 0 is always equal to the variable A · 1 = A  A variable ANDed with 1 is always equal to the variable

Proving rules 10–12 Rule 10: A + AB = A A + AB= A·1 + ABRule 4: A·1 = A = A(1 + B)Factoring (Distributive Law) = A·1Rule 2: 1+B = 1 = ARule 4: A·1 = A Complete the following truth table, and hence prove A+AB=A ABABA+AB

Proving rules 10–12 Rule 11: A + A’B = A+B A + A’B= (A + AB) + A’BRule 10: A = A+AB = (AA + AB) + A’BRule 7: A = AA = AA + AB + AA’ + A’BRule 8: adding AA’=0 = (A+A’)(A+B)Factoring = 1·(A+B)Rule 6: A+A’=1 = A+BRule 4: drop the 1

Proving rules 10–12 Rule 12: (A+B)(A+C) = A + BC Complete the following truth table & prove (A+B)(A+C) = A+BC ABCA+BA+C(A+B)(A+C)BCA+BC

Duality Principle Any Boolean equality remains valid if we exchange: 1 ↔ 0 AND ↔ OR – This explains why rules 1–8 appear in pairs Example: Apply the duality principle to Rule 1: A+0 = A A + 0 = A → A · 1 = A (Rule 4)

Boolean algebra Laws and rules De Morgan’s theorem Analysis of logic circuits Standard forms Project 1 preparation

De Morgan’s Theorem A · B = A + BA + B = A · B  Extends to more than two variables  Example:  Each variable can also represent a combination of other variables  Example:

Applying De Morgan’s Theorem

Use De Morgan’s theorem to simplify the expression

Boolean algebra Laws and rules De Morgan’s theorem Analysis of logic circuits Standard forms Project 1 preparation

Boolean expression for a logic circuit Begin at the circuit inputs and work towards final output Write expression for each gate output

Constructing a truth table for a logic circuit Truth table ABCDA(B+CD) I do NOT recommend using this method to construct the truth table! It’s far too slow

Constructing a truth table for a logic circuit  A·(B+C·D)=1  Equals 1 only if A=1 and B+C·D=1  So expression equals 0 for top half of truth table, where A=0  B+C·D=1  Equals 1 when B=1 or C·D=1 or both  B=1 and C·D=0 →B C D=100,101,110  B=0 and C·D=1 →B C D=011  B=1 and C·D=1 →B C D=111 We can now fill in the truth table quickly Use of “standard forms” will simplify the creation of a truth table from logic expression

ABCDA·(B+C·D) A=0 B=0 and C·D=1 B=1 and C·D=0 B=1 and C·D=1

Boolean algebra Laws and rules De Morgan’s theorem Analysis of logic circuits Standard forms Project 1 preparation

Standard forms All Boolean expressions can be converted into either of two standard forms:  Sum-of-products (SOP) form  Product-of-sums (POS) form Makes the following much easier and systematic:  Evaluation  Simplification  Implementation Truth table from Boolean expression Fewer gates for same function Logic gates to implement expression SOP this week; POS in week 5

Sum-of-products (SOP) Sum-of-products (SOP) expressions are product terms summed by Boolean addition Examples: The following expressions are not in SOP form: Remember: “summed” by Boolean addition means OR-ed together

AND/OR implementation of SOP SOP expressions simply require ORing outputs of AND gates Domain of a Boolean expression is the set of variables in the expression Example: domain of the expression for X in the figure above is A, B, C, D

Conversion to SOP form Convert the following expression to SOP form: Any logic expression can be changed to SOP form simply by applying Boolean algebra

Standard SOP form Standard SOP expression All variables in the domain appear in each product term in the expression Example: The following expression is not in standard SOP form: Why not?Missing or in first term, and missing or in second term Product terms involving all variables in the domain are called minterms

Conversion to standard SOP form Product terms missing variables can always be expanded to standard form using Boolean algebra rules and Example: First term is missing the variable C

Truth tables from standard SOP expressions  Truth table: list of all possible input combinations and corresponding output (0 or 1)  Place a 1 in output column for each input combination that makes the standard SOP expression a 1  0 in remaining rows ABCXproduct term

Boolean algebra Laws and rules De Morgan’s theorem Analysis of logic circuits Standard forms Project 1 preparation

On Sunday (16 Nov), the class will be given a Boolean expression involving 4 variables (A,B,C,D) Project 1  Marked by demonstration to me in week 5 theory section  5 parts, each of equal value: a)Expand given expression to sum-of-products (SOP) form b)Create truth table for expression c)Expand SOP into standard SOP form d)Implement original expression in Logisim using gates e)Enter SOP expression into Logisim, and confirm that the resulting truth table produced by Logisim matches your truth table in part b)

Project 1— sample question a)Expand to SOP: b)Truth table: Z=1 only for ABCD=0101,0111,1101 c)Standard SOP: d)Logisim circuit: e)In Logisim: Project > Analyze Circuit enter expression at Expression tab view truth table at Table tab Week04_projectdemo.circ