1 CSE370, Lecture 3 Lecture 3: Boolean Algebra u Logistics u Last lecture --- Numbers n Binary numbers n Base conversion n Number systems for negative.

Slides:



Advertisements
Similar presentations
CSE 20 Lecture 9 Boolean Algebra: Theorems and Proofs CK Cheng April 26, 2011 Lecture notes 1.
Advertisements

Logical Systems Synthesis.
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
Boolean Algebra and Logic Gates
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra.
ECE 301 – Digital Electronics Boolean Algebra and Standard Forms of Boolean Expressions (Lecture #4) The slides included herein were taken from the materials.
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
Lattice and Boolean Algebra
Chapter 2: Boolean Algebra and Logic Functions
CHAPTER 2 Boolean Algebra
Binary Logic and Gates Binary variables take on one of two values.
Boolean Algebra and Digital Circuits
CSE 311 Foundations of Computing I Spring 2013, Lecture 3 Propositional Logic, Boolean Logic/Boolean Algebra 1.
©2004 Brooks/Cole FIGURES FOR CHAPTER 2 BOOLEAN ALGEBRA Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter in.
Digital Systems: Boolean Algebra and Logic Gates
Chapter 2. Outlines 2.1 Introduction 2.2 Basic Definitions 2.3 Axiomatic Definition of Boolean Algebra 2.4 Basic thermos and proprieties of 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.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
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.
6 - 1 Simplification Theorems Useful for simplification of expressions & therefore simplification of the logic network which results. XY + XY' = ( X +
CSE 311 Foundations of Computing I
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Boolean Algebra – II. Outline  Basic Theorems of Boolean Algebra  Boolean Functions  Complement of Functions  Standard Forms.
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.
Logic Circuits Lecture 3 By Amr Al-Awamry. Basic Definitions Binary Operators  AND z = x y = x yz=1 if x=1 AND y=1  OR z = x + y z=1 if x=1 OR y=1 
© BYU 03 BA1 Page 1 ECEn 224 Boolean Algebra – Part 1.
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
BOOLEAN ALGEBRA – Digital Circuit 1 Choopan Rattanapoka.
Boolean Algebra and Logic Gates
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
1 An algebraic structure consists of –a set of elements B –binary operators {+,.} –and a unary operator { ‘ } Such that following holds –Membership: B.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
CEC 220 Digital Circuit Design Boolean Algebra II Fri, Sept 4 CEC 220 Digital Circuit Design Slide 1 of 13.
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
Basic Laws, theorems, and postulates of Boolean Algebra
1 CSE370, Lecture 4 Lecture 4 u Logistics n HW1 due now n HW2 posted now and is due one week from today n Lab1 going on this week n Feedback on lectures,
Hoda Roodaki Boolean Algebra Hoda Roodaki
ECE 301 – Digital Electronics
Chapter 2: Boolean Algebra and Logic Functions
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Boolean Algebra – Part 1 ECEn 224.
SLIDES FOR CHAPTER 2 BOOLEAN ALGEBRA
FIGURES FOR CHAPTER 2 BOOLEAN ALGEBRA
Lecture 3: Boolean Algebra
CSE 311 Foundations of Computing I
Boolean Algebra.
Boolean Algebra.
Chapter 2 Boolean Algebra and Logic Gate
CSE 370 – Winter Combinational Logic - 1
2. Boolean Algebra and Logic Gates
Boolean Algebra Introduction CSCI 240
COMS 361 Computer Organization
Lecture 3: Boolean Algebra
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
Boolean Algebra Rayat Shikshan Sanstha’s
Design of Digital Circuits Lab 1 Supplement: Drawing Basic Circuits
Boolean Algebra Rayat Shikshan Sanstha’s
Lecture 3: Boolean Algebra
CSE 370 – Winter Number syst.; Logic functions- 1
Digital Systems Section 3 Boolean Algebra. Digital Systems Section 3 Boolean Algebra.
Presentation transcript:

1 CSE370, Lecture 3 Lecture 3: Boolean Algebra u Logistics u Last lecture --- Numbers n Binary numbers n Base conversion n Number systems for negative numbers n A/D and D/A conversion u Today’s lecture n Boolean algebra íAxioms íUseful laws and theorems íExamples

2 CSE370, Lecture 3 The “WHY” slide u Boolean Algebra n When we learned numbers like 1, 2, 3, we also then learned how to add, multiply, etc. with them. Boolean Algebra covers operations that we can do with 0’s and 1’s. Computers do these operations ALL THE TIME and they are basic building blocks of computation inside your computer program. u Axioms, laws, theorems n We need to know some rules about how those 0’s and 1’s can be operated on together. There are similar axioms to decimal number algebra, and there are some laws and theorems that are good for you to use to simplify your operation.

3 CSE370, Lecture 3 How does Boolean Algebra fit into the big picture? u It is part of the Combinational Logic topics (memoryless) n Different from the Sequential logic topics (can store information) u Learning Axioms and theorems of Boolean algebra íAllows you to design logic functions íAllows you to know how to combine different logic gates íAllows you to simplify or optimize on the complex operations

4 CSE370, Lecture 3 Boolean algebra u A Boolean algebra comprises... n A set of elements B n Binary operators {+, }Boolean sum and product n A unary operation { ' } (or { }) example: A’ or A u …and the following axioms n 1. The set B contains at least two elements {a b} with a  b n 2. Closure: a+b is in Bab is in B n 3. Commutative: a+b = b+aab = ba n 4. Associative: a+(b+c) = (a+b)+ca(bc) = (ab)c n 5. Identity: a+0 = aa1 = a n 6. Distributive: a+(bc)=(a+b)(a+c)a(b+c)=(ab)+(ac) n 7. Complementarity: a+a' = 1aa' = 0 _ _

5 CSE370, Lecture 3 Digital (binary) logic is a Boolean algebra u Substitute n {0, 1} for B n AND for Boolean Product. In CSE 321 this was  n OR for + Boolean Sum. In CSE 321 this was  n NOT for ‘ Complement. In CSE 321 this was  u All the axioms hold for binary logic u Definitions n Boolean function íMaps inputs from the set {0,1} to the set {0,1} n Boolean expression íAn algebraic statement of Boolean variables and operators

6 CSE370, Lecture 3 XYZ XYZ X Y Z XYZ XYZ X Y Z Logic Gates (AND, OR, Not) & Truth Table u ANDXYXY u ORX+Y u NOTXX' XY0110XY0110 X Y

7 CSE370, Lecture 3 XYX'Y'X YX' Y' Z XYX'Z XYZ XYZ Logic functions and Boolean algebra u Any logic function that is expressible as a truth table can be written in Boolean algebra using +,, and ' Z=XY Z=X'Y Z=(XY)+(X' Y')

8 CSE370, Lecture 3 Some notation u Priorities: u Variables and their complements are sometimes called literals

9 CSE370, Lecture 3 Two key concepts u Duality (a meta-theorem— a theorem about theorems) n All Boolean expressions have logical duals n Any theorem that can be proved is also proved for its dual n Replace: with +, + with, 0 with 1, and 1 with 0 n Leave the variables unchanged u de Morgan’s Theorem n Procedure for complementing Boolean functions n Replace: with +, + with, 0 with 1, and 1 with 0 n Replace all variables with their complements

10 CSE370, Lecture 3 Useful laws and theorems Identity: X + 0 = X Dual: X 1 = X Null: X + 1 = 1 Dual: X 0 = 0 Idempotent: X + X = X Dual: X X = X Involution: (X')' = X Complementarity: X + X' = 1 Dual: X X' = 0 Commutative: X + Y = Y + X Dual: X Y = Y X Associative: (X+Y)+Z=X+(Y+Z) Dual: (XY)Z=X(YZ) Distributive: X(Y+Z)=(XY)+(XZ) Dual: X+(YZ)=(X+Y)(X+Z) Uniting: XY+XY'=X Dual: (X+Y)(X+Y')=X

11 CSE370, Lecture 3 Useful laws and theorems (con’t) Absorption: X+XY=XDual: X(X+Y)=X Absorption (#2): (X+Y')Y=XYDual: (XY')+Y=X+Y de Morgan's: (X+Y+...)'=X'Y'...Dual: (XY...)'=X'+Y'+... Duality: (X+Y+...) D =XY...Dual: (XY...) D =X+Y+… Multiplying & factoring: (X+Y)(X'+Z)=XZ+X'Y Dual: XY+X'Z=(X+Z)(X'+Y) Consensus: (XY)+(YZ)+(X'Z)= XY+X'Z Dual: (X+Y)(Y+Z)(X'+Z)=(X+Y)(X'+Z)

12 CSE370, Lecture 3 Proving theorems u Example 1: Prove the uniting theorem-- XY+XY'=X Distributive XY+XY' = X(Y+Y') Complementarity = X(1) Identity = X u Example 2: Prove the absorption theorem-- X+XY=X Identity X+XY = (X1)+(XY) Distributive = X(1+Y) Null = X(1) Identity = X

13 CSE370, Lecture 3 Proving theorems u Example 3: Prove the consensus theorem-- (XY)+(YZ)+(X'Z)= XY+X'Z Complementarity XY+YZ+X'Z = XY+(X+X')YZ + X'Z Distributive = XYZ+XY+X'YZ+X'Z íUse absorption {AB+A=A} with A=XY and B=Z = XY+X'YZ+X'Z Rearrange terms = XY+X'ZY+X'Z íUse absorption {AB+A=A} with A=X'Z and B=Y XY+YZ+X'Z = XY+X'Z

14 CSE370, Lecture 3 de Morgan’s Theorem u Use de Morgan’s Theorem to find complements u Example: F=(A+B)(A’+C), so F’=(A’B’)+(AC’) A BC F A BC F’

15 CSE370, Lecture 3 One more example of logic simplification u Example: Z = A'BC + AB'C' + AB'C + ABC' + ABC = A'BC + AB'(C’ + C) + AB(C' + C) distributive = A'BC + AB’ + AB complementary = A'BC + A(B' + B) distributive = A'BC+ A complementary = BC + Aabsorption #2 Duality (X Y')+Y=X+Y with X=BC and Y=A