D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation.

Slides:



Advertisements
Similar presentations
Latch versus Register  Latch stores data when clock is low D Clk Q D Q Register stores data when clock rises Clk D D QQ.
Advertisements

Sequential Logic ENEL 111. Sequential Logic Circuits So far we have only considered circuits where the output is purely a function of the inputs With.
Chapter 6 -- Introduction to Sequential Devices. The Sequential Circuit Model Figure 6.1.
Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
Edge Triggered Flip Flops (extended slides). Level-Sensitive Flip-Flop Level-sensitive flip-flop (also called a latch) Q changes whenever clock is high.
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Chapter 6 -- Introduction to Sequential Devices
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Basic (NAND) S – R Latch “Cross-Coupling” two NAND gates gives the S -R Latch:
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  A sequential logic circuit is one whose outputs depend not only on.
1 Sequential Systems A combinational system is a system whose outputs depend only upon its current inputs. A sequential system is a system whose outputs.
Sequential Logic Latches & Flip-flops
ReturnNext  Latch : a sequential device that watches all of its inputs continuously and changes its outputs at any time, independent of a clocking signal.
1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.
1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
Page 1 Sequential Logic Basic Binary Memory Elements.
Circuits require memory to store intermediate data
Lecture 6 CES 522 Latches and Flip-Flops Jack Ou, Ph.D.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Chapter 10 Flip-Flops and Registers Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. William Kleitz.
Digital Logic Design Lecture 23. Announcements Homework 8 due Thursday, 11/20 Exam 3 coming up on Tuesday, 11/25.
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
Latches Module M10.1 Section 7.1. Sequential Logic Combinational Logic –Output depends only on current input Sequential Logic –Output depends not only.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
Flip-Flops Section 4.3 Mano & Kime. D Latch Q !Q CLK D !S !R S R X 0 Q 0 !Q 0 D CLK Q !Q Note that Q follows D when the clock in high, and.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
1 CSE370, Lecture 14 Lecture 14 u Logistics n Midterm 1: Average 90/100. Well done! n Midterm solutions online n HW5 due date delayed until this Friday.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip-flops. Outline  Edge-Triggered Flip-flops  S-R Flip-flop  D Flip-flop  J-K Flip-flop  T Flip-flop  Asynchronous Inputs.
Introduction to Sequential Logic Design Flip-flops.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Synchronous Sequential Logic Chapter 5. Digital Circuits Sequential Circuits Combinational circuits contains no memory elements the outputs depends.
Chap 4. Sequential Circuits
C HAPTER F IVE S YNCHRONOUS S EQUENTIAL L OGIC 1.
Flip-Flops and Registers
Introduction to Sequential Logic Design Flip-flops FSM Analysis.
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Chapter 10 Flip-Flops and Registers 1. Objectives You should be able to: Explain the internal circuit operation of S-R and gated S-R flip-flops. Explain.
Designing Sequential Logic Circuits Ilam university.
LECTURE IX CH 5 LATCHES AND FLIP-FLOPS. Sequential logic circuits by definition progressive from one logic state to the next. In order for this to occur,
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
Synchronous Sequential Logic Part I
5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. The S-R (Set-Reset) latch is the most basic.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
Lecture #16: D Latch ; Flip-Flops
Flip Flops.
FLIP FLOPS.
Digital Logic Design Sequential Circuits (Chapter 6)
Chapter 6 -- Introduction to Sequential Devices
CSE 370 – Winter Sequential Logic-2 - 1
Flip-Flops.
Presentation transcript:

D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation

D Latch The D latch is “transparent” –As long as C=1, changes in D are propagated to the output D latch timing diagram

D Latch D latch timing constraints Latches undesirable in a sequential machine –Why?

D latch Logic function Q* = f(C,D,Q) = ? Q* = DC + D’’Q + C’Q = CD + C’Q + DQ = CD + C’Q Undesirable in sequential machines, because transparent –What does it imply for the sequential machine function?

Flip-flops Flip-flops are pulse-triggered Master-slave gated SR flip-flops Symbol signifies rising pulse edge triggered

Master-slave gated SR flip-flop Timing diagram Master and slave alternate

Master-slave gated SR flip-flop Timing diagram Setup and hold times defined for the external inputs to the master latch S and R must be stable around the clock edge that puts master on hold

Master-slave gated SR flip-flop Excitation table (a) and Timing diagram (b) Needs both the 0-1 and 1-0 transitions on C in order to operate properly Logic function Q* = f(S,R,Q,C) = ?

Master-slave D flip-flop Symbol signifies rising pulse edge triggered

Master-slave D flip-flop Timing diagram Needs both the 0-1 and 1-0 transitions on C in order to operate properly Logic function Q* = f(D,Q,C) = ? Q = D

Master-slave JK flip-flop Same as SR flip-flop with J=S and K=R When J=K=1, “toggles” state: Q*=Q’ Why connect Q* to D of the same FF? Why not cascade 2 D Flip-flops? Symbol signifies falling pulse edge triggered Logic function Q* = f(D,Q,C) = ?

K Master-slave JK flip-flop Has don’t cares Q* = K’Q + JQ’

Master – Slave configuration One way to avoid race-around conditions and transient oscillations Needs both rising and falling clock edges to function correctly –Therefore known as “pulse triggered” circuits Another way to avoid race-around and transients? –Design circuit that is sensitive to its excitation inputs only during rising or falling clock edge transitions –Called edge-triggered

G4 G3 G2 G1 G5 G6 Edge- triggered D flip-flop Rising edge triggered

Edge-triggered D flip-flop Operation on Set –PRE’ = 0; CLR’ = 1  G5 = Q = 1; G1 = 1 –CLK = 0  G3 = 1  G6 = Q’ = 0 –CLK = 1  G2 = 0  G3 = 1  G6 = Q’ = 0 G4 G3 G2 G1 G5 G

Edge-triggered D flip-flop Operation on Reset –PRE’ = 1; CLR’ = 0  G6 = Q’ = 1; G2 = 1; G4 = 1  G5 = Q = 0 –CLR’ alone sets the outputs G4 G3 G2 G1 G5 G

G5 G6 Edge-triggered D flip-flop Operation when both Set and Reset asserted –PRE’ = 0  G5 = Q = 1; G1 = 1 –CLR’ = 0  G6 = Q’ = 1; G2 = 1; G4 = 1 –Both Q and Q’ are 1 at the same time –No oscillation G4 G3 G2 G

Edge-triggered D flip-flop Normal operation: PRE’ and CLR’ = 1 –Equivalent circuit without them –CLK = 0  G2 = G3 = 1 –G5 and G6 form a stable pair of cross-coupled inverters –Stable (hold) state G4 G3 G2 G1 G5 G

Edge-triggered D flip-flop Normal operation: PRE’ and CLR’ = 1; latch 0 –CLK = 0  1;D = 0 –G3 becomes 0 and sets the G5 G6 pair to 0 1 –CLK = 1; D = 0  1;  G3 is still 0, G4 cannot change: no change. G4 G3 G2 G1 G5 G6 0101 100100 010 11 00 111111 111111

Edge-triggered D flip-flop Normal operation: PRE’ and CLR’ = 1; latch 1 –CLK = 0  1;D = 1 –G2 becomes 0 and sets the G5 G6 pair to 1 0 –CLK = 1; D = 0  1;  G2 is still 0, G3 cannot change; no change. G4 G3 G2 G1 G5 G6 0101 111111 100100 1010001001 00 11 0101 001001 111111 001001

Edge-triggered D flip-flop Timing specifications of SN7474, edge-triggered D FF –Delays from C to output are small –Value from D is almost instantly transferred to Q

Edge- triggered JK flip-flops SN74LS73 is negative edge triggered

Edge-triggered JK flip-flops SN74111 is a master-slave JK flip-flop with a positive edge- triggered master and negative edge pulse-triggered slave –Master flip-flop latches data on the rising edge of the clock and ignores it at other times –Slave transfers new value from master on falling clock edge

Edge-triggered T flip-flops T (or Toggle, or Trigger) flip-flop –JK flip-flop in toggle mode –Negative edge-triggered: –Excitation table and state diagram:

Clocked T flip-flops Clocked T flip-flop –Changes on clock when T –Negative edge-triggered: –Excitation table, logic symbol and timing diagram:

Edge-triggered versus pulse-triggered Pulse triggered –Denoted by  Q or  Q on the output pin –Requires both edges of the clock before input values are transferred to and held at the output –Example: master-slave configuration Edge triggered –Denoted by ¨ or o ¨ on the clock pin –Input value transferred and held in response to a single rising or falling edge –Example: edge triggered D and JK flip-flops

Latches and flip-flops summary Latches: –When data is to be captured from a signal line and stored Flip-flops: –Used to remember state in sequential circuit design