EECC341 - Shaaban #1 Lec # 5 Winter 2001 12-13-2001 Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if.

Slides:



Advertisements
Similar presentations
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
Advertisements

Types of Logic Circuits
Logical Systems Synthesis.
ECE 2110: Introduction to Digital Systems Combinational Logic Design Principles.
Chapter 2 Logic Circuits.
Morgan Kaufmann Publishers
Computer Logic and Digital Design Chapter 2 Henry Hexmoor AND logic
EECC341 - Shaaban #1 Lec # 10 Winter Implementing n-variable Functions Using 2 n -to-1 Multiplexers Any n-variable logic function, in canonical.
EE365 Boolean algebra Combinational-circuit analysis.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #2 Boolean Laws and Methods.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
 Analysis and Synthesis:  Analysis start with a logic diagram and proceed to a formal description of the function performed by that circuit, such as.
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
Logic Functions and their Representation. Slide 2 Combinational Networks x1x1 x2x2 xnxn f.
1 EECC341 - Shaaban #1 Lec # 6 Winter Combinational Circuit Analysis Example Given this logic circuit we can : Find corresponding logic.
Conversion between number systems:
EECC341 - Shaaban #1 Lec # 7 Winter Combinational Circuit Minimization Canonical sum and product logic expressions do not provide a circuit.
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra Computer Organization 1 © McQuain Boolean Algebra A Boolean algebra is a set B of values together with: -two binary operations,
IKI a-Boolean Algebra Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes at UIUC,
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Switching functions The postulates and sets of Boolean logic are presented in generic terms without the elements of K being specified In EE we need to.
ECE 331 – Digital System Design
 Seattle Pacific University EE Logic System DesignSOP-POS-1 The Connection: Truth Tables to Functions abcF abcF
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.
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
1 ENGR 254 Lecture DeMorgan Symbol Equivalence.
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
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
LOGIC GATES & BOOLEAN ALGEBRA
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A 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.
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
1 COMP541 Combinational Logic - II Montek Singh Jan 18, 2012.
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,
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
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.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
Boolean or, Switching Algebra. Switching Algebra The two-valued Boolean algebra is also called “Switching algebra” by engineers and computer scientists.
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.
Boolean Algebra and Logic Gates COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals.
Chapter 2: Boolean Algebra and Logic Functions
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
ECE 2110: Introduction to Digital Systems
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
Princess Sumaya University
Boolean algebra Last time we talked about Boolean functions, Boolean expressions, and truth tables. Today we’ll learn how to how use Boolean algebra to.
ECE 331 – Digital System Design
Boolean Algebra.
Boolean Algebra.
CSE 370 – Winter Combinational Logic - 1
Functions Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways: We can represent.
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
Digital Systems Design
COMP541 Combinational Logic - II
Chapter 2 Introduction to Logic Circuits
EE121 John Wakerly Lecture #3
From now on: Combinatorial Circuits:
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Presentation transcript:

EECC341 - Shaaban #1 Lec # 5 Winter Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if 0 and 1 are swapped and. and + are swapped. True because all the duals of all the axioms are true, so duals of all switching-algebra theorems can be proven using the duals of axioms. Dual of a logic expression: For a fully parenthesized logic expression F(X 1, X 2, …., X n, +,., ’) then the dual expression, F D, is the same expression with +,. swapped: F D (X 1, X 2, …., X n, +,., ’) = F(X 1, X 2, …., X n,., +, ’) The generalized DeMorgan’s theorem T14 can be stated as: [F(X 1, X 2, …., X n )]’ = F D (X 1 ’, X 2 ’, …., X n ’)

EECC341 - Shaaban #2 Lec # 5 Winter Switching Algebra Axioms & Theorems (A1)X = 0 if X  1(A1’)X = 1 if X  0 (A2)If X = 0, then X’ = 1(A2’)if X = 1, then, X’ = 0 (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 = = 1 (T1)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) (T6)X + Y = Y + X (T6’) X. Y = Y. X (Commutativity) (T7)(X + Y) + Z = X + (Y + Z)(T7’) (X. Y). Z = X. (Y. Z) (Associativity) (T8) X. Y + X. Z = X. (Y + Z)(T8’)(X + Y). (X + Z) = X + Y. Z (Distributivity) (T9) X + X. Y = X (T9’)X. (X + Y) = X (Covering) (T10) X. Y + X. Y’ = X(T10’)(X + Y). (X + Y’) = X (Combining) (T11)X. Y + X’. Z + Y. Z = X. Y + X’. Z (T11’)(X + Y). ( X’ + Z). (Y + Z) = (X + Y). (X’ + Z) (Consensus) (T12)X + X X = X(T12’) X. X..... X = X (Generalized idempotency) (T13)(X 1. X X n )’ = X 1 ’ + X 2 ’ X n ’ (T13’)(X 1 + X X n )’ = X 1 ’. X 2 ’..... X n ’ (DeMorgan’s theorems) (T14)[F(X 1, X 2,..., X n, +,.)]’ = F(X 1 ’, X 2 ’,..., X n ’,., +) (Generalized DeMorgran’s theorem)

EECC341 - Shaaban #3 Lec # 5 Winter Logic Expression Algebraic Manipulation Example Prove that the following identity is true using Algebraic expression Manipulation : (one can also prove it using a truth table) X.Y + X. Z = ((X’ + Y’). (X’ + Z’))’ –Starting from the left hand side of the identity: Let F = X.Y + X. Z A = X. Y B = X. Z Then F = A + B –Using DeMorgan’s theorem T 13 on F: F = A + B = (A’. B’)’ (1) –Using DeMorgan’s theorem T 13’ on A, B: A = X. Y = (X’ + Y’)’ (2) B = X. Z = (X’ + Z’)’ (3) –Substituting A, B from (2), (3), back in F in (1) gives: F = (A’. B’)’ = ((X’ + Y’). (X’ + Z’))’ Which is equal to the right hand side of the identity.

EECC341 - Shaaban #4 Lec # 5 Winter Standard Representations of Logic Functions Truth table for n-variable logic function : Input combinations are arranged in 2 n rows in ascending binary order, and the output values are written in a column next to the rows. Practical for functions with a small number of variables. The general structure of a 3-variable truth table is given by: Row X Y Z F(X,Y,Z) F(0,0,0) F(0,0,1) F(0,1,0) F(0,1,1) F(1,0,0) F(1,0,1) F(1,1,0) F(1,1,1) Truth table for a specific function: Row X Y Z F

EECC341 - Shaaban #5 Lec # 5 Winter Logic Function Representation Definitions A literal: is a variable or a complement of a variable Examples: X, Y, X’, Y’ A product term: is a single literal, or a product of two or more literals. Examples: Z’ W.Y.Y X.Y’.Z W’.Y’.Z A sum-of-products expression: is a logical sum of product terms. Example: Z’ + W.X.Y + X.Y’.Z + W’.Y’.Z A sum term: is a single literal or logical sum of two or more literals Examples: Z’ W + X + Y X + Y’ + Z W’ + Y’ + Z A product-of-sums expression: is a logical product of sum terms. Example: Z’. (W + X + Y). (X + Y’ + Z). (W’ + Y’ + Z) A normal term: is a product or sum term in which no variable appears more than once Examples of non-normal terms: W.X.X.Y’ W+W+X’+Y X.X’.Y Examples of normal terms: W. X. Y’ W + X’ + Y

EECC341 - Shaaban #6 Lec # 5 Winter Logic Function Representation Definitions Minterm An n-variable minterm is a normal product term with n literals. There are 2 n such products terms. Example of 4-variable minterms: W.X’.Y’.Z’ W.X.Y’.Z W’.X’.Y.Z’ Maxterm An n-variable maxterm is a normal sum term with n literals. There are 2 n such sum terms. Examples of 4-variable maxterms: W’ + X’ + Y + Z’ W + X’ + Y’ + Z W’ + X’ + Y + Z A minterm can be defined as as product term that is 1 in exactly one row of the truth table. A maxterm can similarly be defined as a sum term that is 0 in exactly one row in the truth table.

EECC341 - Shaaban #7 Lec # 5 Winter Minterms/Maxterms for A 3-variable function F(X,Y,Z) Row X Y Z F Minterm Maxterm F(0,0,0) X’.Y’.Z’ X + Y + Z F(0,0,1) X’.Y’.Z X + Y + Z’ F(0,1,0) X’.Y.Z’ X + Y’ + Z F(0,1,1) X’.Y.Z X + Y’ + Z’ F(1,0,0) X.Y’.Z’ X’ + Y + Z F(1,0,1) X.Y’.Z X’ + Y + Z’ F(1,1,0) X.Y.Z’ X’ + Y’ + Z F(1,1,1) X.Y.Z X’ + Y’ + Z’

EECC341 - Shaaban #8 Lec # 5 Winter Canonical Sum Representation Minterm number: minterm i refers to the minterm corresponding to row i of the truth table. For n-variables i is in the set {0,1, …, 2 n -1} The canonical sum representation of a logic function is a sum of the minterms corresponding to the truth table rows for which the function produces a 1 output. A short-hand representation of the minterm list uses the  notation and minterm numbers to indicate the sum of minterms of the function. This representation is usually realized using 2-level AND-OR logic circuits with inverters at AND gates inputs as needed.

EECC341 - Shaaban #9 Lec # 5 Winter Canonical Sum Example The function represented by the truth table: has the canonical sum representation: F =  X,Y,Z (0, 3, 4, 6, 7) = X’.Y’.Z’ + X’.Y.Z + X.Y’.Z’ + X.Y’.Z’ + X.Y.Z Row X Y Z F Minterm list using  notation Algebraic canonical sum of minterms

EECC341 - Shaaban #10 Lec # 5 Winter Canonical Product Representation Maxterm i refers to the maxterm corresponding to row i of the truth table. For n-variables i is in the set {0,1, …, 2 n -1} The canonical product representation of a logic function is the product of the maxterms corresponding to the truth table rows for which the function produces a 0 output. The product of such minterms is called a maxterm list A short-hand representation of the maxterm list uses the  notation and maxterm numbers to indicate the product of maxterms of the function. This representation is usually realized using 2-level OR-AND logic circuits with inverters at OR gates inputs as needed.

EECC341 - Shaaban #11 Lec # 5 Winter Canonical Product Example The function represented by the truth table: has the canonical product representation: F =  X,Y,Z (1,2,5) = (X + Y + Z’). (X + Y’ + Z). (X’ + Y + Z’) Row X Y Z F Maxterm list using  notation Algebraic canonical product of maxterms

EECC341 - Shaaban #12 Lec # 5 Winter Conversion Between Minterm/Maxterm Lists To convert between a minterm list and a maxterm list take the set complement. Examples:  X,Y,Z (0,1,2,3) =  X,Y,Z (4,5,6,7)  X,Y (1) =  X,Y (0,2,3)  W,X,Y,Z (0,1,2,3,5,7,11,13) =  W,X,Y,Z (4,6,8,9,12,14,15)