1 COMP541 Combinational Logic - II Montek Singh Jan 18, 2012.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Boolean Algebra and Logic Gates
Types of Logic Circuits
Logical Systems Synthesis.
Morgan Kaufmann Publishers
Boolean rules for simplification Dr. Ahmed Telba.
ECE C03 Lecture 21 Lecture 2 Two Level Minimization Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
1 COMP541 Combinational Logic - 2 Montek Singh Jan 18, 2007.
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.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
Canonical Forms and Logic Miniminization
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
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,
CHAPTER 2 Boolean Algebra
Logic Design CS221 1 st Term Boolean Algebra Cairo University Faculty of Computers and Information.
Lecture 2 – Boolean Algebra Lecturer: Amy Ching Date: 21 st Oct 2002.
 Seattle Pacific University EE Logic System DesignSOP-POS-1 The Connection: Truth Tables to Functions abcF abcF
Combinational Logic 1.
Overview Part 1 – Gate Circuits and Boolean Equations
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 6 – Canonical Forms.
Computer Organization and Design Transistors & Logic - II Montek Singh Oct {21,28}, 2015 Lecture 10.
ENG241 Digital Design Week #2 Combinational Logic Circuits.
June 11, 2002© Howard Huang1 Boolean algebra Last time we talked about Boolean functions, Boolean expressions, and truth tables. Today we’ll learn.
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.
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 
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
1 COMP541 Combinational Logic - 3 Montek Singh Jan 21, 2015.
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
CHAPTER 2 Boolean algebra and Logic gates
Digital Logic Circuits, Digital Component and Data Representation Course: BCA-2 nd Sem Subject: Computer Organization And Architecture Unit-1 1.
Boolean Algebra and Logic Gates COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals.
Boolean Algebra & Logic Gates
COMP541 Combinational Logic - 3
Table 2.1 Postulates and Theorems of Boolean Algebra
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
COMP541 Combinational Logic - II
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
Complement of a Function
COMP541 Combinational Logic - 3
Computer Organization and Design Transistors & Logic - II
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Princess Sumaya University
Boolean Algebra A Boolean algebra is a set B of values together with:
Boolean Algebra A Boolean algebra is a set B of values together with:
TN 221: DIGITAL ELECTRONICS 1
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
CSE 311 Foundations of Computing I
Boolean Algebra.
Chapter 2 Boolean Algebra and Logic Gate
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.
COMP541 Combinational Logic - II
Chapter 2 Introduction to Logic Circuits
Table 2.1 Postulates and Theorems of Boolean Algebra
COMP541 Combinational Logic - II
COMP541 Combinational Logic - 3
Design of Digital Circuits Lab 1 Supplement: Drawing Basic Circuits
Boolean Algebra By: Asst Lec. Besma Nazar Nadhem
Circuit Simplification and
Presentation transcript:

1 COMP541 Combinational Logic - II Montek Singh Jan 18, 2012

2Today  Basics of Boolean Algebra (review) Identities and Simplification Identities and Simplification  Basics of Logic Implementation Minterms and maxterms Minterms and maxterms Going from truth table to logic implementation Going from truth table to logic implementation

3Identities  Use identities to manipulate functions  You can use distributive law … … to transform from … to transform from to

4 Table of Identities

5Duals  Left and right columns are duals  Replace AND and OR, 0s and 1s

6 Single Variable Identities

7Commutativity  Operation is independent of order of variables

8Associativity  Independent of order in which we group  So can also be written as and

9Distributivity  Can substitute arbitrarily large algebraic expressions for the variables Distribute an operation over the entire expression Distribute an operation over the entire expression

10 DeMorgan’s Theorem  Used a lot  NOR  invert, then AND  NAND  invert, then OR

11 Truth Tables for DeMorgan’s

12 Algebraic Manipulation  Consider function

13 Simplify Function Apply

14 Fewer Gates

15 Consensus Theorem  The third term is redundant Can just drop Can just drop  Proof summary: For third term to be true, Y & Z both must be 1 For third term to be true, Y & Z both must be 1 Then one of the first two terms is already 1! Then one of the first two terms is already 1!

16 Complement of a Function  Definition: 1s & 0s swapped in truth table  Mechanical way to derive algebraic form Take the dual Take the dual  Recall: Interchange AND and OR, and 1s & 0s Complement each literal Complement each literal

17 Mechanically Go From Truth Table to Function

18 From Truth Table to Func  Consider a truth table  Can implement F by taking OR of all terms that are 1

19 Standard Forms  Not necessarily simplest F  But it’s a mechanical way to go from truth table to function  Definitions: Product terms – AND  ĀBZ Product terms – AND  ĀBZ Sum terms – OR  X + Ā Sum terms – OR  X + Ā This is logical product and sum, not arithmetic This is logical product and sum, not arithmetic

20 Definition: Minterm  Product term in which all variables appear once (complemented or not)

21 Number of Minterms  For n variables, there will be 2 n minterms  Like binary numbers from 0 to 2 n -1  Often numbered same way (with decimal conversion)

22Maxterms  Sum term in which all variables appear once (complemented or not)

23 Minterm related to Maxterm  Minterm and maxterm with same subscripts are complements  Example

24 Sum of Minterms  Like Slide 18  OR all of the minterms of truth table row with a 1 “ON-set minterms” “ON-set minterms”

25 Sum of Products  Simplifying sum-of-minterms can yield a sum of products  Difference is each term need not be a minterm i.e., terms do not need to have all variables i.e., terms do not need to have all variables  A bunch of ANDs and one OR

26 Two-Level Implementation  Sum of products has 2 levels of gates

27 More Levels of Gates?  What’s best? Hard to answer Hard to answer More gate delays (more on this later) More gate delays (more on this later) But maybe we only have 2-input gates But maybe we only have 2-input gates  So multi-input ANDs and ORs have to be decomposed

28 Complement of a Function  Definition: 1s & 0s swapped in truth table  Mechanical way to derive algebraic form Take the dual Take the dual  Recall: Interchange AND and OR, and 1s & 0s Complement each literal Complement each literal

29 Complement of F  Not surprisingly, just sum of the other minterms “OFF-set minterms” “OFF-set minterms”  In this case m 1 + m 3 + m 4 + m 6

30 Product of Maxterms  Recall that maxterm is true except for its own case  So M1 is only false for 001

31 Product of Maxterms  Can express F as AND of all rows that should evaluate to 0 or

32 Product of Sums  Result: another standard form  ORs followed by AND Terms do not have to be maxterms Terms do not have to be maxterms

33Recap  Working (so far) with AND, OR, and NOT  Algebraic identities  Algebraic simplification  Minterms and maxterms  Can now synthesize function (and gates) from truth table

34 Next Time  Lab on Fri, 1/20: Demo lab software Demo lab software Do 1 st lab assignment Do 1 st lab assignment  download software: see website for link  couple of simple Verilog programming problems  Next Week: More on combinational logic