Boolean Algebra. Introduction 1854: Logical algebra was published by George Boole  known today as “Boolean Algebra” 1854: Logical algebra was published.

Slides:



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

INTRODUCTION LOGICAL OPERATIONS TRUTH TABLE AND RULES.
Boolean rules for simplification Dr. Ahmed Telba.
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Digital Fundamentals with PLD Programming Floyd Chapter 4
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
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
CHAPTER 2 Boolean Algebra
DeMorgan Theorem, Computer Simulation Exercises
 Seattle Pacific University EE Logic System DesignSOP-POS-1 The Connection: Truth Tables to Functions abcF abcF
ECE 331 – Digital System Design
Computer Science 210 Computer Organization Introduction to Boolean Algebra.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
Laws (Theorems) of Boolean algebra Laws of Complementation oThe term complement means, to invert or to change 1's to 0's and 0's to 1's, for which purpose.
ECE 301 – Digital Electronics Basic Logic Operations, Boolean Expressions, and Boolean Algebra (Lecture #3)
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Boolean Logic 1 Technician Series Boolean 1.1 ©Paul Godin Created Jan 2015 gmail.com.
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 and Reduction Techniques
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
© BYU 03 BA1 Page 1 ECEn 224 Boolean Algebra – Part 1.
CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 4 © 2008 Pearson Education.
Chapter 2 Boolean Algebra and Minimization Techniques.
DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan mohd nor
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Digital Logic Design Dr. Oliver Faust Chapter 4
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
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.
Logic Gates and Boolean Algebra Introduction to Logic II.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Introduction to Digital Electronics Lecture.
Boolean Operations and Expressions Addition = = = = 1 Multiplication 0 * 0 = 0 0 * 1 = 0 1 * 0 = 0 1 * 1 = 1.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Boolean Algebra & Logic Gates
ECE 301 – Digital Electronics
Computer Science 210 Computer Organization
De Morgan’s Theorem,.
DeMorgan’s Theorem DeMorgan’s 2nd Theorem
Logic Gates and Boolean Algebra
CHAPTER 2 Boolean Algebra
CHAPTER 1 : INTRODUCTION
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Boolean Algebra.
Boolean Algebra – Part 1 ECEn 224.
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
TN 221: DIGITAL ELECTRONICS 1
Boolean Algebra & Logic Circuits
BASIC & COMBINATIONAL LOGIC CIRCUIT
Computer Science 210 Computer Organization
Boolean Algebra.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
Digital Fundamentals Floyd Chapter 4 Tenth Edition
Analysis of Logic Circuits Example 1
BOOLEAN ALGEBRA.
Laws & Rules of Boolean Algebra
Boolean Algebra S.SADHISH PRABHU.
Presentation transcript:

Boolean Algebra

Introduction 1854: Logical algebra was published by George Boole  known today as “Boolean Algebra” 1854: Logical algebra was published by George Boole  known today as “Boolean Algebra” It’s a convenient way and systematic way of expressing and analyzing the operation of logic circuits. It’s a convenient way and systematic way of expressing and analyzing the operation of logic circuits. 1938: Claude Shannon was the first to apply Boole’s work to the analysis and design of logic circuits. 1938: Claude Shannon was the first to apply Boole’s work to the analysis and design of logic circuits.

Boolean Operations & Expressions Variable – a symbol used to represent a logical quantity. Variable – a symbol used to represent a logical quantity. Complement – the inverse of a variable and is indicated by a bar over the variable. Complement – the inverse of a variable and is indicated by a bar over the variable. Literal – a variable or the complement of a variable. Literal – a variable or the complement of a variable.

Boolean Addition Boolean addition is equivalent to the OR operation Boolean addition is equivalent to the OR operation A sum term is produced by an OR operation with no AND ops involved. A sum term is produced by an OR operation with no AND ops involved. i.e. i.e. A sum term is equal to 1 when one or more of the literals in the term are 1. A sum term is equal to 1 when one or more of the literals in the term are 1. A sum term is equal to 0 only if each of the literals is 0. A sum term is equal to 0 only if each of the literals is = = 11+0 = 11+1 = 1

Boolean Multiplication Boolean multiplication is equivalent to the AND operation Boolean multiplication is equivalent to the AND operation A product term is produced by an AND operation with no OR ops involved. A product term is produced by an AND operation with no OR ops involved. i.e. i.e. A product term is equal to 1 only if each of the literals in the term is 1. A product term is equal to 1 only if each of the literals in the term is 1. A product term is equal to 0 when one or more of the literals are 0. A product term is equal to 0 when one or more of the literals are 0. 0 · 0 = 0 0 · 1 = 01 · 0 = 01 · 1 = 1

Laws & Rules of Boolean Algebra The basic laws of Boolean algebra: The basic laws of Boolean algebra: The commutative laws ( กฏการสลับที่ ) The commutative laws ( กฏการสลับที่ ) The associative laws ( กฏการจัดกลุ่ม ) The associative laws ( กฏการจัดกลุ่ม ) The distributive laws ( กฏการกระจาย ) The distributive laws ( กฏการกระจาย )

Commutative Laws The commutative law of addition for two variables is written as: A+B = B+A The commutative law of addition for two variables is written as: A+B = B+A The commutative law of multiplication for two variables is written as: AB = BA The commutative law of multiplication for two variables is written as: AB = BA A B A+B B A B+A A B AB B A B+A

Associative Laws The associative law of addition for 3 variables is written as: A+(B+C) = (A+B)+C The associative law of addition for 3 variables is written as: A+(B+C) = (A+B)+C The associative law of multiplication for 3 variables is written as: A(BC) = (AB)C The associative law of multiplication for 3 variables is written as: A(BC) = (AB)C A B A+(B+C) C A B (A+B)+C C A B A(BC) C A B (AB)C C B+C A+B BC AB

Distributive Laws The distributive law is written for 3 variables as follows: A(B+C) = AB + AC The distributive law is written for 3 variables as follows: A(B+C) = AB + AC B C A B+C A B C A X X AB AC X=A(B+C) X=AB+AC

Rules of Boolean Algebra ___________________________________________________________ A, B, and C can represent a single variable or a combination of variables.

DeMorgan’s Theorems DeMorgan’s theorems provide mathematical verification of: DeMorgan’s theorems provide mathematical verification of: the equivalency of the NAND and negative-OR gates the equivalency of the NAND and negative-OR gates the equivalency of the NOR and negative-AND gates. the equivalency of the NOR and negative-AND gates.

DeMorgan’s Theorems The complement of two or more ANDed variables is equivalent to the OR of the complements of the individual variables. The complement of two or more ANDed variables is equivalent to the OR of the complements of the individual variables. The complement of two or more ORed variables is equivalent to the AND of the complements of the individual variables. The complement of two or more ORed variables is equivalent to the AND of the complements of the individual variables. NAND Negative-OR Negative-AND NOR

DeMorgan’s Theorems (Exercises) Apply DeMorgan’s theorems to the expressions: Apply DeMorgan’s theorems to the expressions:

DeMorgan’s Theorems (Exercises) Apply DeMorgan’s theorems to the expressions: Apply DeMorgan’s theorems to the expressions:

Boolean Analysis of Logic Circuits Boolean algebra provides a concise way to express the operation of a logic circuit formed by a combination of logic gates Boolean algebra provides a concise way to express the operation of a logic circuit formed by a combination of logic gates so that the output can be determined for various combinations of input values. so that the output can be determined for various combinations of input values.

Boolean Expression for a Logic Circuit To derive the Boolean expression for a given logic circuit, begin at the left-most inputs and work toward the final output, writing the expression for each gate. To derive the Boolean expression for a given logic circuit, begin at the left-most inputs and work toward the final output, writing the expression for each gate. C D B A CD B+CD A(B+CD)

Constructing a Truth Table for a Logic Circuit Once the Boolean expression for a given logic circuit has been determined, a truth table that shows the output for all possible values of the input variables can be developed. Once the Boolean expression for a given logic circuit has been determined, a truth table that shows the output for all possible values of the input variables can be developed. Let’s take the previous circuit as the example: Let’s take the previous circuit as the example:A(B+CD) There are four variables, hence 16 (2 4 ) combinations of values are possible. There are four variables, hence 16 (2 4 ) combinations of values are possible.

Constructing a Truth Table for a Logic Circuit Evaluating the expression Evaluating the expression To evaluate the expression A(B+CD), first find the values of the variables that make the expression equal to 1 (using the rules for Boolean add & mult). To evaluate the expression A(B+CD), first find the values of the variables that make the expression equal to 1 (using the rules for Boolean add & mult). In this case, the expression equals 1 only if A=1 and B+CD=1 because In this case, the expression equals 1 only if A=1 and B+CD=1 because A(B+CD) = 1·1 = 1

Constructing a Truth Table for a Logic Circuit Evaluating the expression (cont’) Evaluating the expression (cont’) Now, determine when B+CD term equals 1. Now, determine when B+CD term equals 1. The term B+CD=1 if either B=1 or CD=1 or if both B and CD equal 1 because The term B+CD=1 if either B=1 or CD=1 or if both B and CD equal 1 because B+CD = 1+0 = 1 B+CD = 0+1 = 1 B+CD = 1+1 = 1 The term CD=1 only if C=1 and D=1 The term CD=1 only if C=1 and D=1

Constructing a Truth Table for a Logic Circuit Evaluating the expression (cont’) Evaluating the expression (cont’) Summary: Summary: A(B+CD)=1 A(B+CD)=1 When A=1 and B=1 regardless of the values of C and D When A=1 and B=1 regardless of the values of C and D When A=1 and C=1 and D=1 regardless of the value of B When A=1 and C=1 and D=1 regardless of the value of B The expression A(B+CD)=0 for all other value combinations of the variables. The expression A(B+CD)=0 for all other value combinations of the variables.

Constructing a Truth Table for a Logic Circuit Putting the results in truth table format Putting the results in truth table format INPUTSOUTPUT ABCDA(B+CD) INPUTSOUTPUTABCDA(B+CD) When A=1 and B=1 regardless of the values of C and D When A=1 and C=1 and D=1 regardless of the value of B A(B+CD)=1INPUTSOUTPUTABCDA(B+CD) INPUTSOUTPUTABCDA(B+CD)