Week 11b, Slide 1EECS42, Fall 2005Prof. White Week 11b OUTLINE – Synthesis of logic circuits – Minimization of logic circuits Reading: Hambley Ch. 7 through.

Slides:



Advertisements
Similar presentations
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Advertisements

Switching circuits Composed of switching elements called “gates” that implement logical blocks or switching expressions Positive logic convention (active.
L14: Boolean Logic and Basic Gates
Digital Circuits.
Appendix B Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
Chapter 11_1 (chap 10 ed 8) Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean.
Lecture 20, Slide 1EECS40, Fall 2004Prof. White Lecture #20 ANNOUNCEMENT Midterm 2 Thursday Nov. 18, 12:40 – 2:00 pm A-L initials in F295 Haas Business.
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
How to build a digital gate. CMOS NAND Gate Several realization of NOT 1. This is how a NOT operation is often represented schematically. 2. Sometimes.
Lecture 14 Today we will Learn how to implement mathematical logical functions using logic gate circuitry, using Sum-of-products formulation NAND-NAND.
EECS 40 Spring 2003 Lecture 11S. Ross and W. G. OldhamCopyright Regents of the University of California TO REVIEW AMPLIFIERS… Prove formulas for various.
EECS 40 Spring 2003 Lecture 12S. Ross and W. G. OldhamCopyright Regents of the University of California More Digital Logic Gate delay and signal propagation.
4/11/03 Minute Paper How does MS window work? Like how do we have the screen on the computer. Is it just a bunch of Binary #’s representing colors? When.
10/25/2004EE 42 fall 2004 lecture 231 Lecture #23 Synthesis Next week: Converting gates into circuits.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
EE42/100 Fall 2005 Prof. Fearing 1 Week 12/ Lecture 21 Nov. 15, Overview of Digital Systems 2.CMOS Inverter 3.CMOS Gates 4.Digital Logic 5.Combinational.
Lecture 3. Boolean Algebra, Logic Gates
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.
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Chapter 10_1 Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
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.
Chapter 3.5 Logic Circuits. How does Boolean algebra relate to computer circuits? Data is stored and manipulated in a computer as a binary number. Individual.
Digital Logic Basics Chapter 2 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer, 
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
Chapter 10 (Part 2): Boolean Algebra  Logic Gates (10.3) (cont.)  Minimization of Circuits (10.4)
Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Digital Electronics Lecture 6 Combinational Logic Circuit Design.
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.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Chapter 3: Digital Logic Dr Mohamed Menacer Taibah University
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
Boolean Algebra and Reduction Techniques
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
Karnaugh Map and Circuit Design.
Announcements Project components starting to arrive No assignment due this week – assignment 7 will be posted on Thursday. Final exam date. Let’s leave.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals.
President UniversityErwin SitompulDigital Systems 4/1 Lecture 4 Digital Systems Dr.-Ing. Erwin Sitompul President University
1 CS 352 Introduction to Logic Design Lecture 4 Ahmed Ezzat Multi-level Gate Circuits and Combinational Circuit Design Ch-7 + Ch-8.
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
©2010 Cengage Learning SLIDES FOR CHAPTER 8 COMBINATIONAL CIRCUIT DESIGN AND SIMULATION USING GATES Click the mouse to move to the next page. Use the ESC.
K-maps and Decoders Prof. Sin-Min Lee Department of Computer Science.
Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Boolean Algebra & Logic Gates
Digital Logic.
Boolean Algebra & De Morgan's Theorems
Digital Logic.
Computer Architecture CST 250
Reading: Hambley Chapters
Basics Combinational Circuits Sequential Circuits
Karnaugh Maps (K-Maps)
CSE 311 Foundations of Computing I
BASIC & COMBINATIONAL LOGIC CIRCUIT
Week 7: Gates and Circuits: PART II
Digital Logic.
Reading: Hambley Ch. 7 through 7.5
13 Digital Logic Circuits.
Chapter 10.3 and 10.4: Combinatorial Circuits
Circuit Simplification and
Reading: Hambley Ch. 7 through 7.5
Presentation transcript:

Week 11b, Slide 1EECS42, Fall 2005Prof. White Week 11b OUTLINE – Synthesis of logic circuits – Minimization of logic circuits Reading: Hambley Ch. 7 through 7.6

Week 11b, Slide 2EECS42, Fall 2005Prof. White Combinational Logic Circuits Logic gates combine several logic-variable inputs to produce a logic-variable output. Combinational logic circuits are “memoryless” because their output value at a given instant depends only on the input values at that instant. Next time, we will study sequential logic circuits that possess memory because their present output value depends on previous as well as present input values.

Week 11b, Slide 3EECS42, Fall 2005Prof. White Boolean Algebra Relations AA = A AA = 0 A1 = A A0 = 0 AB = BA A(BC) = (AB)C A+A = A A+A = 1 A+1 = 1 A+0 = A A+B = B+A A+(B+C) = (A+B)+C A(B+C) = AB + AC AB = A + B De Morgan’s laws

Week 11b, Slide 4EECS42, Fall 2005Prof. White Boolean Expression Example F = ABC + ABC + (C+D)(D+E) F = C(A+D+E) + DE

Week 11b, Slide 5EECS42, Fall 2005Prof. White Logical Sufficiency of NAND Gates If the inputs to a NAND gate are tied together, an inverter results From De Morgan’s laws, the OR operation can be realized by inverting the input variables and combining the results in a NAND gate. Since the basic logic functions (AND, OR, and NOT) can be realized by using only NAND gates, NAND gates are sufficient to realize any combinational logic function.

Week 11b, Slide 6EECS42, Fall 2005Prof. White Logical Sufficiency of NOR Gates Show how to realize the AND, OR, and NOT functions using only NOR gates Since the basic logic functions (AND, OR, and NOT) can be realized by using only NOR gates, NOR gates are sufficient to realize any combinational logic function.

Week 11b, Slide 7EECS42, Fall 2005Prof. White Suppose we are given a truth table for a logic function. Is there a method to implement the logic function using basic logic gates? Answer: There are lots of ways, but one simple way is the “sum of products” implementation method: 1)Write the sum of products expression based on the truth table for the logic function 2)Implement this expression using standard logic gates. We may not get the most efficient implementation this way, but we can simplify the circuit afterwards… Synthesis of Logic Circuits

Week 11b, Slide 8EECS42, Fall 2005Prof. White Example: the half adder and the full adder AB Carry Sum A n+1 B n+1 C n+1 S n+1 CnCn SnSn AnAn BnBn C n-1

Week 11b, Slide 9EECS42, Fall 2005Prof. White S 1 using sum-of-products: 1)Find where S 1 is 1 2)Write down each product of inputs which create a 1 3)Sum all of the products 4)Draw the logic circuit Logic Synthesis Example: Adder ABCS1S1 S0S InputOutput A B C A B C + A B C

Week 11b, Slide 10EECS42, Fall 2005Prof. White NAND Gate Implementation De Morgan’s law tells us that is the same as By definition, is the same as  All sum-of-products expressions can be implemented with only NAND gates.

Week 11b, Slide 11EECS42, Fall 2005Prof. White Creating a Better Circuit What makes a digital circuit better? Fewer number of gates Fewer inputs on each gate –multi-input gates are slower Let’s see how we can simplify the sum-of- products expression for S 1, to make a better circuit… –Use the Boolean algebra relations

Week 11b, Slide 12EECS42, Fall 2005Prof. White Karnaugh Maps Graphical approach to minimizing the number of terms in a logic expression: 1.Map the truth table into a Karnaugh map (see below) 2.For each 1, circle the biggest block that includes that 1 3.Write the product that corresponds to that block. 4.Sum all of the products A B 2-variable Karnaugh Map A 1 0 BC variable Karnaugh Map 4-variable Karnaugh Map CD AB

Week 11b, Slide 13EECS42, Fall 2005Prof. White ABCS1S1 S0S InputOutput A BC AC AB S 1 = AB + BC + AC Simplification of expression for S 1 : Karnaugh Map Example

Week 11b, Slide 14EECS42, Fall 2005Prof. White Further Comments on Karnaugh Maps The algebraic manipulations needed to simplify a given expression are not always obvious. Karnaugh maps make it easier to minimize the number of terms in a logic expression.

Week 11b, Slide 15EECS42, Fall 2005Prof. White Homework Assignment 9 -- LogicWorks This 40-point assignment is to simulate one stage of a full adder using the LogicWorks program available on Windows machines in 199 Cory. Use your EE43 account log-in and password, or use this temporary log-in: ee42-temp pwd: Go Bears 005 Print out your circuit and the timing diagram and hand them in Thursday April 21 in the usual homework box. To help the grader, put “bus bars” with A and B and their complements on your circuit as shown on the next page here. There’s a LogicWorks manual/tutorial on those machines. Note: on your display be sure “show Window’s contents while dragging” is disabled. Your GSI has floppies you can use to store your work (temp account won’t allow machine storage). You can print your work on the printer in 199 Cory. If the Control bar doesn’t appear when you launch LogicWorks, on the Main toolbar at the top of the screen, click on Tools and then on Simulate.

Week 11b, Slide 16EECS42, Fall 2005Prof. White Two sets of “bus bars” on left provide variables and their complements for whatever you connect on the right side. Homework 9 -- continued

Week 11b, Slide 17EECS42, Fall 2005Prof. White Homework 9 -- concluded a. Draw and run your circuit as derived from the sum-of-products expressions for your sum and carry outputs using whatever gates you require. b.Then try to simplify those expressions using Boolean algebra. c.Then simply if possible using Karnaugh maps. d.Then draw the simplified circuit using whatever gates you need. e.How do you think the simplification has reduced the amount of space and number of transistors needed to make the full adder stage (qualitative answer acceptable)? Note: We could go further and realize the circuits entirely with NAND gates and obtain a quantitative answer, since we’ve already seen what transistors are inside a NAND gate in the Slide 6 of Week 10b, reprinted on next slide here.

Week 11b, Slide 18EECS42, Fall 2005Prof. White CMOS NAND Gate ABF A F B AB V DD