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.

Slides:



Advertisements
Similar presentations
W. G. Oldham EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California Physical Limitations of Logic Gates – Week 10a In a computer.
Advertisements

A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
1 SEQUENTIAL CIRCUITS DEFINITION OF SEQUENTIAL CIRCUIT SYNCHRONOUS SEQUENTIAL CIRCUIT ASYNCHRONOUS SEQUENTIAL CIRCUIT MEMORY ELEMENTS CLASSIFICATION: LATCHES.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
K-Maps, Timing Sequential Circuits: Latches & Flip-Flops Lecture 4 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier,
1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
1 Lecture 28 Timing Analysis. 2 Overview °Circuits do not respond instantaneously to input changes °Predictable delay in transferring inputs to outputs.
The Map Method Boolean expressions may be simplified by algebraic means as discussed in Previous lecture However, this procedure of minimization is awkward.
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.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
ENGIN112 L28: Timing Analysis November 7, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 28 Timing Analysis.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Sequential Circuits.
Week 11b, Slide 1EECS42, Fall 2005Prof. White Week 11b OUTLINE – Synthesis of logic circuits – Minimization of logic circuits Reading: Hambley Ch. 7 through.
Digital Circuit Review: Combinational Logic Logic operation –Need to know following two input gates: NAND, AND, OR, NOT, XOR –Need to know DeMorgan’s Theorems.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
1 Digital Logic
Lecture 14 Today we will Learn how to implement mathematical logical functions using logic gate circuitry, using Sum-of-products formulation NAND-NAND.
S. RossEECS 40 Spring 2003 Lecture 28 Today… Analyzing digital computation at a very low level! The Latch Pipelined Datapath Control Signals Concept of.
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.
CHAPTER 3 Digital Logic Structures
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
CS 61C L15 Blocks (1) A Carle, Summer 2005 © UCB inst.eecs.berkeley.edu/~cs61c/su05 CS61C : Machine Structures Lecture #15: Combinational Logic Blocks.
CS 151 Digital Systems Design Lecture 28 Timing 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.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
Counting with Sequential Logic Experiment 8. Experiment 7 Questions 1. Determine the propagation delay (in number of gates) from each input to each output.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Digital Electronics and Computer Interfacing Tim Mewes 3. Digital Electronics.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
Digital Computer Design Fundamental
Circuit, State Diagram, State Table
B-1 Appendix B - Reduction of Digital Logic Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles.
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Logic Design Computer Architecture and Design Lecture 1.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Chapter 3: Digital Logic Dr Mohamed Menacer Taibah University
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
Hamming Code,Decoders and D,T-flip flops Prof. Sin-Min Lee Department of Computer Science.
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
COUNTERS Why do we need counters?
THE K-MAP.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
A sequential logic circuit (a.k.a. state machine) consists of both combinational logic circuit(s) and memory devices (flip flops). The combinational circuits.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals.
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.
Sequential Logic Circuit Design Eng.Maha Alqubali.
©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.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
Computer Organization
DIGITAL LOGIC CIRCUITS
ECE 434 Advanced Digital System L03
Reading: Hambley Chapters
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
CPE/EE 422/522 Advanced Logic Design L02
Elec 2607 Digital Switching Circuits
Digital Logic & Design Dr. Waseem Ikram Lecture No. 31.
Reading: Hambley Ch. 7 through 7.5
Lecture No. 32 Sequential Logic.
Chapter 10.3 and 10.4: Combinatorial Circuits
SEQUENTIAL CIRCUITS __________________________________________________
Reading: Hambley Ch. 7 through 7.5
Presentation transcript:

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 Clocked circuit elements (flip-flop) Writing a word to memory Simplifying digital circuits: Karnaugh maps

EECS 40 Spring 2003 Lecture 12S. Ross and W. G. OldhamCopyright Regents of the University of California PROPAGATION DELAY t V in (t) output The propagation delay t p is defined as: t p = time when output is halfway between initial and final value - time when input is halfway between initial and final value. Low-to-high and high-to-low transitions could have different t p. tptp tptp

EECS 40 Spring 2003 Lecture 12S. Ross and W. G. OldhamCopyright Regents of the University of California PROPAGATION DELAY To get an approximate idea of the effects of delay, we make the transitions look instantaneous (though they are exponential). A F Logic State t t tptp 0 0 Input A Output F

EECS 40 Spring 2003 Lecture 12S. Ross and W. G. OldhamCopyright Regents of the University of California PROPAGATION DELAY A B C D Inputs have different delays, but we ascribe a single worst- case delay t p to every gate How many gate delays for shortest path? How many gate delays for longest path? ANSWER : 2 ANSWER : 3

EECS 40 Spring 2003 Lecture 12S. Ross and W. G. OldhamCopyright Regents of the University of California D t t t t t Logic state tptp 0 TIMING DIAGRAMS A B C Note that becomes valid two gate delays after B&C switch, because the invert function takes one delay and the NAND function a second. Note becomes valid one gate delay after B switches 1 0 The final OR gate creates one more delay. Different delays through different paths can create “false” output: Circuit computes using partially updated signals. tptp 2t p tptp tptp 3t p

EECS 40 Spring 2003 Lecture 12S. Ross and W. G. OldhamCopyright Regents of the University of California SYNCHRONOUS LOGIC We have now seen that a circuit can produce nonsensical output due to differing delay paths in the circuit. Presumably, the output of a logic circuit might serve as the input of a second logic circuit. How do we prevent the second circuit from using and passing on this false information? Answer: Include “gatekeeper” components that pass on data only when enough time has passed to guarantee validity Clocked (Synchronous) components: flip-flops

EECS 40 Spring 2003 Lecture 12S. Ross and W. G. OldhamCopyright Regents of the University of California SYNCHRONOUS CIRCUIT D CK Q D Flip Flop Clock Signal Logic Circuit 1Logic Circuit 2 V OUT1 V OUT2 V IN2 V IN1 The D Flip Flop is a synchronous (clocked) sequential (memory) circuit. At the instant the clock signal CK rises from logic 0 to logic 1, the output Q is set equal to the input D. At all other times, the output Q remains the same. The flip flop prevents Logic Circuit 2 from receiving a new input value, until the clock transition allows the data to pass through.

EECS 40 Spring 2003 Lecture 12S. Ross and W. G. OldhamCopyright Regents of the University of California FLIP FLOP CIRCUIT DIAGRAM D CK Q We may cover digital circuits with feedback later in the course.

EECS 40 Spring 2003 Lecture 12S. Ross and W. G. OldhamCopyright Regents of the University of California MAKING MEMORIES In order to write to memory, Enable Write must be 1. Note we can only write to all four cells at once! To change only 1 bit, e. g., change D 2 to 1, set D 3 = Q 3 D 2 = 1D 1 = Q 1 D 0 = Q 0 To change 1 bit on CalBot board using software interface, use bitwise OR “|” with a mask: Q = Q | 0100 (where Q is defined as Q 3 Q 2 Q 1 Q 0 ) D3D3 CK Q3Q3 Enable Write Clock Signal D2D2 Q2Q2 D1D1 Q1Q1 D0D0 Q0Q0 “write lines” “read lines”

EECS 40 Spring 2003 Lecture 12S. Ross and W. G. OldhamCopyright Regents of the University of California CREATING A BETTER CIRCUIT What makes a better digital circuit? Fast and low cost = better. Fewer stages Fewer total number of individual gates Fewer types of gates Fewer inputs on each gate (multi-input gates are slower) In general, simplifying a digital circuit to minimize the number of gates is computationally intractable (uses very large amount of time and space, worse than NP-hard) The method of Karnaugh maps reduces the number of inputs per gate.

EECS 40 Spring 2003 Lecture 12S. Ross and W. G. OldhamCopyright Regents of the University of California KARNAUGH MAPS To find a simpler sum-of-products expression, 1.Write the truth table of your circuit into a special table. 2.For each “1”, circle the biggest 2m by 2n block that includes that “1”. 3.Write the product that corresponds to that block A BC A B AB CD 2 Inputs3 Inputs 4 Inputs

EECS 40 Spring 2003 Lecture 12S. Ross and W. G. OldhamCopyright Regents of the University of California EXAMPLE: ADDER ABCS1S1 S0S InputOutput A BC AC AB S 1 = AB + BC + AC Simplification for S 1 :