ELEC Digital Logic Circuits Fall 2010 Switching Algebra (Chapter 2)

Slides:



Advertisements
Similar presentations
L14: Boolean Logic and Basic Gates
Advertisements

Combinational Logic Circuits Chapter 2 Mano and Kime.
Logical Systems Synthesis.
Chapter 2 Logic Circuits.
ELEC Digital Logic Circuits Fall 2014 Logic Synthesis (Chapters 2-5) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and.
ELEC Digital Logic Circuits Fall 2008 Logic Minimization (Chapter 3) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and.
ECE C03 Lecture 21 Lecture 2 Two Level Minimization Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
ECE 301 – Digital Electronics Karnaugh Maps (Lecture #7) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,
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
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
W. G. Oldham EECS 40 Fall 2001 Lecture 2 Copyright Regents of University of California The CMOS Inverter: Current Flow during Switching V IN V OUT V DD.
Prof. Kavita Bala and Prof. Hakim Weatherspoon CS 3410, Spring 2014 Computer Science Cornell University See: P&H Appendix B.2 and B.3 (Also, see B.0 and.
Chapter 2: Boolean Algebra and Logic Functions
Gates and Logic: From switches to Transistors, Logic Gates and Logic Circuits Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University.
Lecture 3: Incompletely Specified Functions and K Maps CSE 140: Components and Design Techniques for Digital Systems Fall 2014 CK Cheng Dept. of Computer.
ECE 331 – Digital System Design Transistor Technologies, and Realizing Logic Gates using CMOS Circuits (Lecture #23)
KU College of Engineering Elec 204: Digital Systems Design
Chapter 2 Combinational Systems And / Or / Not. TRIAD PRINCIPLE: Combinational is about And / Or / Not combinations As well as equivalent functions. It.
Digital Logic ENEL 111. Digital systems A digital system is a system whose inputs and outputs fall within a discrete, finite set of values Two main types.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Boolean Algebra and Digital Circuits
ECE 331 – Digital System Design
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
Discrete Mathematics and Its Applications.  The English mathematician George Boole ( ) sought to give symbolic form to Aristotle's system of.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
ELEC Digital Logic Circuits Fall 2014 Switching Algebra (Chapter 2) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and.
Logic and Computer Design Simon Petruc-Naum CS 147 – Dr. S.M. Lee.
Gates and Logic Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell Universty See: P&H Appendix C.2 and C.3 (Also, see C.0 and C.1)
Linear Algebra. Circuits The circuits in computers and other input devices have inputs, each of which is either a 0 or 1, the output is also 0s and 1s.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
LOGIC GATES & BOOLEAN ALGEBRA
Unit 1 Minimization Techniques and Logic Gates. Introduction to Digital Systems Analog devices and systems process time-varying signals that can take.
ECE 301 – Digital Electronics Basic Logic Operations, Boolean Expressions, and Boolean Algebra (Lecture #3)
ELEC Digital Logic Circuits Fall 2015 Switching Algebra (Chapter 2) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and.
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.
Fundamentals of digital electronics Prepared by - Anuradha Tandon Assistant Professor, Instrumentation & Control Engineering Branch, IT, NU.
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
ELEC Digital Logic Circuits Fall 2015 Logic Minimization (Chapter 3) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
ELEC Digital Logic Circuits Fall 2015 Logic Synthesis (Chapters 2-5) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and.
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.
ECE 301 – Digital Electronics Minimizing Boolean Expressions using K-maps, The Minimal Cover, and Incompletely Specified Boolean Functions (Lecture #6)
School of Computer and Communication Engineering, UniMAP DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
Logic gates.
Logic Gates and Boolean Algebra
De Morgan’s Theorem,.
ELEC Digital Logic Circuits Fall 2014 Logic Minimization (Chapter 3)
ECE 2110: Introduction to Digital Systems
ECE 3110: Introduction to Digital Systems
Digital Logic.
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
ECE 331 – Digital System Design
CHAPTER 2 Boolean Algebra
CSE 311 Foundations of Computing I
CSE 370 – Winter Combinational Logic - 1
ECE 331 – Digital System Design
Combinatorial Logic Circuit
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
ELEC 7770 Advanced VLSI Design Spring 2016 Technology Mapping
Chapter 2 Introduction to Logic Circuits
Karnaugh Map Method By: Asst Lec. Besma Nazar Nadhem
Circuit Simplification and
ECE 120 Midterm 2 HKN Review Session.
Presentation transcript:

ELEC 2200-001 Digital Logic Circuits Fall 2010 Switching Algebra (Chapter 2) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and Computer Engineering Auburn University, Auburn, AL 36849 http://www.eng.auburn.edu/~vagrawal vagrawal@eng.auburn.edu Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Switching Algebra A Boolean algebra, where Set K contains just two elements, {0, 1}, also called {false, true}, or {off, on}, etc. Two operations are defined as, + ≡ OR, · ≡ AND. + 1 · 1 Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Claude E. Shannon (1916-2001) http://www.kugelbahn.ch/sesam_e.htm Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Shannon’s Legacy A Symbolic Analysis of Relay and Switching Circuits, Master’s Thesis, MIT, 1940. Perhaps the most influential master’s thesis of the 20th century. An Algebra for Theoretical Genetics, PhD Thesis, MIT, 1940. Founded the field of Information Theory. C. E. Shannon and W. Weaver, The Mathematical Theory of Communication, University of Illinois Press, 1949. A “must read.” Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Switching Devices Electromechanical relays (1940s) Vacuum tubes (1950s) Bipolar transistors (1960 - 1980) Field effect transistors (1980 - ) Integrated circuits (1970 - ) Nanotechnology devices (future) Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Example: Automobile Ignition Engine turns on when Ignition key is applied AND Car is in parking gear OR Brake pedal is on AND Seat belt fastened OR Car is in parking gear Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Switching logic Parking gear Seat belt Key Brake pedal Parking gear Motor Battery Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Define Boolean Variables Parking gear Seat belt Key P = {0, 1} S = {0, 1} Brake pedal Parking gear K = {0, 1} M = {0, 1} B = {0,1} P = {0, 1} Motor Battery 0 means switch “off” or “open” 1 means switch “on” or “closed” Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Write Boolean Function Parking gear Seat belt Key P = {0, 1} S = {0, 1} Brake pedal Parking gear K = {0, 1} M = {0, 1} B = {0,1} P = {0, 1} Motor Battery Ignition function: M = K AND (P OR B) AND (S OR P) = K(P + B)(S + P) Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Simplify Boolean Function M = K AND (P OR B) AND (S OR P) = K(P + B)(S + P) = K(P + B)(P + S) Commutativity = K (P + B S) Distributivity Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Construct an Optimum Circuit M = K (P + B S) Parking gear Key P = {0, 1} Brake pedal Seat belt K = {0, 1} M = {0,1} B = {0,1} S = {0, 1} Motor Battery This is a relay circuit. Earlier logic circuits, even computers, were built with relays. Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Implementing with Relays An electromechanical relay contains: Electromagnet Current source A switch, spring-loaded, normally open or closed Switch has two states, open (0) or closed (1). The state of switch is controlled by “not applying” or “applying” current to electromagnet. Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

One Switch Controlling Other Switches X and Y are normally open. Y cannot close unless a current is applied to X. Y X Y = X Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Inverting Switch Switch X is normally closed and Y is normally open. Y cannot open unless a current is applied to X. Y X Y = X Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Boolean Operations AND – Series connected relays. OR – Parallel relays. A F F A B B F = A B F = A + B Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Complement (Inversion) A F F A B F = A F = A + B Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Relay Computers Conrad Zuse (1910-1995) Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Electronic Switching Devices Electron Tube Fleming, 1904 de Forest, 1906 Point Contact Transistor Bardeen, Brattain, Shockley, 1948 Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Transistor, 1948 The thinker, the tinkerer, the visionary and the transistor John Bardeen, Walter Brattain, William Shockley Nobel Prize, 1956 Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Bipolar Junction Transistor (BJT) Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Field Effect Transistor (FET) Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Integrated Circuit (1958) Jack Kilby (1923-2005), Nobel Prize, 2000 Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

MOSFET (Metal Oxide Semiconductor Field Effect Transistor) Drain Drain Short or Open Short or Open Gate Gate VGS VGS Source Source NMOSFET PMOSFET VGS = 0, open VGS = high, short VGS = 0, short VGS = high, open Reference: R. C. Jaeger and T. N. Blalock, Microelectronic Circuit Design, Third Edition, McGraw Hill. Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

NMOSFET Gate (Early Design) Problem: When A = 1, current leakage causes power dissipation. Solution: Complementary MOS design proposed by Power supply Wanlass, F. M. and Sah, C.T. “Nanowatt Logic Using Field-Effect Metal-Oxide Semiconductor Triodes,” International Solid State Circuits Conference Digest of Technical Papers (February 20, 1963) pp. 32-33. A A Ground Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

CMOS Circuit Wanlass, F. M. "Low Stand-By Power Complementary Field Effect Circuitry.“ U. S. Patent 3,356,858 (Filed June 18, 1963. Issued December 5, 1967). Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

CMOS Logic Gate: Inverter Power supply VDD = 1 volt; voltage depends on technology. A = VDD = 1 volt is state “1” A = GND = 0 volt is state “0” Truth Table A 1 A A A A Electrical Circuit Symbol GND Ground Boolean Function Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

CMOS Logic Gate: NAND VDD Electrical Circuit Boolean Function Symbol Truth Table A B F 1 A A F F B B GND Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

CMOS Logic Gate: NOR VDD Electrical Circuit Boolean Function Symbol Truth Table A B F 1 A A F B F B GND Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

CMOS Logic Gate: AND ≡ Boolean Function Truth Table A B F 1 Symbol A A 1 Symbol A A ≡ F F F B B Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

CMOS Logic Gate: OR ≡ Boolean Function Truth Table A B F 1 Symbol A A 1 Symbol A A ≡ F F F B B Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

CMOS Gates Logic function Number of transistors 1 or 2 inputs N inputs NOT 2 - AND 6 2N + 2 OR NAND 4 2N NOR Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Optimized Ignition Logic M = K (P + B S) = KP + KBS K KP P M B KBS S 3 gates, 20 transistors. Can we reduce transistors? Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Further Optimization M = K (P + B S) = KP + KBS (Theorem 3, involution) = KP · KBS (De Morgan’s theorem) NAND gates 4+6 transistors K KP P M B KBS S 3 gates, 14 transistors. Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Digital Systems Binary Boolean Arithmetic Algebra Switching Theory DIGITAL CIRCUITS Semiconductor Technology Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Digital Logic Design Representation of switching function: Truth table Canonical forms Karnaugh map Logic minimization: Minimize number of literals. Technology mapping: Implement logic function using predesigned gates or building blocks from a technology library. Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Truth Table Truth table is an exhaustive description of a switching function. Contains 2n input combinations for n variables. Example: f(A,B,C) = A B +A C + AC n Input variables Output A B C f(A,B,C) 1 2n rows Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

How Many Switching Functions? Output column of truth table has length 2n for n input variables. It can be arranged in ways for n variables. Example: n = 1, single variable. Input Output functions A F1(A) F2(A) F3(A) F4(A) 1 Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Definitions Boolean variable: A variable denoted by a symbol; can assume a value 0 or 1. Literal: Symbol for a variable or its complement. Product or product term: A set of literals, ANDed together. Example, a bc. Cube: Same as a product term. Sum: A set of literals, Ored together. Example, a + b +c. Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

More Definitions SOP (sum of products): A Boolean function expressed as a sum of products. Example: f(A,B,C) = A B +A C + AC POS (product of sums): A Boolean function expressed as a product of sums. Example: f(A,B,C) = (A +B +C) (A + B +C) ( A +B + C) Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Minterm A product term in which each variable is present either in true or in complement form. For n variables, there are 2n unique minterms. Minterm Product m0 A BC m1 A B C m2 A BC m3 A B C m4 A BC m5 A B C m6 A B C m7 A B C Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Minterms are Canonical Functions 1 m0 m1 m2 m3 m4 m5 m6 m7 Value of minterm 000 001 010 011 100 101 110 111 Input Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Canonical SOP Form a.k.a. Disjunctive Normal Form (DNF) A Boolean function expressed as a sum of minterms. Example: f(A,B,C) = A B +A C + AC = ABC +ABC + ABC + ABC + ABC = m1+m3+m4+m6+m7 =  m(1, 3, 4, 6, 7) Row No. A B C f(A,B,C) 1 2 3 4 5 6 7 Truth table with row numbers Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Maxterm A summation term in which each variable is present either in true or in complement form. For n variables, there are 2n unique maxterms. Maxterm Product M0 A + B + C M1 A + B +C M2 A +B + C M3 A +B +C M4 A + B + C M5 A + B +C M6 A +B + C M7 A + B + C Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Canonical POS Form a.k.a. Conjunctive Normal Form (CNF) A Boolean function expressed as a product of maxterms. Example: f(A,B,C) = A B +A C + AC = (A + B + C)(A +B + C)(A + B +C) = M0 M2 M5 =  M(0, 2, 5) Row No. A B C f(A,B,C) 1 2 3 4 5 6 7 Truth table with row numbers Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Canonical Forms are Unique A canonical form completely defines a Boolean function. That is, for every input the canonical form specifies the value of the function. To determine canonical form: Construct truth table and sum minterms corresponding to 1 outputs, or multiply maxterms corresponding to 0 outputs. Alternatively, use Shannon’s expansion theorem (see Section 2.2.3, page 101). Two Boolean functions are identical if and only if their canonical forms are identical. Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Karnaugh Map 1952: Edward M. Veitch invented a graphical procedure for digital circuit optimization. 1953: Maurice Karnaugh perfected the map procedure: “The Map Method for Synthesis of Combinational Logic Circuits,” Trans. AIEE, pt I, 72(9):593-599, November 1953. Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Karnaugh Map: 2 Variables, A, B A = 0 A = 1 Unit Hamming distance between adjacent cells Each cell is a minterm B = 0 B = 1 00 10 m0 m2 01 11 m3 = AB = 11 (numerical interpretation) m1 m3 Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Representing a Function Place 1 in cells corresponding to minterms in canonical form. For example, see F = A B + AB represented on the left. A = 0 A = 1 2 1 B = 0 B = 1 m0 m2 Truth Table A B F 1 3 1 1 m1 m3 Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Grouping Adjacent Minterms A = 0 A = 1 Adjacent cells differ in one variable, which is eliminated. For example, F = A B + AB = A(B +B) = A 2 1 B = 0 B = 1 m0 m2 3 1 1 m1 m3 Product term A Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Karnaugh Map Minimization Canonical SOP form represented on map Example: F = AB + A B +A B Find minimal cover (fewest groups of largest sizes), F = A + B product A A = 0 A = 1 A B = 0 B = 1 1 F m0 m2 B 1 1 product B m1 m3 Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Karnaugh Map: 3 Variables, A, B, C 2 6 4 1 3 7 5 000 010 110 100 C 001 011 111 101 B Check unit Hamming distance between adjacent cells. Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Synthesizing a Digital Function Start with specification. Create a truth table from specification. Minimize (SOP with fewest literals): Either write canonical SOP Reduce using postulates and theorems Or find largest cubes from Karnaugh map Minimized SOP gives a two-level AND-OR circuit. NAND or NOR circuit for CMOS technology can be found using de Morgan’s theorem. Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Example: Multiplexer Inputs: A, B, C Output: F Function: F = A, when C = 1 F = B, when C = 0 Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

3-Input Function: Multiplexer A BC Truth Table row A B C F 1 2 3 4 5 6 7 2 6 4 1 3 7 5 1 1 1 1 C A C B F = A C + BC A C B F Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Technology Optimization B F = A C + BC F 2 + 6 + 6 + 6 = 20 transistors A C B F Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Optimized Multiplexer A C B X F Y A C B X F Y 2 + 4 + 4 + 4 = 14 transistors Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Karnaugh Map: 4 Variables, A, B, C, D 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 D C B Check unit Hamming distance between adjacent cells. Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Ignition Function Minterm K P B S M 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 M = K AND (P OR B) AND (S OR P) = K(P + B)(S + P) Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Karnaugh Map: M(K, P, B, S) K 1 1 1 S B P 4 12 8 1 5 13 9 3 7 15 11 2 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 1 1 1 S B P . Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Karnaugh Map: Minimum Cover 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 KP 1 1 1 S B KBS P . Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Minimized Function M = KP + KBS K P B M S Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4

Using Inverting Gates Because They Need Fewer Transistors M = KP + KBS = KP · KBS Using de Morgan’s Theorem K P B S M Fall 2010, Sep 28 . . . ELEC2200-001 Lecture 4