14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Sistemas Digitais I LESI - 2º ano Lesson 3 - Boolean Algebra U NIVERSIDADE DO M INHO E SCOLA DE E NGENHARIA Prof. João Miguel Fernandes
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.
Types of Logic Circuits
Logical Systems Synthesis.
ECE 2110: Introduction to Digital Systems Combinational Logic Design Principles.
Chapter 2 Logic Circuits.
EE365 Boolean algebra Combinational-circuit analysis.
EECC341 - Shaaban #1 Lec # 5 Winter Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
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.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #2 Boolean Laws and Methods.
Modified from John Wakerly Lecture #2 and #3 CMOS gates at the transistor level Boolean algebra Combinational-circuit analysis.
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra. Binary Logic and Gates Binary variables take on one of two values. Logical operators operate on binary values and binary variables. Basic.
Gate Circuits and Boolean Equations BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Boolean Algebra Boolean algebra Boolean algebra, like any other deductive mathematical system, may be defined with –a set of elements, –a set of operators,
Binary Logic and Gates Binary variables take on one of two values.
Combinational Logic 1.
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.
--- outputs logical functions of inputs --- new outputs appear shortly after changed inputs (propagation delay) --- no feedback loops --- no clock Sequential.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS.
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 
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
Boolean Algebra and Logic Gates
KU College of Engineering Elec 204: Digital Systems Design 1 Review D: n bit binary number D = (d n-1 ∙ ∙ ∙ d 1 d 0 ) 2 If D is an unsigned binary number.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
ECE 2110: Introduction to Digital Systems
Boolean or, Switching Algebra. Switching Algebra The two-valued Boolean algebra is also called “Switching algebra” by engineers and computer scientists.
CHAPTER 2 Boolean algebra and Logic gates
Chapter 11 (Part 1): Boolean Algebra
Chapter 2: Boolean Algebra and Logic Functions
ECE 2110: Introduction to Digital Systems
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
ECE 3110: Introduction to Digital Systems
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Overview Part 1 – Gate Circuits and Boolean Equations
Princess Sumaya University
TN 221: DIGITAL ELECTRONICS 1
September 7 Notes Boolean Algebra.
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Lecture 3: Boolean Algebra
CHAPTER 2 Boolean Algebra
Modified from John Wakerly Lecture #2 and #3
Boolean Algebra.
Lecture 3 Boolean algebra
INTRODUCTION TO LOGIC DESIGN Chapter 2 Boolean Algebra and Logic Gates
Boolean Algebra.
Boolean Algebra & Logic Circuits
Chapter 2 Boolean Algebra and Logic Gate
CSE 370 – Winter Combinational Logic - 1
February 7, 2002 John Wawrzynek
Digital Systems Design
EE121 John Wakerly Lecture #3
Digital Logic Chapter-2
ECE 352 Digital System Fundamentals
Digital Logic Chapter-2
Introductory Concepts
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Presentation transcript:

14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra Lecture #4: Boolean Algebra, Theorems, Standard Representation of Logic Functions Boolean Algebra a.k.a. “switching algebra” Deals with Boolean values  0, 1 Positive-logic convention Analog voltages LOW, HIGH  0, 1 Negative logic -- seldom used Signal values denoted by variables (X, Y, FRED, etc) 2 of 23

Axioms (will lead to Theorems) Boolean Algebra is Just Like Boolean Logic … NOT is a prime (): – 0 = 1 – 1 = 0 OR is a plus (+): – 0 + 0 = 0 – 0 + 1 = 1 – 1 + 0 = 1 – 1 + 1 = 1 AND is multiplication dot (): – 0  0 = 0 – 0  1 = 0 – 1  0 = 0 – 1  1 = 1 3 of 23 Axioms (will lead to Theorems) Variable X can take only one of two values: (A1) X = 0 if X ≠ 1 (A1) X = 1 if X ≠ 0 Complement: (A2) if X = 0, then X = 1 (A2) if X = 1 if X = 0 Three axioms to define the AND and the OR operations: (A3) 0  0 = 0 (A3) 1 + 1 = 1 (A4) 1  1 = 1 (A4) 0 + 0 = 0 (A5) 0  1 = 1  0 = 0 (A5) 1 + 0 = 0 + 1 = 1 4 of 23

Boolean Operators Logic Symbols Complement: AND: OR: X (opposite of X) X  Y X + Y X Y X AND Y 1 X Y X OR Y 1 X NOT X 1 Axiomatic definition: A1 – A5, A1 – A5 binary operators, described functionally by truth table 5 of 23 Logic Symbols Z = NOT X Z = X NOT (complement) X X Y Z = X AND Y Z = X  Y AND X Y Z = X OR Y Z = X  Y OR 6 of 23

Each axiom (A1 – A5) has a dual (A1 – A5) Duality Swap 0 & 1, AND & OR Result: Theorems still true Why? Each axiom (A1 – A5) has a dual (A1 – A5) 7 of 23 Some Definitions Literal: a variable or its complement X, X, FRED, CS_L Expression: literals combined by AND, OR, parentheses, complementation X + Y P  Q  R A + B  C ((FRED  Z) + CS_L  A  B  C + Q5)  RESET Equation: Variable = Expression P = ((FRED  Z) + CS_L  A  B  C + Q5)  RESET 8 of 23

Theorems – One Variable X + 0 = X (T1) X  1 = X (Identities) (T2) X + 1 = 1 (T2) X  0 = 0 (Null elements) (T3) X + X = X (T3) X  X = X (Idempotency) (T4) (X) = X (Involution) (T5) X + X = 1 (T5) X  X = 0 (Complements) Proofs by perfect induction Axiom (A1) is the key (a variable can take only one of two values: 0 or 1) 9 of 23 Proofs of One–Variable Theorems (perfect induction) (T3) idempotency: X + X = X [X=0] [X=1] 0+0 = 0 1+1 = 1 true, according to (A4) true, according to (A3) (T4) involution: (X)= X [X=0] [X=1] (0) = 1 = 0 (1) = 0 = 1 true, according to (A2) & (A2) Etc. 10 of 23

Boolean Operator Precedence The order of evaluation is: Parentheses NOT AND OR Consequence: Parentheses appear around OR expressions Example: F = A  (B + C)  (C + D) 11 of 23 Theorems – Two or Three Variables (T6) (T7) X + Y = Y + X (X + Y) + Z = X + (Y + Z) (T6) (T7) X  Y = Y  X (X  Y)  Z = X  (Y  Z) (Commutativity) (Associativity) (T8) (T9) (T10) X  Y + X  Z = X  (Y + Z) X + X  Y = X X  Y + X  Y = X (T8) (T9) (T10) (X + Y)  (X + Z) = X + Y  Z X  (X + Y) = X (X + Y)  (X + Y) = X (Distributivity) (Covering) (Combining) (T11) (T11) X  Y + X  Z + Y  Z = X  Y + X  Z (X + Y)  (X + Z)  (Y + Z) = (X + Y)  (X + Z) (Consensus) 12 of 23

Why Theorems and Proofs? Boolean Algebraic Proof – Example X + X · Y = X  Covering Theorem (T9) Proof Steps: Justification: X + X · Y = X · 1 + X · Y = X · (1 + Y) = X · 1 = X Identity element: X · 1 = X (T1) Distributivity (T8) Null elements (T2): 1 + Y = 1 Identity element (T1) 13 of 23 Why Theorems and Proofs? These theorems are useful rules of substitution for logic expressions Why substitution? —Because we may want to: Design a simpler circuit (faster, easier to implement, cheaper, more reliable) Use different gates for implementation (same reasons) Our primary reason for doing proofs is to learn: Careful and efficient use of the identities and theorems of Boolean algebra, and How to choose the appropriate substitution (“theorem”) to apply to make forward progress, irrespective of the application 14 of 23

Distributivity (dual) (X + Y)  (X + Z) = X  X + X  Z + Y  X + Y  Z = X + X  Z + X  Y + Y  Z = X + X  Y + Y  Z = X + Y  Z (X + Y)  (X + Z) = X + Y  Z (3 + 5)  (3 + 7) ≠ 3 + 5  7 !!! (Distributivity) parentheses, operator precedence! 15 of 23 Consensus Theorem X  Y + X  Z + Y  Z = X  Y + X  Z Consensus (T11) Proof Steps: Justification: XY + XZ + YZ = XY + XZ + 1 · YZ = XY + XZ + (X + X)  YZ = XY + XZ + XYZ + XYZ = XY + XYZ + XZ + XZY = XY ·1 + XYZ + XZ ·1 + XZY = XY  (1+Z) + XZ  (1 + Y) = XY1 + XZ1 = XY + XZ Identity (T1) Complement (T5) Distributive (T8) Commutative (T6) Identity (T1) Distributive (T8) 1+X = 1 (T2) Identity (T1) 16 of 23

Theorems for Expressions The theorems remain valid if a variable is replaced by an expression. X  U  W U  W + Y  Z = (U  W + Y)  (U  W + Z) = = (U + Y)  (W + Y)  (U + Z)  (W + Z)  distributivity (dual) Z  X (X + Y)  (X + X) = X + Y  X = X + Y distributivity (dual) 17 of 23 N-variable Theorems (T12) X + X + … + X = X (Generalized idempotency) (T12) X  X  …  X = X (T13) (T13) (X1  X2  …  Xn) = X1 + X2 + … + Xn (X1 + X2 + … + Xn) = X1  X2  …  Xn (DeMorgan’s theorems) (T14) [F(X1, X2, …, Xn, +, )] = F(X1, X2, …, Xn, , +)  (Generalized DeMorgan’s theorem) ¯¯ (Shannon’s expansion theorems) (T15) (T15) F(X1, X2, …, Xn) = X1  F(1, X2, …, Xn) + X1  F(0, X2, …, Xn) F(X1, X2, …, Xn) = [X1 + F(0, X2, …, Xn)]  [X1 + F(0, X2, …, Xn)] Prove using finite induction Most important: DeMorgan’s theorems 18 of 23

DeMorgan’s Theorems DeMorgan Symbols Proof by finite induction: (basis step, n=2; induction step, n=i  n=i+1) A = X1 + X2 B = X1  X2 If A  B = 0 and A + B = 1 (X1 + X2) = X1  X2 then A = B A  B = (X1 + X2)  (X1  X2) A + B = X1 + X2 + X1  X2 = 0 basis step = X1 + X2  X1 + X2  X1 + X1  X2 = X1 + X1 + X1  X2 = 1 assume n = i true , then for n = i + 1 (Ai + Xi+1) = Bi  Xi+1 induction step 19 of 23 DeMorgan Symbols X  Y OR (X  Y) (X  Y) NOR X  Y X  Y AND (X + Y) (X  Y) NAND X + Y X BUFFER (X) X INVERTER X 20 of 23 10

DeMorgan Symbol Equivalence for NOR X Y X + Y Z = (X + Y) X Y Z = (X  Y) is the equivalent to X X Z = X  Y X Y Z = X  Y Y Y 21 of 23 DeMorgan Symbol Equivalence for NAND NAND X Y X  Y Z = (X  Y) X Y Z = (X  Y) is the equivalent to X X Z = X + Y X Y Z = X + Y Y Y 22 of 23

Sum-of-Products Form Product-of-Sums Form AND-OR: NAND-NAND: NAND-NAND preferred in TTL technology. 23 of 23 Product-of-Sums Form OR-AND: NOR-NOR: Product-of-sums preferred in CMOS technology. 24 of 23