Lecture 3: Boolean Algebra

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
Boolean Algebra and Logic Gates
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
Boolean Algebra and Digital Circuits
CSE 311 Foundations of Computing I Spring 2013, Lecture 3 Propositional Logic, Boolean Logic/Boolean Algebra 1.
Digital Systems: Boolean Algebra and Logic Gates
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.
CSE 311 Foundations of Computing I
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
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.
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
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.
Boolean Algebra – II. Outline  Basic Theorems of Boolean Algebra  Boolean Functions  Complement of Functions  Standard Forms.
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 
Boolean Algebra M. AL- Towaileb1. Boolean Functions In Boolean algebra we work with the set {0,1}, where: 0 ≡ F (False) & 1 ≡ T (True). The 3 Operations.
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.
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
CHAPTER 2 Boolean algebra and Logic gates
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,
ECE 301 – Digital Electronics
CS2100 Computer Organisation
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
Chapter 2: Boolean Algebra and Logic Functions
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)
CS 105 Digital Logic Design
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Lecture 2-1 Boolean Algebra
SLIDES FOR CHAPTER 2 BOOLEAN ALGEBRA
FIGURES FOR CHAPTER 2 BOOLEAN ALGEBRA
Lecture 3: Boolean Algebra
CHAPTER 2 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
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
Boolean Algebra Introduction CSCI 240
CHAPTER 3 BOOLEAN ALGEBRA (continued)
COMS 361 Computer Organization
Logic Circuits I Lecture 3.
Lecture 3: Boolean Algebra
ECE 352 Digital System Fundamentals
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
Chapter 2 Digital Design and Computer Architecture, 2nd Edition
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
CSE 370 – Winter Number syst.; Logic functions- 1
Digital Systems Section 3 Boolean Algebra. Digital Systems Section 3 Boolean Algebra.
Lecture 2: Combinational Logic Design
Presentation transcript:

Lecture 3: Boolean Algebra Logistics Class email sign up Homework 1 due on Wednesday Lab 1 starts this week: go to your session Last lecture --- Numbers Binary numbers Base conversion Number systems for negative numbers A/D and D/A conversion Today’s lecture Boolean algebra Axioms Useful laws and theorems Examples Class rule: Interrupt when you don’t understand why we are doing something

The “WHY” slide Boolean Algebra Axioms, laws, theorems When we learned numbers like 1, 2, 3, we also then learned how to add, multiply, etc. with them. Boolean Algebra is 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. Axioms, laws, theorems We need to know some rules about how those 0’s and 1’s can be operated 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. Class rule: Interrupt when you don’t understand why we are doing something

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

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

Digital (binary) logic is a Boolean algebra Substitute {0, 1} for B AND for • Boolean Product OR for + Boolean Sum NOT for ' All the axioms hold for binary logic Definitions Boolean function Maps inputs from the set {0,1} to the set {0,1} Boolean expression An algebraic statement of Boolean variables and operators

Logic Gates (AND, OR, Not) & Truth Table AND X•Y XY OR X+Y NOT X X' X Y Z 0 0 0 0 1 0 1 0 0 1 1 1 X Z Y X Y Z 0 0 0 0 1 1 1 0 1 1 1 1 X Z Y X Y 0 1 1 0 X Y

Logic functions and Boolean algebra Any logic function that is expressible as a truth table can be written in Boolean algebra using +, •, and ' X Y Z 0 0 0 0 1 0 1 0 0 1 1 1 Z=X•Y X Y X' Z 0 0 1 0 0 1 1 1 1 0 0 0 1 1 0 0 Z=X'•Y X Y X' Y' X • Y X' •Y' Z 0 0 1 1 0 1 1 0 1 1 0 0 0 0 1 0 0 1 0 0 0 1 1 0 0 1 0 1 Z=(X•Y)+(X' •Y')

Some notation Priorities: Variables are sometimes called literals

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

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: (X•Y)•Z=X•(Y•Z) Distributive: X•(Y+Z)=(X•Y)+(X•Z) Dual: X+(Y•Z)=(X+Y)•(X+Z) Uniting: X•Y+X•Y'=X Dual: (X+Y)•(X+Y')=X

Useful laws and theorems (con’t) Absorption: X+X•Y=X Dual: X•(X+Y)=X Absorption (#2): (X+Y')•Y=X•Y Dual: (X•Y')+Y=X+Y de Morgan's: (X+Y+...)'=X'•Y'•... Dual: (X•Y•...)'=X'+Y'+... Duality: (X+Y+...)D=X•Y•... Dual: (X•Y•...)D=X+Y+… Multiplying & factoring: (X+Y)•(X'+Z)=X•Z+X'•Y Dual: X•Y+X'•Z=(X+Z)•(X'+Y) Consensus: (X•Y)+(Y•Z)+(X'•Z)= X•Y+X'•Z Dual: (X+Y)•(Y+Z)•(X'+Z)=(X+Y)•(X'+Z)

Proving theorems Example 1: Prove the uniting theorem-- X•Y+X•Y'=X Distributive X•Y+X•Y' = X•(Y+Y') Complementarity = X•(1) Identity = X Example 2: Prove the absorption theorem-- X+X•Y=X Identity X+X•Y = (X•1)+(X•Y) Distributive = X•(1+Y) Null = X•(1) Identity = X

Proving theorems 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

de Morgan’s Theorem Use de Morgan’s Theorem to find complements Example: F=(A+B)•(A’+C), so F’=(A’•B’)+(A•C’) A B C F 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 1 A B C F’ 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0