Lecture 3: Boolean Algebra

Slides:



Advertisements
Similar presentations
Lecture 5 EGRE 254 1/28/09. 2 Boolean algebra a.k.a. “switching algebra” –deals with Boolean values -- 0, 1 Positive-logic convention –analog voltages.
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
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
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.
Lattice and Boolean Algebra
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
CHAPTER 2 Boolean Algebra
Binary Logic and Gates Binary variables take on one of two values.
Boolean Algebra and Digital Circuits
©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.
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
LOGIC GATES & BOOLEAN ALGEBRA
6 - 1 Simplification Theorems Useful for simplification of expressions & therefore simplification of the logic network which results. XY + XY' = ( X +
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.
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
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.
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
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
CEC 220 Digital Circuit Design Boolean Algebra II Fri, Sept 4 CEC 220 Digital Circuit Design Slide 1 of 13.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
Boolean Algebra ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
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.
ECE 301 – Digital Electronics
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra.
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
Unit 2 Boolean Algebra.
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
Lecture 2 Boolean Algebra Basic
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Lecture 3 Algebraic Simplification
Boolean Algebra – Part 1 ECEn 224.
Lecture 2-1 Boolean Algebra
SLIDES FOR CHAPTER 2 BOOLEAN ALGEBRA
Topic1: Boolean Algebra José Nelson Amaral
FIGURES FOR CHAPTER 2 BOOLEAN ALGEBRA
Boolean Algebra.
CSE 311 Foundations of Computing I
Boolean Algebra.
Boolean Algebra.
Boolean Algebra & Logic Circuits
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
ECE 352 Digital System Fundamentals
Instructor: Alexander Stoytchev
Boolean Algebra Rayat Shikshan Sanstha’s
Boolean Algebra Rayat Shikshan Sanstha’s
Lecture 3: Boolean Algebra
BOOLEAN ALGEBRA.
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Presentation transcript:

Lecture 3: Boolean Algebra Axioms Useful laws and theorems Examples

The big picture Part of the combinational logic topics (memoryless) Different from sequential logic (can store information) Axioms and theorems allow you to… … design logic functions … know how to combine different logic gates … simplify or optimize complex operations

Boolean algebra A Boolean algebra consists of… a set of elements B binary operators (+ , •) unary operator (' or ) _

Boolean algebra axioms Closure: a+b is in B a•b is in B Commutative: a+b = b+a a•b = b•a Associative: a+(b+c) = (a+b)+c a•(b•c) = (a•b)•c Identity: a+0 = a a•1 = a Distributive: a+(b•c) = (a+b)•(a+c) a•(b+c) = (a•b)+(a•c) Complementarity: a+a' = 1 a•a' = 0

Binary logic Axioms hold for binary logic where • → AND + → OR ' → NOT A Boolean function maps some number of inputs over {0, 1} into an output set {0, 1}

Logic gates and truth tables X Y Z 0 0 0 0 1 0 1 0 0 1 1 1 AND X•Y XY OR X + Y NOT X' X X Y Z X Y Z 0 0 0 0 1 1 1 0 1 1 1 1 X Y Z _ X Y 0 1 1 0 X Y

Boolean expressions Any logic function that is expressible as a truth table can be written in Boolean algebra. 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')

Precedence Parentheses NOT AND OR Example: A+B•C = (A)+(B•(C)) _ _ _ _

Duality Duality (a meta-theorem—a theorem about theorems) Example: 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 Example: The dual of X+0=X is X•1=X

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

Useful laws and theorems 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 Absorption X+X•Y = X Dual: X•(X+Y) = X (X+Y')•Y = X•Y Dual: (X•Y')+Y=X+Y Consensus X•Y+Y•Z+X'•Z = X•Y+X'•Z Dual: (X+Y)•(Y+Z)•(X'+Z) = (X+Y)•(X'+Z) Multiplying and factoring (X+Y)•(X'+Z) = X•Z+X'•Y Dual: X•Y+X'•Z = (X+Z)•(X'+Y)

DeMorgan's law Procedure for complementing Boolean functions Replace: • with +, + with •, 0 with 1, and 1 with 0 Replace all variables with their complements Look familiar? Duality: "Leave the variables unchanged" However, duality and DeMorgan's are NOT the same thing! Example: The complement of F = X•Y is F = X+Y _ _ _

Proving theorems Example 1: Uniting theorem X•Y+X•Y' = X•(Y+Y') Distributive = X•(1) Complementarity = X Identity Example 2: Absorption X+X•Y = X•1+X•Y Identity = X•(1+Y) Distributive = X•(1) Null

Proving theorems Example 3: Consensus X•Y+Y•Z+X'•Z = XY + (1)YZ + X'Z Identity = XY + (X+X')YZ + X'Z Complementarity = XY + XYZ + X'YZ + X'Z Distributive = XY + X'YZ + X'Z Absorption {AB + A = A} with A = XY and B = Z = XY + X'Z Absorption {AB + A = A} with A = X'Z and B = Y

Applying DeMorgan's Find the complement of F=(A+B)•(A’+C). Answer: 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

Logic simplification Z = A'BC + AB'C' + AB'C + ABC' + ABC = A'BC + AB'(C' + C) + AB(C' + C) Distributive = A'BC + AB'(1) + AB(1) Complementarity = A'BC + AB' + AB Identity = A'BC + A(B' + B) Distributive = A'BC + A(1) Complementarity = A'BC + A Identity = BC + A Absorption {(X•Y')+Y=X+Y} with X = BC and Y = A