Lecture 13 Logistics Last lecture Today HW4 up, due on Wednesday PLDs

Slides:



Advertisements
Similar presentations
Combinational Logic : NAND – NOR Gates CS370 – Spring 2003.
Advertisements

CS370 – Spring 2003 Hazards/Glitches. Time Response in Combinational Networks Gate Delays and Timing Waveforms Hazards/Glitches and How To Avoid Them.
ECE C03 Lecture 71 Lecture 7 Delays and Timing in Multilevel Logic Synthesis Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
ECE 3110: Introduction to Digital Systems
ECE 331 – Digital System Design
Contemporary Logic Design Multi-Level Logic © R.H. Katz Transparency No Chapter # 3: Multi-Level Combinational Logic 3.3 and Time Response.
Chapter # 3: Multi-Level Combinational Logic
CS 151 Digital Systems Design Lecture 11 NAND and XOR Implementations.
Give qualifications of instructors: DAP
Chapter 3 Simplification of Switching Functions
ENGIN112 L11: NAND and XOR Implementation September 26, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 11 NAND and XOR Implementations.
ECE C03 Lecture 61 Lecture 6 Delays and Timing in Multilevel Logic Synthesis Prith Banerjee ECE C03 Advanced Digital Design Spring 1998.
CS 151 Digital Systems Design Lecture 32 Hazards
Chapter # 3: Multi-Level Combinational Logic
1 Lecture 10 PLDs  ROMs Multilevel logic. 2 Read-only memories (ROMs) Two dimensional array of stored 1s and 0s  Input is an address  ROM decodes all.
Chapter 3 Simplification of Switching Functions. Simplification Goals Goal -- minimize the cost of realizing a switching function Cost measures and other.
1 CSE370, Lecture 5 Lecture 5 u Logistics n HW1 due today n HW2 available today, due Wed 1/21 n Office Hours this week: íMe: Friday 10:00-11:00 CSE 668.
Glitches/Hazards and ALUs
1 K-Maps, Multi-level Circuits, Time Response Today: Reminder: Test #1, Thu 7-9pm K-map example, espressoFirst Hour: K-map example, espresso –Section 2.3.
Lecture 09 NAND and XOR Implementations. Overview °Developing NAND circuits °Two-level implementations Convert from AND/OR to NAND (again!) °Multi-level.
Lecture 11 Timing diagrams Hazards.
No. 3-1 Chapter # 3: Multi-Level Combinational Logic.
Chapter 3 Simplification of Switching Functions. Simplification Goals Goal -- minimize the cost of realizing a switching function Cost measures and other.
1 CS 352 Introduction to Logic Design Lecture 4 Ahmed Ezzat Multi-level Gate Circuits and Combinational Circuit Design Ch-7 + Ch-8.
1 CSE370, Lecture 10 Lecture 10  Logistics  HW3 due now  Solutions will be available at the midterm review session tomorrow (and at the end of class.
©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.
©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.
1 CSE370, Lecture 4 Lecture 4 u Logistics n HW1 due now n HW2 posted now and is due one week from today n Lab1 going on this week n Feedback on lectures,
Lecture 7 Multi-Level Gate Networks
CHAPTER 7 MULTI-LEVEL GATE CIRCUITS / NAND AND NOR GATES
Lecture 9 Topics Glitches and Hazards Types of Functions and Delays
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
Lecture 12 Logistics Last lecture Today HW4 due today Timing diagrams
Lecture 11 Logistics Last lecture Today HW4 due on Wednesday PLDs
Combinational Logic Implementation
Chapter 2: Boolean Algebra and Logic Functions
K-map: Product-of-Sums Minimization
Lecture 8 Combinational Network Design and Issues
Digital Logic Design 1st Exam Solution
Lecture 9 Logistics Last lecture Today HW3 due Wednesday
ECE 331 – Digital System Design
ECE 434 Advanced Digital System L03
Reading: Hambley Chapters
Basics Combinational Circuits Sequential Circuits
BASIC & COMBINATIONAL LOGIC CIRCUIT
Overview Last Lecture Conversion of two-level logic to NAND or NOR forms Multilevel logic AOI and OAI gates Today Timing and hazards Multiplexers and demultiplexers.
Digital Logic & Design Dr. Waseem Ikram Lecture 12.
Digital Logic & Design Dr. Waseem Ikram Lecture 13.
CSE 370 – Winter 2002 – Comb. Logic building blocks - 1
Lecture 6 Logistics Last lecture Today’s lecture HW2 due on Wednesday
Lecture 8 Logistics Last lecture Last last lecture Today
Combinatorial Logic Circuit
CH7 Multilevel Gate Network
Optimization Algorithm
CSE 370 – Winter Combinational Implementation - 1
EECS150 - Digital Design Lecture 7 - Boolean Algebra II
Introduction to Digital Systems
Lecture 10 Logistics Last lecture Today
Lecture 11 Logistics Last lecture Today HW3 due now
Chapter 2 Introduction to Logic Circuits
Hazard-free Karnaugh Map Minimisation
Lecture 5 Logistics Last lecture Today’s lecture
CSE 370 – Winter 2002 – Comb. Logic building blocks - 1
Chapter 3 Overview • Multi-Level Logic
ECE 352 Digital System Fundamentals
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
Overview Last lecture Timing; Hazards/glitches
Hazard-free Karnaugh Map Minimisation
Lecture 5 Converting to use NAND and NOR
Lecture 6 Logistics Last lecture Today’s lecture HW2 due on Wednesday
Presentation transcript:

Lecture 13 Logistics Last lecture Today HW4 up, due on Wednesday PLDs Multilevel logic Timing diagrams Hazards 13

The “WHY” slide Multilevel logic Timing diagram Hazards So far we talked about 2 level logic gate structure. But we can often express logic in many different ways and more levels than 2. Turns out expressing it in many levels could simplify circuit for the cost of slower processing time. If you want smaller circuits over speed, this is great to know. Timing diagram Real gates have real delays and it is good to learn how to plot the information with respect to time. Hazards Different delays can cause some output to get glitches. If these glitches are used in the next level of calculation, it could cause mis-calculation. It is good to know when that happens and how to fix it. 13

Multilevel logic Basic idea: Simplify logic using >2 gate levels Time–space (speed versus gate count) tradeoff Will talk about the speed issue with timing diagram Two-level logic usually Has smaller delays (faster circuits) more gates and more wires (more circuit area) Multilevel logic usually Has fewer gates (smaller circuits) more gate delays (slower circuits) 13

Multilevel logic example Function X SOP: X = ADF + AEF + BDF + BEF + CDF + CEF + G X is minimized! Six 3-input ANDs; one 7-input OR; 26 wires Multilevel: X = (A+B+C)(D+E)F + G Factored form One 3-input OR, two 2-input OR's, one 3-input AND; 11 wires 3-level circuit X = (A+B+C)(D+E)F + G A B C D E F G X 13

Multilevel NAND/NAND conversion F = A(B+CD) + BC' Level 1 Level 2 Level 3 Level 4 A C D B C' F original AND-OR network introduce bubbles (conserve inversions) 13

Multilevel NOR/NOR conversion F = A(B+CD) + BC' Level 1 Level 2 Level 3 Level 4 A C D B C' F original AND-OR network introduce bubbles (conserve inversions) 13

Generic multilevel conversion F = ABC + BC + D = AX + X + D (a) (b) A A B B F F C C X X D D original circuit add double bubbles at inputs (c) (d) A A X B F C X' B F D' C X' distribute bubbles some mismatches D' insert inverters to fix mismatches 13

Issues with multilevel design No global definition of “optimal” multilevel circuit Optimality depends on user-defined goals Synthesis requires CAD-tool help No simple hand methods like K-maps CAD tools manipulate Boolean expressions Covered in more detail in CSE467 13

Multilevel logic summary Advantages over 2-level logic Smaller circuits Reduced fan-in Less wires Disadvantages w.r.t 2-level logic More difficult design Less powerful optimizing tools What you should know for CSE370 The basic multilevel idea Multilevel NAND/NAND and NOR/NOR conversion 13

Timing diagram (aka waveforms) Sideways truth tables Show time-response of circuits Example: F = A +BC 000 001 010 011 100 101 110 111 13

Timing diagrams Real gates have real delays Example: A' • A = 0 time Delays cause transient F=1 F A B C D time 13

Example: F=A+BC in 2-level logic canonical sum-of-products B F1 A minimized sum-of-products F2 canonical product-of-sums F3 minimized product-of-sums F4 13

Timing diagram for F = A + BC Time waveforms for F1 – F4 are identical Except for timing hazards (glitches) 13

Hazards/glitches Hazards/glitches: Undesired output switching Occurs when different pathways have different delays Wastes power; causes circuit noise Dangerous if logic makes a decision while output is unstable Solutions Design hazard-free circuits Difficult when logic is multilevel Wait until signals are stable 13

Types of hazards Static 1-hazard Static 0-hazard Dynamic hazards Output should stay logic 1 Gate delays cause brief glitch to logic 0 Static 0-hazard Output should stay logic 0 Gate delays cause brief glitch to logic 1 Dynamic hazards Output should toggle cleanly Gate delays cause multiple transitions 1 1 1 1 13

Static hazards Often occurs when a literal and its complement momentarily assume the same value Through different paths with different delays Causes an (ideally) static output to glitch A multiplexer A A B S F S S' B F S' static-0 hazard 13

Eliminating static hazards (only in 2 level logic) Key idea: Glitches happen when a changing input spans separate k-map encirclements Example: 1101 to 0101 change can cause a static-1 glitch A AB F = AC' + A'D CD 00 01 11 10 00 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 A C' 01 F 1 1 D A' 11 D 1 C 10 13 B

Eliminating static hazards (con’t) Solution: Add redundant k-map encirclements Ensure that all single-bit changes are covered First eliminate static-1 hazards: Use SOP form If need to eliminate static-0 hazards, use POS form A F = AC' + A'D + C'D AB 00 01 11 10 CD 00 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 A C' 01 D A' F 11 D C C' 10 D B 13

Summary of hazards We can eliminate static hazards in 2-level logic For single-bit changes Eliminating static hazards also eliminates dynamic hazards Hazards are a difficult problem Multiple-bit changes in 2-level logic are hard Static hazards in multilevel logic are harder Dynamic hazards in multilevel logic are harder yet CAD tools and simulation/testing are indispensable 13