ECE2030 Introduction to Computer Engineering Lecture 9: Combinational Logic, Mixed Logic Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Logic Gates.
CT455: Computer Organization Logic gate
Give qualifications of instructors: DAP
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
ECE2030 Introduction to Computer Engineering Lecture 10: Building Blocks for Combinational Logic (1) Timing Diagram, Mux/DeMux Prof. Hsien-Hsin Sean Lee.
Unit 7 Multi-Level Gate Circuits / NAND and NOR Gates Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Digital Systems Presented by Prof Tim Johnson
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Lecture 17: Digital Design Today’s topic –Intro to Boolean functions Reminders –HW 4 due Wednesday 10/8/2014 (extended) –HW 5 due Wednesday 10/15/2014.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #7 COMBINATIONAL LOGIC ANALYSIS.
LOGIC GATES.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
ECE2030 Introduction to Computer Engineering Lecture 4: CMOS Network Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia Tech.
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.
NAND-NAND and NOR-NOR Circuits and Even and Odd Logic Functions
Basic Gates 3.1 Basic Digital Logic: NAND and NOR Gates ©Paul Godin Created September 2007 Last Update Sept 2009.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
Basic Digital Logic: NAND and NOR Gates Technician Series ©Paul Godin Last Update Dec 2014.
ITEC 352 Lecture 3 Low level components(2). Low-level components Review Electricity Transistors Gates Really simple circuit.
NAND-NAND and NOR-NOR Circuits and Even and Odd Logic Functions ECE 301 – Digital Electronics.
ECE2030 Introduction to Computer Engineering Lecture 6: Canonical (Standard) Forms Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering.
Logic Gates. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment,
ECE2030 Introduction to Computer Engineering Lecture 5: Boolean Algebra Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia.
Module 7.  In Module 3 we have learned about NAND gate – it is a combination of AND operation followed by NOT operation  Symbol A. B = Y  Logic Gate.
CHAPTER 5 Combinational Logic Analysis
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
1 ECE2030 Introduction to Computer Engineering Lecture 4: CMOS Network Prof. Hsien-Hsin Sean Lee School of ECE Georgia Institute of Technology.
CEC 220 Digital Circuit Design SOP and POS forms Friday, Sept 11 CEC 220 Digital Circuit Design Slide 1 of 17.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
WORKING PRINCIPLE OF DIGITAL LOGIC
Lecture 07 Digital logic By Amr Al-Awamry. 4 variables K-Map.
Computer Organization and Design Transistors & Logic - II Montek Singh Wed, Oct 17, 2012 Lecture 11.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
LOGIC GATES. INTRODUCTION TO LOGIC GATES Boolean functions may be practically implemented by using electronic gates. The following points are important.
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Chapter 3 Notes – Part II Review Questions
ECE2030 Introduction to Computer Engineering Lecture 4: CMOS Network
Logic Gates and Boolean Algebra
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
EI205 Lecture 5 Dianguang Ma Fall 2008.
Boolean Algebra.
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
ECE 331 – Digital System Design
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Universal Gate – NOR Universal Gate - NOR Digital Electronics
BASIC & COMBINATIONAL LOGIC CIRCUIT
Circuits, Truth Tables & Boolean Algebra
Universal gates.
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Logic Gates.
Boolean Algebra.
KS4 Electricity – Electronic systems
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
Universal Gate – NOR Universal Gate - NOR Digital Electronics
GCSE Computer Science – Logic Gates & Boolean Expressions
Circuits, Truth Tables & Boolean Algebra
Department of Electronics
ECE 352 Digital System Fundamentals
Logic Gates By: Asst Lec. Besma Nazar Nadhem
Agenda Lecture Content: Combinatorial Circuits Boolean Algebras
Presentation transcript:

ECE2030 Introduction to Computer Engineering Lecture 9: Combinational Logic, Mixed Logic Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia Tech

2 Logic Design Logic circuits –Combinational –Sequential Combinational circuits N inputs M outputs Combinational circuits inputs outputs Storage Element delay

3 Combinational Logic Outputs, “at any time”, are determined by the input combination When input changed, output changed immediately –Note that real circuits are imperfect and have “propagation delay” A combinational circuit –Performs logic operations that can be specified by a set of Boolean expressions –Can be built hierarchically Combinational circuits N inputs M outputs

4 Design Hierarchy Example 9-input Odd Function X0 X1 X2 X3 X4 X5 X6 X7 X8 Z A0 A1 A2 3-input Odd Function Z A0 A1 A2 3-input Odd Function X3 X4 X5 A0 A1 A2 3-input Odd Function X6 X7 X8 B0 A0 A1 A2 3-input Odd Function X0 X1 X2 B0 9-input Odd Function How to design a 3-input Odd Function? Function Specification: To detect odd number of “1” inputs, i.e. Z=1 when there is an odd number of “1” present in the inputs

5 Derive Truth Table for Desired Functionality ABCF A BC

6 Design Hierarchy Example 9-input Odd Function X0 X1 X2 X3 X4 X5 X6 X7 X8 Z A0 A1 A2 3-input Odd Function Z A0 A1 A2 3-input Odd Function X3 X4 X5 A0 A1 A2 3-input Odd Function X6 X7 X8 B0 A0 A1 A2 3-input Odd Function X0 X1 X2 B0 9-input Odd Function 3-input Odd function: B0=A0  A1  A2 A0 A1 A2 B0

7 Combinational Logic Design Example B C D A F

8 Mixed Logic Enable component reuse Allow a digital logic circuit designer to implement a combinational logic with –Only NAND gates –Only NOR gates –Only NAND and NOR gates

9 DeMorgan’s Law

10 Mixed Logic (1) Implement all ORs in the Boolean function Implement all ANDs in the Boolean function Forget all the inversion at this moment

11 Example: Mixed Logic (1) B C D A

12 Mixed Logic (2) Draw “Vertical Bars” in the circuits where all complements in the Boolean equation occur Draw a bubble on each Vertical Bar

13 Example: Mixed Logic (2) B C D A

14 Mixed Logic (3) Convert each gate to the desired gate –If only NAND gate is available, insert a bubble in front of the AND gate –If only OR gate is available, insert a bubble in front of the OR gate Using DeMorgan’s Law in the process –OR  NAND: by adding 2 bubbles on the inputs side of OR –AND  NOR: by adding 2 bubbles on the inputs side of the AND

15 Example: Mixed Logic (3) B C D A Assume this design uses NAND gates only =

16 Mixed Logic (4) Balance the bubbles on each wire, i.e. even out the number of bubbles on every wire If there is odd number of bubbles on a wire, add an inverter (i.e. a bubble) And remove those “vertical bars with bubbles” which are used to help only, not in the circuits

17 Example: Mixed Logic (4) B C D A Assume this design uses NAND gates only

18 How about Inverters? Inverters can be implemented by either a NAND or a NOR gate –Wiring the inputs together

19 Example: Mixed Logic (Final) B C D A Assume this design uses NAND gates only

20 Example: Mixed Logic (Final) B C D A Assume this design uses NAND gates only 6 NAND gates are used

21 Mixed Logic How about build the prior circuits with only NOR gates?

22 Example: Mixed Logic (1) B C D A

23 Example: Mixed Logic (2) B C D A Add vertical bar for each inversion

24 Example: Mixed Logic (3) B C D A Assume this design uses NOR gates only = Convert each gate to a NOR

25 Example: Mixed Logic (4) B C D A Assume this design uses NOR gates only Balance number of Bubbles on each wire

26 Example: Mixed Logic (4) Assume this design uses NOR gates only Balance number of bubbles on each wire and substitute all gates to NOR B C D A

27 Example: Mixed Logic (Final) Assume this design uses NOR gates only B C D A 7 NOR gates are used

28 Mixed Logic Example II (1) C D A B Implement the logic circuits by ignoring all inversions

29 Mixed Logic Example II (2) C D A B Add vertical bar/bubble for each inversion

30 Mixed Logic Example II (3) C D A B Assume this design uses NAND gates only

31 Mixed Logic Example II (4) C D A B Balance the bubbles for each wire w/ inverters

32 Mixed Logic Example II (5) C D A B Remove the vertical bars/bubbles

33 Mixed Logic Example II (6) C D A B Replace all the gates to NAND gates

34 Mixed Logic Example II (7) C D A B Final mixed logic uses 11 NAND gates (one of them is a triple-input NAND gate)

35 Mixed Logic Example III (1) B D A C Implement the logic circuits by ignoring all inversions

36 Mixed Logic Example III (2) B D A C Add vertical bar/bubble for each inversion

37 Mixed Logic Example III (3) B D A C Assume this design uses NOR gates only

38 Mixed Logic Example III (4) B D A C Balance the bubbles for each wire w/ inverters

39 Mixed Logic Example III (5) B D A C Remove the vertical bars/bubbles

40 Mixed Logic Example III (6) B D A C Replace all the gates to NOR gates

41 Mixed Logic Example III (7) B D A C Final mixed logic uses 9 NOR gates