More Gates & Minterm Maxterm

Similar documents
CSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

Boolean Algebra Part 1

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

Boolean Algebra (cont d) UNIT 3 BOOLEAN ALGEBRA (CONT D) Guidelines for Multiplying Out and Factoring. Objectives. Iris Hui-Ru Jiang Spring 2010

BOOLEAN ALGEBRA & LOGIC GATES

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

CH3 Boolean Algebra (cont d)

Unit 3 Boolean Algebra (Continued)

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

CSE140: Components and Design Techniques for Digital Systems

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

CSE140: Midterm 1 Solution and Rubric

Switching Algebra and Logic Gates

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

Logic in Computer Science: Logic Gates

2.0 Chapter Overview. 2.1 Boolean Algebra

Simplifying Logic Circuits with Karnaugh Maps

Logic Reference Guide

Chapter 5. Rational Expressions

CM2202: Scientific Computing and Multimedia Applications General Maths: 2. Algebra - Factorisation

Gates, Circuits, and Boolean Algebra

Section 1. Finding Common Terms

Digital Logic Design

Combinational circuits

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Binary Adders: Half Adders and Full Adders

Basic Logic Gates Richard E. Haskell

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

FACTORING ax 2 bx c. Factoring Trinomials with Leading Coefficient 1

Two-level logic using NAND gates

DESIGN OF GATE NETWORKS

FINDING THE LEAST COMMON DENOMINATOR

BEGINNING ALGEBRA ACKNOWLEDMENTS

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

CHAPTER 3 Boolean Algebra and Digital Logic

COMPUTER SCIENCE. Paper 1 (THEORY)

Factoring Polynomials

Elementary Logic Gates

Factoring - Grouping

Definitions 1. A factor of integer is an integer that will divide the given integer evenly (with no remainder).

Gates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

How To Factor By Gcf In Algebra 1.5

1.4. Arithmetic of Algebraic Fractions. Introduction. Prerequisites. Learning Outcomes

Chapter 1. Computation theory

SPECIAL PRODUCTS AND FACTORS

1.5. Factorisation. Introduction. Prerequisites. Learning Outcomes. Learning Style

Understanding Logic Design

FACTORING POLYNOMIALS

How To Solve Factoring Problems

3.Basic Gate Combinations

Lecture 5: Gate Logic Logic Optimization

Lecture 2 Matrix Operations

Sect Greatest Common Factor and Factoring by Grouping

A Course Material on DIGITAL PRINCIPLES AND SYSTEM DESIGN

1.3 Polynomials and Factoring

A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc

Scilab Textbook Companion for Digital Electronics: An Introduction To Theory And Practice by W. H. Gothmann 1

Factoring Flow Chart

Factoring Quadratic Expressions

( ) FACTORING. x In this polynomial the only variable in common to all is x.

Rotation Matrices and Homogeneous Transformations

Factoring Guidelines. Greatest Common Factor Two Terms Three Terms Four Terms Shirley Radai

Tim Kerins. Leaving Certificate Honours Maths - Algebra. Tim Kerins. the date

5.1 FACTORING OUT COMMON FACTORS

Negative Integer Exponents

Click on the links below to jump directly to the relevant section

C H A P T E R. Logic Circuits

Factoring - Greatest Common Factor

NSM100 Introduction to Algebra Chapter 5 Notes Factoring

DEPARTMENT OF INFORMATION TECHNLOGY

AIP Factoring Practice/Help

Algebra 1 Chapter 08 review

PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include

#6 Opener Solutions. Move one more spot to your right. Introduce yourself if needed.

COMPUTER SCIENCE 1999 (Delhi Board)

~ EQUIVALENT FORMS ~

Factoring Methods. Example 1: 2x * x + 2 * 1 2(x + 1)

7-6. Choosing a Factoring Model. Extension: Factoring Polynomials with More Than One Variable IN T RO DUC E T EACH. Standards for Mathematical Content

Factoring (pp. 1 of 4)

FACTORING OUT COMMON FACTORS

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

6.5 Factoring Special Forms

Factoring Polynomials

ENGI 241 Experiment 5 Basic Logic Gates

Factoring - Factoring Special Products

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Introduction. The Quine-McCluskey Method Handout 5 January 21, CSEE E6861y Prof. Steven Nowick

Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws.

Combinational Logic Design

Name Intro to Algebra 2. Unit 1: Polynomials and Factoring

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, The Binary Adder

Linear and quadratic Taylor polynomials for functions of several variables.

15.1 Factoring Polynomials

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

In algebra, factor by rewriting a polynomial as a product of lower-degree polynomials

Gröbner Bases and their Applications

Transcription:

More Gates & Minterm Maxterm

Outline Review: Duality Principle Mores gates: XOR,XNOR, NAND, NOR Design Min term & Sum of Product Max Term & Product of SUM Boolean function: Representation, Canonical form Karnough map simplification 2

Principle of Duality Dual of a statement S is obtained By interchanging * and + By interchanging and By interchanging for all x by x also valid (for an expression) only for simple demorgan law Dual of (*)*( (a*)*(+a ) = is (a+)+(*a ) (* = (a+b) = a * b ( a+b ) * = (a *b )+

Duality examples x + = x x.=x X+x = A+B C A B +AB x.x = A. (B +C) (A +B ).(A+B) 4

Logic Gates: XOR, XNOR XOR A B A XOR B A B A XNOR B XNOR 5

Logic Gates: NAND, NOR NAND A B A NAND B A B A NOR B NOR NOR 6

NAND & NOR are universal (xx) = x ((xy) ) = xy (x y ) = x+y X (XX) =X X Y X (XY) X ((XY) ) =XY (X Y ) =X+Y Y Y 7

NAND & NOR are universal (x+x) = x ((x+y) ) = x+y (x +y ) = x.y X (X+X) =X X Y (X+Y) ((X+Y) ) =X+Y X X (X +Y ) =XY Y Y 8

Multi input input gate X X+X2+X3+ +Xn X2 X3 Xn X X2 X3 X. X2. X3..Xn Xn 9

Boolean Functions:Terminology F(a,b,c) = a bc + abc + ab + c Variable Represents a value ( or ), Three variables: a, b, and c Literal Appearance of a variable, in true or complemented form Nine literals: a,, b, c, a, b, c, a, b, and c Product term Product of literals, Four product terms: a bc, abc, ab, c p Sum of products (SOP) Above equation is in sum of products form. F = (a+b)c + d is not.

Representations of Boolean Functions English : F outputs when a is and b is, or when a is and b is. English 2: F outputs when a is, regardless of b s value (a) a a b F b Equation : F(a,b) = a b + a b F Equation 2: F(a,b) = a (b) (c) Circuit Truth table a F (d) Circuit 2 function F A function can be represented in different ways Above shows seven representations of the same functions F(a,b), using four different methods: English, Equation, Circuit, and Truth Table

Truth Table Representation of Functions Define value of F for each possible c d a b F c a b F a b F p combination of input values 2 input function: 4 rows (a) 2 input function: 4 rows 3 input function: 8 rows 4 input function: 6 (b) p rows Q: Use truth table to define function F(a b c) (b) c a b F a define function F(a,b,c) that is when abc is 5 or greater in binary (c)

Converting among Representations Can convert from any representation to any other Common conversions Equation to circuit Truth table to equation Equation to truth table Easy just evaluate equation for each input combination (row) Creating intermediate columns helps Q: Convert to truth table: F = a b + a b Inputs a b a' b' a' b Output F Inputs a b Outputs F F = a b b + a b Term F = sum of a b a b ab Q: Convert to equation a b c F ab c abc abc F = ab c + abc + abc

Standard Representation: Truth Table How to determine two functions are the same? Use algebraic methods But tif we failed, does that t prove not equal? No. Solution: Convert to truth tables Only ONE truth thtbl table representation tti of given same functions: Standard representation F = ab + a F = a b +a b + ab a b F a b F a

Canonical Form Sum of Minterms Truth thtbl tables too big for numerous inputs Use standard form of equation instead Known as canonical form Regular algebra: group terms of polynomial by power ax 2 + bx + c (3x 2 + 4x + 2x 2 + 3 + > 5x 2 + 4x + 4) Boolean algebra: create sumof minterms Minterm: product term with every function literal appearing exactly once, in true or complemented form Just multiply out equation until sum of product terms Then expand each term until all terms are minterms Determine if F(a,b)=ab+a is same function as F(a,b) = a b +a b+ab b+ab by to canonical form. F = ab+a (already sum of products) a F=ab +a (b+b ) a(b+b (expanding term) F = ab + a b + a b (it is canonical form)

Canonical form or Standard Form Canonical forms Sum of minterms (SOM) Product of maxterms (POM) Standard forms (may use less gates) Sum of products (SOP) Product of sums (POS) F = ab+a (already sum of products:sop) F=ab +a (b+b ) a(b+b (expanding term) F = ab + a b + a b (it is canonical form:som)

Canonical Forms It is useful to specify Boolean functions in a form that: Allows comparison for equality. Has a correspondence to the truth tables CanonicalForms incommonusage: Sum of Minterms (SOM) Productof of Maxterms (POM)

Minterms product term is a term where literals are ANDed. Example: x y, xz, xyz, minterm : A product term in which all variables appear exactly once, in normal or complemented form Example: F(x,y,z) has 8 minterms x y z, x y z, x yz,... Function with n variables has 2 n minterms A minterm equals at exactly one input combination and is equal to otherwise Example: x y z = only when x=, y=, z= A minterm is denoted as m i where i corresponds the input combination at which this minterm is equal to

2 Variable Minterms Two variables (X and Y) produce 2x2=4 combinations XY (both normal) XY (X normal, Y complemented) X Y (X complemented, Y normal) X Y (both complemented)

Maxterms Maxterms are OR terms with every variable in true or complemented form. X+Y (both normal) X+Y (x normal, y complemented) X +Y (x complemented, y normal) X +Y (both complemented)

Maxterms and Minterms Two variable minterms and maxterms. Index Minterm Maxterm x y x + y x y x + y 2 x y x + y 3 x y x + y The index above is important for describing which variables in the terms are true and which are complemented.

Minterms Variable complemented if Variable uncomplemented if m i indicated the i th minterm i indicates the binary combination m i is equal to for ONLY THAT combination

Maxterms Sum term : A term where literals are ORed. Example: x +y, x+z, x+y+z, Maxterm : a sum term in which all variables appear exactly once, in normal or complemented form Example: F(x,y,z) has 8 maxterms (x+y+z), (x+y+z ), (x+y +z),... Function with n variables has 2 n maxterms A maxterm equals at exactly one input combination and is equal to otherwize Example: (x+y+z) = only when x=, y=, z= A maxterm is denoted as M i where i corresponds the input combination at which this maxterm is equal to

Maxterms Variable complemented if Variable not complemented if M i indicated the i th maxterm i indicates the binary combination M i is equal to for ONLY THAT combination

Expressing Functions with Minterms Boolean function can be expressed algebraically from a give truth table Forming sum of ALL the minterms that produce in the function X Y Z m F Example : Consider the function m defined by the truth table m m 2 F(X,Y,Z)= X Y Z + X YZ + XY Z + m 3 XYZ m 4 = m + m 2 + m 5 + m 7 m 5 = m(, (257) 2, 5, m 6 m 7

Expressing Functions with Maxterms Boolean function : Expressed algebraically from a give truth table By forming logical product (AND) of ALL the maxterms that produce in the function Example: X Y Z M F F Consider the function defined by the truth table F(X,Y,Z) = Π M(,3,4,6) 2 Applying DeMorgan F =m +m 3 +m 4 + m 6 = m(346) m(,3,4,6) F = F = [m + m 3 + m 4 + m 6 ] = m.m 3.m 4.m 6 = M.M 3.M 4.M 6 are missing from the previous list in Σm(,2,5,7) = Π M(,3,4,6) X Y Z M F F M M M 2 M 3 M 4 M 5 M 6 M 7 Notethethe indicesinthislistarethose those that

Sum of Minterms vs Product of Maxterms A function can be expressed algebraically as: The sum of minterms The product of maxterms Given the truth table, writing F as m i for all minterms that produce in the table, or ΠM i for all maxterms that produce in the table Minterms and Maxterms are complement of each other.

Example: minterm & maxterm Write E = Y + X Z in the form of m i and ΠM i? Method First construct the Truth Table as shown E = m(245)and m(,,2,4,5), E = ΠM(3,6,7) X Y Z m M E m M m M m 2 M 2 m 3 M 3 m 4 M 4 m 5 M 5 m 6 M 6 m 7 M 7

Example (Cont.) Solution: Method2_a E = Y +X Z = Y (X+X )(Z+Z ) + Z (Y+Y ) = (XY +X Y )(Z+Z ) + X YZ + X Z Y = Y Z+X Y Z+XY Z +X Y Z + X YZ +X Z Y XYZ+XZY = m 5 + m + m 4 + m + m 2 + m = m + m + m 2 + m 4 + m 5 = m(,,2,4,5) To find the form ΠMi, consider the remaining indices E = ΠM(3,6,7) Solution: Method2_b E = Y +X Z E = Y(X+Z) = YX + YZ = YX(Z+Z ) + YZ(X+X ) = XYZ+XYZ +X YZ E = (X +Y +Z )(X +Y +Z)(X+Y +Z ) = M 7. M 6. M 3 = ΠM(3,6,7) To find the form Sm i, consider the remaining indices E = m(,,2,4,5)

Canonical Forms The sum of minterms and the product of maxterms forms are known as the canonical forms of a function.

Standard Forms Sum of Products (SOP) and Product of Sums (POS) are also standard forms AB+CD = (A+C)(B+C)(A+D)(B+D) ) The sum of minterms is a special case of the SOP form, where all product terms are minterms The product of maxterms is a special case of the POS form, where all sum terms are maxterms

SOP and POS Conversion SOP POS POS SOP F = AB + CD = (AB+C)(AB+D) = (A+C)(B+C)(AB+D) = (A+C)(B+C)(A+D)(B+D) ) Hint : Use id5: X+YZ=(X+Y)(X+Z) Hint 2: Factor F = (A +B)(A +C)(C+D) = (A +BC)(C+D) ) = A C+A D+BCC+BCD = A C+A D+BC+BCD = A C+A D+BC Hint : Use id5 (X+Y)(X+Z)=X+YZX+YZ Hint 2: Multiply

Thanks 33