Boolean Algebra.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

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.
Chapter 2 Logic Circuits.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
Two-Level Logic Synthesis -- Quine-McCluskey Method.
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
COMBINATIONAL LOGIC CIRCUITS C.L. x1 x2 xn Z Z = F (x1, x2, ……., Xn) F is a Binary Logic (BOOLEAN ) Function Knowing F Allows Straight Forward Direct Implementation.
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.
Quine-McClusky Minimization Method Discussion D3.2.
Lattice and Boolean Algebra
EECC341 - Shaaban #1 Lec # 7 Winter Combinational Circuit Minimization Canonical sum and product logic expressions do not provide a circuit.
Algebra Algebra – defined by the tuple:  A, o 1, …, o k ; R 1, …, R m ; c 1, …, c k  Where: A is a non-empty set o i is the function, o i : A p i  A.
Simplifying Boolean Expressions Using K-Map Method
Computer Architecture I: Digital Design Dr. Robert D. Kent Lecture 3 Simplification of Boolean Expressions.
Chapter 2: Boolean Algebra and Logic Functions
Binary Logic and Gates Binary variables take on one of two values.
Digital Systems: Boolean Algebra and Logic Gates
Boolean Algebra 1854, George Boole created a two valued algebraic system which is now called Boolean algebra. 1938, Claude Shannon adapted 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.
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Circuit Minimization. It is often uneconomical to realize a logic directly from the first logic expression that pops into your head. Canonical sum and.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
Venn Diagram – the visual aid in verifying theorems and properties 1 E.
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
June 11, 2002© Howard Huang1 Boolean algebra Last time we talked about Boolean functions, Boolean expressions, and truth tables. Today we’ll learn.
--- outputs logical functions of inputs --- new outputs appear shortly after changed inputs (propagation delay) --- no feedback loops --- no clock Sequential.
Discrete Mathematics CS 2610 September Equal Boolean Functions Two Boolean functions F and G of degree n are equal iff for all (x 1,..x n )  B.
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.
BOOLEAN ALGEBRA Kamrul Ahsan Teacher of
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
Module 5.  In Module 3, you have learned the concept of Boolean Algebra which consists of binary variables and binary operator.  A binary variable x,
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Lecture 18: Boolean Algebra Boolean Functions. w = Chris is allowed to watch television x = Chris's homework is finished y = it is a school night z =
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
EE2420 – Digital Logic Summer II 2013 Hassan Salamy Ingram School of Engineering Texas State University Set 5: Karnaugh Maps.
1 Gate Level Minimization EE 208 – Logic Design Chapter 3 Sohaib Majzoub.
1 Digital Design Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
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
Chapter 2: Boolean Algebra and Logic Functions
Computer Organisation
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 This chapter in the book includes:
Lecture 3: Boolean Algebra
Boolean Algebra.
17-Nov-18 Logic Algebra 1 Combinational logic.
Boolean Algebra.
Discrete Mathematics CS 2610
Boolean Algebra.
Lecture 14: Boolean Algebra
Chapter 2 Boolean Algebra and Logic Gate
Sungho Kang Yonsei University
2. Boolean Algebra and Logic Gates
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
Chapter 3 Gate-level Minimization.
Sungho Kang Yonsei University
Instructor: Alexander Stoytchev
Digital Logic Chapter-2
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Boolean Algebra.
Presentation transcript:

Boolean Algebra

Boolean Algebra A Boolean algebra A set of operators (e.g. the binary operators: +, •, INV) A set of axioms or postulates Elements are symbols of values, different from variables. A variable can take any value/element from the set B. ENEE 644

Postulates Commutative x+y = y+x x•y=y•x Distributive x+(y•z)=(x+y)•(x+z) x•(y+z)=x•y+x•z Identities x+0=x x•1=x Complement x+x’=1 x•x’=0 Closure x+y x•y Associative (x+y)+z=x+(y+z) (x•y)•z=x•(y•z) The two properties in red are different from polynomial operation Breaking parenthesis ENEE 644

Properties of Boolean Algebra Complement of a variable is unique. (x’)’ = x -- involution x+x = x x•x=x --idempotent x+1=1 x•0=0 x+x•y=x x•(x+y)=x -- absorption (x+y)’=x’•y’ (x•y)’=x’+y’ -- DeMorgan’s Law xy+x’z+yz = xy + x’z (x+y) •(x’+z) •(y+z) = (x+y) •(x’+z) -- consensus Duality: +  • and 0  1 Complement of a variable is unique. (x’)’ = x -- involution x+x = x --idempotent x+1=1 x+x•y=x -- absorption (x+y)’=x’•y’ -- DeMorgan’s Law xy+x’z+yz = xy + x’z -- consensus Uniqueness of complement: x”=x”(x+x’)=x”x+x”x’=x”x’=x”x’+xx’=(x”+x)x’=x’ x+x’=1 and xx’ = 0 So x’+x = 1 and x’x = 0, so x is the complement of x’ x+x=(x+x)1=(x+x)(x+x’)=x+(xx’) distributive =x+0 = x x+1=1(x+1)=(x+x’)(x+1)=x+x’1=x+x’=1 x+xy=x1+xy=x(1+y)=x1=x Xy+x’z+yz=xy+x’z+1yz=xy+x’z+(x+x’)yz=xy+x’z+xyz+x’yz=(xy+xyz)+(x’z+x’yz) =xy+(x’z+x’zy) absorption = xy + x’z absorption ENEE 644

Proof of Consensus a <= b essentially implies that if a =1 then b =1 and if a = 0 then b could be anything Theorem: In Consensus xy + x’z + yz = xy + x’z (How?) We Prove that xy + x’z + yz >= xy + x’z and xy + x’z + yz <= xy + x’z (This would imply equality and prove the theorem) Proof: First: xy + x’z + yz >= xy + x’z. Let xy + x’z = a and yz = b; So we want to prove that a + b >= a which is true by definition of the inequality Second: xy + x’z + yz <= xy + x’z. This inequality could be split into xy + x’z <= xy + x’z and yz <= xy + x’z All we need to do is to prove yz <= xy + x’z ENEE 644

Proof of Consensus yz <= xy + x’z We know that a <= b iff ab’ = 0 (How?) So if the above inequality is true yz(xy + x’z)’ = 0 must be true. Which is always true. Hence Proved. ENEE 644

Boolean Functions A Boolean function is a mapping f(x): Bn  B. Constant function: f(x1,…,xn) = b. Projection (to the i-th axis): f(x1,…,xn) = xi. A Boolean function is complete if f(x) is defined for all xBn. Otherwise the point x that f(x) is not defined is called a don’t care condition. Operations on Boolean functions: Sum: (f+g)(x) = f(x) + g(x) Product: (f•g)(x) = f(x)•g(x) Complement: (f’)(x) = (f(x))’ ENEE 644

Representations of Boolean Functions Algebraic expressions f(x,y,z) = xy+z Algebraic expressions f(x,y,z) = xy+z Tabular forms Venn diagrams Cubical representations Algebraic expressions f(x,y,z) = xy+z Tabular forms Venn diagrams Algebraic expressions f(x,y,z) = xy+z Tabular forms Algebraic expressions f(x,y,z) = xy+z Tabular forms Venn diagrams Cubical representations Binary decision diagrams (BDD) x y z f 1 x z y x z y ENEE 644

Representations of Boolean Functions Algebraic expressions f(x,y,z) = xy+z Tabular forms Venn diagrams Cubical representations Binary decision diagrams (BDD) x y z f 1 x z y x z y ENEE 644

Boole’s Expansion Theorem The cofactor of f(x1,…,xn) w.r.t. xi (or x’i) is a Boolean function , s.t. Boole’s Expansion Theorem: ENEE 644

Boole’s Expansion: Examples f(x) = x • f(1) + x’ • f(0) for single-variable x = (x + f(0)) • (x’+f(1)) (from duality) f(x+y) • f(x’+y) = f(1) • f(y) Define g(x,y) = f(x+y)f(x’+y) g(x,y) = xg(1,y) + x’g(0,y) = xf(1)f(y) + x’f(y)f(1) = f(1)f(y) What if expand w.r.t variable y? f(x+y) • f(x’+y) =yf(1)f(1) + y’f(x)f(x’) = yf(1)+y’f(1)f(0) = f(1)(yf(1) + y’f(0)) =f(1)f(y) (x+f(0))(x’+f(1)) = xx’ + xf(1) + x’f(0) + f(1)f(0) = xf(1) + x’f(0) + f(1)f(0) = xf(1) + x’f(0) (consensus) ENEE 644

Boole’s Expansion: Examples f y x x’ Hardware? Delay? f 1 y ENEE 644

Complete Expansion minterms discriminants ENEE 644

Canonical Forms A form is called canonical if the representation of the function in that form is unique. Minterm Canonical Form AND-OR circuits Pro and Cons of Canonical Forms Unique up to permutation Inefficient ENEE 644

Normal (Standard) Forms SOP (Disjunctive Normal Form) A disjunction of product terms A product term (1 is also considered a product term) The Primary Objective During Logic Minimization is to Remove the Redundancy in the Representation. ENEE 644

Implicants An implicant of a function is a product term that is included in the function. An implicant is prime if it cannot be included in any other implicants. A prime implicant is essential if it is the only one that includes a minterm. Example: f(x,y,z) = xy’ + yz xy(not I),xyz(I, not PI), xz(PI,not EPI), yz(EPI) x z y xy’z’ xy’z xyz x’yz ENEE 644

Specification for Incompleteness A Boolean function is incomplete if f(x) is NOT defined for some xBn. Such point x is called a don’t care condition. Tabular representation {1-set, 0-set, don’t care set} 1-set = {xy} 0-set = {x’y’} Don’t care set = {x’y, xy’} x y f 1 - ENEE 644

Don’t Care Conditions Satisfiability don’t cares of a subcircuit consist of all input patterns that will never occur. Observability don’t cares of a subcircuit are the input patterns that represent situations when an output is not observed. Example: {xy,x’y} {xy’,x’y’} x y y=0 ENEE 644