1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Logical Systems Synthesis.
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.
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.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
1 Boolean Algebra & Logic Design. 2 Developed by George Boole in the 1850s Mathematical theory of logic. Shannon was the first to use Boolean Algebra.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
Digital Logic Design ESGD2201
CHAPTER 2 Boolean Algebra
Logic Design CS221 1 st Term Boolean Algebra Cairo University Faculty of Computers and Information.
Chapter 2 Combinational Systems And / Or / Not. TRIAD PRINCIPLE: Combinational is about And / Or / Not combinations As well as equivalent functions. It.
1 Logic Gates Digital Computer Logic Kashif Bashir WWW:
Lecture 2 – Boolean Algebra Lecturer: Amy Ching Date: 21 st Oct 2002.
Combinational Logic 1.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
Computer Organization and Design Transistors & Logic - II Montek Singh Oct {21,28}, 2015 Lecture 10.
ENG241 Digital Design Week #2 Combinational Logic Circuits.
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.
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 
1 COMP541 Combinational Logic - II Montek Singh Jan 18, 2012.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
1 COMP541 Combinational Logic - 3 Montek Singh Jan 21, 2015.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
ECE DIGITAL LOGIC LECTURE 6: BOOLEAN ALGEBRA Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 02/01/2016.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Circuit Synthesis A logic function can be represented in several different forms:  Truth table representation  Boolean equation  Circuit schematic 
Digital Logic & Design Dr. Waseem Ikram Lecture 09.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
CHAPTER 2 Boolean algebra and Logic gates
Boolean Algebra & Logic Gates
COMP541 Combinational Logic - 3
De Morgan’s Theorem,.
COMP541 Combinational Logic - II
ECE 2110: Introduction to Digital Systems
Unit 2 Boolean Algebra.
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
Logic Gates.
COMP541 Combinational Logic - 3
Computer Organization and Design Transistors & Logic - II
Digital Logic.
Overview Part 1 – Gate Circuits and Boolean Equations
Princess Sumaya University
TN 221: DIGITAL ELECTRONICS 1
ECE 331 – Digital System Design
Boolean Algebra.
Chapter 2 Boolean Algebra and Logic Gate
BASIC & COMBINATIONAL LOGIC CIRCUIT
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.
Logic Gates.
Boolean Algebra.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
COMP541 Combinational Logic - II
Chapter 2 Introduction to Logic Circuits
From now on: Combinatorial Circuits:
COMP541 Combinational Logic - II
COMP541 Combinational Logic - 3
Design of Digital Circuits Lab 1 Supplement: Drawing Basic Circuits
Analysis of Logic Circuits Example 1
Circuit Simplification and
Presentation transcript:

1 COMP541 Combinational Logic Montek Singh Jan 16, 2007

2Today  Basics of digital logic (review) Basic functions Basic functions Boolean algebra Boolean algebra Gates to implement Boolean functions Gates to implement Boolean functions  Identities and Simplification (review?)

3 Binary Logic  Binary variables Can be 0 or 1 (T or F, low or high) Can be 0 or 1 (T or F, low or high) Variables named with single letters in examples Variables named with single letters in examples Really use words when designing circuits Really use words when designing circuits  Basic Functions AND AND OR OR NOT NOT

4AND  Symbol is dot C = A · B C = A · B  Or no symbol C = AB C = AB  Truth table ->  C is 1 only if Both A and B are 1 Both A and B are 1

5OR  Symbol is + Not addition Not addition C = A + B C = A + B  Truth table ->  C is 1 if either 1 Or both! Or both!

6NOT  Unary  Symbol is bar C = Ā C = Ā  Truth table ->  Inversion

7Gates  Circuit diagrams are traditional to document circuits  Remember that 0 and 1 are represented by voltages

8 AND Gate Timing Diagrams

9 OR Gate

10Inverter

11 More Inputs  Work same way  What’s output?

12 Representation: Schematic  Schematic = circuit diagram

13 Representation: Boolean Algebra  For now equations with operators AND, OR, and NOT  Can evaluate terms, then final OR  Alternate representations next

14 Representation: Truth Table  2 n rows where n = # of variables

15Functions  Can get same truth table with different functions  Usually want ‘simplest’ Fewest gates, or using only particular types of gates Fewest gates, or using only particular types of gates More on this later More on this later

16Identities  Use identities to manipulate functions  I used distributive law … … to transform from … to transform from to

17 Table of Identities

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

19 Single Variable Identities

20Commutativity  Operation is independent of order of variables

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

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

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

24 Truth Tables for DeMorgan’s

25 Algebraic Manipulation  Consider function

26 Simplify Function Apply

27 Fewer Gates

28 Consensus Theorem  The third term is redundant Can just drop Can just drop  Proof in book, but in 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 must be 1! Then one of the first two terms must be 1!

29 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

30 Mechanically Go From Truth Table to Function

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

32 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

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

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

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

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

37 Sum of Minterms  Like the introductory slide  OR all of the minterms of truth table row with a 1

38 Complement of F  Not surprisingly, just sum of the other minterms  In this case m 1 + m 3 + m 4 + m 6

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

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

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

42 Next Time  Lab Prep Demo lab software Demo lab software Talk about FPGA internals Talk about FPGA internals Overview of components on board Overview of components on board Downloading and testing Downloading and testing  Karnaugh maps: mechanical synthesis approach (quick)