10/25/2004EE 42 fall 2004 lecture 231 Lecture #23 Synthesis Next week: Converting gates into circuits.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

L14: Boolean Logic and Basic Gates
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
CSIS 3510 Computer Organization and Architecture Topics covered in this lecture: –Review of De’Morgan’s Theorem –Using De’Morgan’s Theorem –Building a.
Chapter 2 Logic Circuits.
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.
Sheila Ross and W. G. OldhamEECS 40 Fall 2002 Lecture 2 Copyright Regents of University of California Logic Gates: NOT a Prerequisite! Today: Gates, gates.
Lecture #24 Gates to circuits
10/22/2004EE 42 fall 2004 lecture 221 Lecture #22 Truth tables and gates This week: Circuits for digital devices.
Lecture #41: Active devices
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
12/10/2004EE 42 fall 2004 lecture 421 Lecture #42: Transistors, digital This week we will be reviewing the material learned during the course Today: review.
Modified from John Wakerly Lecture #2 and #3 CMOS gates at the transistor level Boolean algebra Combinational-circuit analysis.
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.
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.
2.7 NAND and NOR logic networks
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.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
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.
EE210 Digital Electronics Class Lecture 9 April 08, 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.
Computer Organization and Design Transistors & Logic - II Montek Singh Oct {21,28}, 2015 Lecture 10.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 5 © 2008 Pearson Education.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Boolean Algebra and Logic Gates
Announcements Assignment 6 due tomorrow No Assignment 7 yet.
1/16/ CSEE, UQ Lecture 3 Hardware Description Methods, Review of Switching Algebra.
Solid-State Devices & Circuits
CMOS Logic Gates. NMOS transistor acts as a switch 2 When gate voltage is 0 V No channel is formed current does not flow easily “open switch” When gate.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Logic Simplification-Using Boolean Laws Logic Design Laboratory EE 2121 Lectures By Manesh T EE2121-In Charge
ELECTRICAL ENGINEERING: PRINCIPLES AND APPLICATIONS, Third Edition, by Allan R. Hambley, ©2005 Pearson Education, Inc. Chapter 7 Logic Circuits.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
President UniversityErwin SitompulDigital Systems 4/1 Lecture 4 Digital Systems Dr.-Ing. Erwin Sitompul President University
1 Ch.3 Logic Gates and Boolean Algebra – Part 1
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean Logic.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Digital Logic. Boolean Algebra to Logic Gates Logic circuits are built from components called logic gates. The logic gates correspond to Boolean operations.
Hoda Roodaki Boolean Algebra Hoda Roodaki
Dr. Ameria Eldosoky Discrete mathematics
Combinational Circuits Part 1
Morgan Kaufmann Publishers
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
Chapter 3 Notes – Part II Review Questions
De Morgan’s Theorem,.
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Computer Organization and Design Transistors & Logic - II
Jeremy R. Johnson Wed. Sept. 29, 1999
ECE 331 – Digital System Design
Reading: Hambley Chapters
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Computer Science 210 Computer Organization
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Circuits, Truth Tables & Boolean Algebra
Combinatorial Logic Circuit
Chapter 2 Introduction to Logic Circuits
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Circuits, Truth Tables & Boolean Algebra
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Chapter 5 Combinational Logic Analysis
Copyright © Cengage Learning. All rights reserved.
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Combinational Logic Circuit
Presentation transcript:

10/25/2004EE 42 fall 2004 lecture 231 Lecture #23 Synthesis Next week: Converting gates into circuits

10/25/2004EE 42 fall 2004 lecture 232 Topics Today: Minimization versus other goals (Performance, cost, ….) Important properties of logic expressions DeMorgan’s Theorem Sum-of-Products Implementation

10/25/2004EE 42 fall 2004 lecture 233 Some Important Logical Functions “AND” “OR” “INVERT” or “NOT” “not AND” = NAND “not OR” = NOR exclusive OR = XOR (or ) AnotA

10/25/2004EE 42 fall 2004 lecture 234 These are circuits that accomplish a given logic function such as “OR”. We will shortly see how such circuits are constructed. Each of the basic logic gates has a unique symbol, and there are several additional logic gates that are regarded as important enough to have their own symbol. The set is: AND, OR, NOT, NAND, NOR, and EXCLUSIVE OR. Logic Gates A B C=A·B AND C = A B NAND C = NOR A B NOT A OR A B C=A+B EXCLUSIVE OR A B

10/25/2004EE 42 fall 2004 lecture 235 Multiple input gates And, Or, NAND, and NOR can be extended to multiple inputs easily AND O=(AB)  O=(ABCD…) OR O=(A+B)  O=(A+B+C+D…) Multiple inputs are indicated by just adding input lines to the symbols A B O=A·B·C AND NOR A C B C

10/25/2004EE 42 fall 2004 lecture 236 Generalized Logic Gates We have the standard logic gates: AND NOR NOT OR X OR We can generalize/simplify by using the small circle in any line for a NOT function (instead of showing a NOT gate.) EXAMPLES: a) A B B C b) c) B D a) b) c)

10/25/2004EE 42 fall 2004 lecture 237 With a combination of logic gates we can construct any logic function. In these two examples we will find the truth table for the circuit. Logic Circuits B A C It is helpful to list the intermediate logic values (at the input to the OR gate). Let’s call them X and Y. X Y Now we complete the truth tables for X and Y, and from that for C. (Note that X and Y and finally C = X + Y) ABXYC Interestingly, this is the same truth table as the EXCLUSIVE OR

10/25/2004EE 42 fall 2004 lecture 238 Some Useful Theorems 1) 2) 3) 4) 5) 6) 7) 8) 9) } de Morgan’s Laws Each of these can be proved by writing out truth tables Communicative Associative Distributive Defined from form of truth tables

10/25/2004EE 42 fall 2004 lecture 239 Truth table to show de Morgan’s theorem ABA+BABAB

10/25/2004EE 42 fall 2004 lecture 2310 de Morgan’s Theorems de Morgan’s Theorems can be used repeatedly on complex logical expressions to put them into one of two standard forms, a sum of products, or a product of sums

10/25/2004EE 42 fall 2004 lecture 2311 Sum of Products In a sum of products standard form, each input appears no more than once in each term:

10/25/2004EE 42 fall 2004 lecture 2312 Using these properties we can often simplify expressions A B F Note that But factoring: So a simpler realization is: B F Just a wire !

10/25/2004EE 42 fall 2004 lecture 2313 Synthesis Designing the combinatorial logic circuit This method uses three different gate types and unless the expression is minimized does not lead to any kind of optimum circuit (its not the fastest, or cheapest, or lowest power way to construct the logic function). Method1: Certainly we may directly substitute gates for expressions There are two OR operations and two AND operations plus a NOT operation: Thus using 4 Gates plus a NOT: A B F C Example:

10/25/2004EE 42 fall 2004 lecture 2314 Synthesis Method 2: Similarly we may directly construct an expression and thus the circuit from the truth table. We can construct a sum of products form by taking each row, and then ANDing the variable from each column (or its inverse). Each of these become a term in an OR expression. ABF Clearly A B F Obviously this expression and it’s realization are not optimal (F=B), but it shows that a solution can be obtained from simple rules, which can then be optimized for speed, area, or power, etc.

10/25/2004EE 42 fall 2004 lecture 2315 Synthesis If we look at a sum or products, we see that it can be converted into multiple AND gates each with multiple inputs (some inverting), and a final multiple input OR gate. A product of sums can be converted into multiple OR gates each with multiple inputs (some inverting), and a final multiple input AND gate.

10/25/2004EE 42 fall 2004 lecture 2316 NOR synthesis If we look at each of the terms in a sum of products representation, we can see that we can express them as a sum as well, so the whole expression can be done with only NOR gates

10/25/2004EE 42 fall 2004 lecture 2317 NAND Synthesis Designing the combinatorial logic circuit, cont. Starting with any SUM-OF-PRODUCTS expression: Y = ABC+DEF we can rewrite it by “inverting” with De Morgan: Method 3: NAND GATE SYNTHESIS. We can use De Morgan’s theorem to turn the sum-of-products expression into a form directly implementable entirely with NAND gates. (The NOT function is accomplished by a one-input NAND gate). The NAND realization, while based on DeMorgan’s theorem, is in fact much simpler: just look at the sum of products expression and use one NAND for each term and one to combine the terms. A B Y C D E F Clearly this expression is realized with three NAND gates: one three-input NAND for, one for, and one two-input gate to combine them:

10/25/2004EE 42 fall 2004 lecture 2318 Synthesis Designing the combinatorial logic circuit, cont. Two Examples of SUM-OF-PRODUCTS expressions: Method 3: NAND GATE SYNTHESIS (CONTINUED). (X-OR function) A X B (No connection) A Y B C We could make the drawings simpler by just using a circle for the NOT function rather than showing a one- input NAND gate

10/25/2004EE 42 fall 2004 lecture 2319 CMOS and complementary logic When we look at how to implement logic into transistors next week, we will see that we can use the complementary PMOS and NMOS switches in parallel or in series with complementary logic to form high speed, low power logic

10/25/2004EE 42 fall 2004 lecture 2320 CMOS NOR V DD A B A+B

10/25/2004EE 42 fall 2004 lecture 2321 CMOS NAND V DD A B AB