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.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Logical Systems Synthesis.
Morgan Kaufmann Publishers
Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 4 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty.
ECE 301 – Digital Electronics Minterm and Maxterm Expansions and Incompletely Specified Functions (Lecture #6) The slides included herein were taken from.
ECE 331 – Digital System Design
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
EE365 Boolean algebra Combinational-circuit analysis.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
EECC341 - Shaaban #1 Lec # 5 Winter Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if.
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.
 Analysis and Synthesis:  Analysis start with a logic diagram and proceed to a formal description of the function performed by that circuit, such as.
Logic Functions and their Representation. Slide 2 Combinational Networks x1x1 x2x2 xnxn f.
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 Boolean algebra Boolean algebra, like any other deductive mathematical system, may be defined with –a set of elements, –a set of operators,
4.1 Conversion of English Sentences to Boolean Equations
IKI a-Boolean Algebra Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes at UIUC,
طراحی مدارهای منطقی نیمسال دوم دانشگاه آزاد اسلامی واحد پرند.
ECE 331 – Digital System Design
 Seattle Pacific University EE Logic System DesignSOP-POS-1 The Connection: Truth Tables to Functions abcF abcF
1 Representation of Logic Circuits EE 208 – Logic Design Chapter 2 Sohaib Majzoub.
Combinational Logic 1.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Combinational Logic Part 2 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Chapter 2: Boolean Algebra and Logic Gates. F 1 = XY’ + X’Z XYZX’Y’XY’X’ZF1F
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
1 ENGR 254 Lecture DeMorgan Symbol Equivalence.
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
Venn Diagram – the visual aid in verifying theorems and properties 1 E.
1 Minterm and Maxterm Expressions Definition: a minterm of n variables is a product of the variables in which each appears exactly once in true or complemented.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 6 – Canonical Forms.
Chap 2. Combinational Logic Circuits
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
ece Parity Used to check for errors Can be either ODD or EVEN Left most bit used as the indicator For EVEN, insert a 0 or a 1 so as to make the.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Module –I Switching Function
Fundamentals of digital electronics Prepared by - Anuradha Tandon Assistant Professor, Instrumentation & Control Engineering Branch, IT, NU.
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,
Chapter 2: Basic Definitions BB inary Operators ●A●AND z = x y = x yz=1 if x=1 AND y=1 ●O●OR z = x + yz=1 if x=1 OR y=1 ●N●NOT z = x = x’ z=1 if x=0.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
Review. Boolean Algebra.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
ECE 301 – Digital Electronics Minimizing Boolean Expressions using K-maps, The Minimal Cover, and Incompletely Specified Boolean Functions (Lecture #6)
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.
CEC 220 Digital Circuit Design Minterms and Maxterms Monday, January 26 CEC 220 Digital Circuit Design Slide 1 of 11.
Boolean or, Switching Algebra. Switching Algebra The two-valued Boolean algebra is also called “Switching algebra” by engineers and computer scientists.
1 CS 352 Introduction to Logic Design Lecture 2 Ahmed Ezzat Boolean Algebra and Its Applications Ch-3 + Ch-4.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
CHAPTER 2 Boolean algebra and Logic gates
Chapter 2: Boolean Algebra and Logic Functions
CS 105 Digital Logic Design
Complement of a Function
Princess Sumaya University
Karnaugh Maps.
ECE 331 – Digital System Design
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
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
EE121 John Wakerly Lecture #3
From now on: Combinatorial Circuits:
Digital Logic Chapter-2
Analysis of Logic Circuits Example 1
Presentation transcript:

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 focus on a specific Boolean algebra with K = {0, 1} This formulation is referred to as “Switching Algebra”

Switching functions Axiomatic definition:

Switching functions Variable: can take either of the values ‘0’ or ‘1’ Let f(x 1, x 2, … x n ) be a switching function of n variables There exist 2 n ways of assigning values to x 1, x 2, … x n For each such assignment of values, there exist exactly 2 values that f(x 1, x 2, … x n ) can take Therefore, there exist switching functions of n variables

Switching functions For 0 variables there exist how many functions? f 0 = 0;f 1 = 1 For 1 variable a there exist how many functions? f 0 = 0;f 1 = a;f 2 = ā;f 3 = 1;

Switching functions For n = 2 variables there exist how many functions? The 16 functions can be represented with a common expression: f i (a, b) = i 3 ab + i 2 ab + i 1 āb + i 0 āb where the coefficients i i are the bits of the binary expansion of the function index (i) 10 = (i 3 i 2 i 1 i 0 ) 2 = 0000, 0001, … 1110, 1111

Switching functions

Truth tables –A way of specifying a switching function –List the value of the switching function for all possible values of the input variables –For n = 1 variables the only non-trivial function is ā

Switching functions Truth tables of the 4 functions for n = 1 Truth tables of the AND and OR functions for n = 2 af(a) = af(a) = af(a) = a af(a) = ā 01 10

Boolean operators Complement:X (opposite of X) AND:X × Y OR:X + Y binary operators, described functionally by truth table.

Alternate Gate Symbols

Switching functions Truth tables –Can replace“1” by T“0” by F

Algebraic forms of Switching functions Sum of products form (SOP) Product of sums form (POS)

Logic representations: (a) truth table (b) boolean equation F = X’Y’Z’ + X’YZ + XY’Z’ + XYZ’ + XYZ F = Y’Z’ + XY + YZ from 1-rows in truth table: F = (X + Y + Z’)(X + Y’ + Z)(X’ + Y + Z’) F = (X + Y’ + Z)(Y + Z’) from 0-rows in truth table:

Literal --- a variable or complemented variable (e.g., X or X') product term --- single literal or logical product of literals (e.g., X or X'Y) sum term --- single literal or logical sum of literals (e.g. X' or (X' + Y)) sum-of-products --- logical sum of product terms (e.g. X'Y + Y'Z) product-of-sums --- logical product of sum terms (e.g. (X + Y')(Y + Z)) normal term --- sum term or product term in which no variable appears more than once (e.g. X'YZ but not X'YZX or X'YZX' (X + Y + Z') but not (X + Y + Z' + X)) minterm --- normal product term containing all variables (e.g. XYZ') maxterm --- normal sum term containing all variables (e.g. (X + Y + Z')) canonical sum --- sum of minterms from truth table rows producing a 1 canonical product --- product of maxterms from truth table rows producing a 0 Definitions:

Truth table vs. minterms & maxterms

Switching functions

The order of the variables in the function specification is very important, because it determines different actual minterms

Truth tables Given the SOP form of a function, deriving the truth table is very easy: the value of the function is equal to “1” only for these input combinations, that have a corresponding minterm in the sum. Finding the complement of the function is just as easy

Truth tables

Truth tables and the SOP form

Minterms How many minterms are there for a function of n variables? 2 n What is the sum of all minterms of any function ? (Use switching algebra)

Maxterms A sum term that contains each of the variables in complemented or uncomplemented form is called a maxterm A function is in canonical Product of Sums form (POS), if it is a product of maxterms

Maxterms

As with minterms, the order of variables in the function specification is very important. If a truth table is constructed using maxterms, only the “0”s are the ones included –Why?

Maxterms

It is easy to see that minterms and maxterms are complements of each other. Let some minterm ; then its complement

Maxterms How many maxterms are there for a function of n variables? 2 n What is the product of all maxterms of any function? (Use switching algebra)

Derivation of canonical forms

Canonical forms Contain each variable in either true or complemented form SOP Sum of minterms 2 n minterms 0…2 n -1 Variable “true” if bit = 1 Complemented if bit =0 POS Product of maxterms 2 n maxterms 0…2 n -1 Variable “true” if bit = 0 Complemented if bit =1

Canonical forms SOP If row i of the truth table is = 1, then minterm m i is included in f (i  S) POS If row k of the truth table is = 0, then maxterm M i is included in f (k  S)

Canonical forms Where U is the set of all 2 n indexes SOP The sum of all minterms = 1 If Then POS The product of all maxterms = 0 If Then

F = X’Y’Z’ + X’YZ + XY’Z’ + XYZ’ + XYZ =  (0, 3, 4, 6, 7) F = (X + Y + Z’)(X + Y’ + Z)(X’ + Y + Z’) =  (1, 2, 5) Shortcut notation: Note equivalences:  (0, 3, 4, 6, 7) =  (1, 2, 5) [  (0, 3, 4, 6, 7)]’ =  (1, 2, 5) =  (0, 3, 4, 6, 7) [  (1, 2, 5)]’ =  (0, 3, 4, 6, 7) =  (1, 2, 5)

Incompletely specified functions