Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.

Slides:



Advertisements
Similar presentations
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals with PLD Programming.
Advertisements

Sequential Logic Building Blocks – Flip-flops
Flip-Flops Basic concepts. 1/50A. Yaicharoen2 Flip-Flops A flip-flop is a bi-stable device: a circuit having 2 stable conditions (0 or 1) 3 classes of.
Digital Logic Design ESGD2201
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
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:
Sequential Logic Latches and Flip-Flops. Sequential Logic Circuits The output of sequential logic circuits depends on the past history of the state of.
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
Sequential Logic Latches & Flip-flops
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.
EET 1131 Unit 10 Flip-Flops and Registers
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
ECE 3130 – Digital Electronics and Design Lab 5 Latches and Flip-Flops Fall 2012 Allan Guan.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Figure 7–1 Two versions of SET-RESET (S-R) latches
Chapter 10 Flip-Flops and Registers Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. William Kleitz.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
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.
Flip-Flops and Related Devices
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
Objectives: Given input logice levels, state the output of an RS NAND and RS NOR. Given a clock signal, determine the PGT and NGT. Define “Edge Triggered”
COE 202: Digital Logic Design Sequential Circuits Part 1
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Flip-flops. Outline  Edge-Triggered Flip-flops  S-R Flip-flop  D Flip-flop  J-K Flip-flop  T Flip-flop  Asynchronous Inputs.
Flip Flop
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Flip-Flops and Registers
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
1 Digital Fundamentals Chapter 8 Flip-Flops and Related Devices Resource: CYU / CSIE / Yu-Hua Lee / Not made by Engr. Umar Talha,
Flip Flop Chapter 15 Subject: Digital System Year: 2009.
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.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
Sequential logic circuits
EKT 221 / 4 DIGITAL ELECTRONICS II
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
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
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.
Flip Flops Engr. Micaela Renee Bernardo. A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. Latches.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
7. Latches and Flip-Flops Digital Computer Logic.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Ch.5 Flip Flops and Related Devices
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
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.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Copyright ©2009 by Pearson Higher Education, Inc. Upper Saddle River, New Jersey All rights reserved. Digital Fundamentals, Tenth Edition Thomas.
LATCHED, FLIP-FLOPS,AND TIMERS
Flip Flops.
CS1104 – Computer Organization
FLIP-FLOPS.
Presentation transcript:

Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS

 Latches & Flip-Flops  Differences between Latches and Flip-Flops  Types of Latches and Flip-Flops  Edge-Triggered Flip-Flops  Flip-Flop Operating Characteristics Topic Outlines

 Latches and flip-flops are the basic single-bit memory elements used to build sequential circuit with one or two inputs/outputs, designed using individual logic gates and feedback loops. Introduction

 Latches  The output of a latch depends on its current inputs and on its previous output and its change of state can happen at any time when its inputs change.  Flip-Flops  The output of a flip-flop also depends on current inputs and its previous output but the change of state occurs at specific times determined by a clock input. Differences between Latches and Flip-Flops Latches & Flip-Flops

 Latches  S-R (SET-RESET) Latch  Gated S-R Latch  Gated D-Latch  Flip-Flops  Edge-Triggered S-R Flip-Flop  Edge-Triggered D Flip-Flop  Edge-Triggered J-K Flip-Flop Types of Latches and Flip-Flops Latches & Flip-Flops

 Type of temporary storage device that has 2 stable (bi-stable) states  Similar to flip-flop – the outputs are connected back to opposite inputs  Main difference from flip-flop is the method used for changing their state  Types: S-R latch, Gated/Enabled S-R latch and Gated D latch Latches

Active-HIGH input S-R Latch Active-LOW input S-R Latch S-R (SET-RESET) Latch Latches

S-R Latch Logic symbols Latches

Negative-OR equivalent of the NAND gate S-R latch S-R Latch Latches

Truth table for an active-LOW input S-R latch S-R Latch Latches Question: What is the truth table for an active-HIGH input S-R latch ?

The three modes of basic latch operation SET RESET no-change & the invalid condition S-R Latch

Waveforms Assume that Q is initially LOW S-R Latch Latches

 A gate input is added to the S-R latch to make the latch synchronous.  In order for the set and reset inputs to change the latch, the gate input must be active (HIGH/Enable).  When the gate input is low, the latch remains in the hold condition. Gated S-R Latch Latches

Gated S-R Latch Latches

SRGQQ’Comment 000QQ’Hold 100QQ’Hold 010QQ’Hold 110QQ’Hold 001QQ’Hold 10110Set 01101Reset 11100Not allowed Gated S-R Latch Truth-table Latches

Gated S-R Latch Waveform Latches

Gated S-R Latch Waveform Latches set reset set resetset

Gated S-R Latch Application S-R latch is used to eliminate switch contact bounce Latches

 The D (data) latch has a single input that is used to set and to reset the flip-flop.  When the gate is high, the Q output will follow the D input.  When the gate is low, the Q output will hold. Gated D Latch (74LS75) Latches

Gated D Latch (74LS75) Latches

The output follows the input when the gate is high but is in a hold when the gate is low. Gated D Latch (74LS75) Waveform Latches

 Flip-flops are synchronous devices  Synchronous means that the output changes state only at a specified point on the triggering input called the clock (CLK)  An edge-triggered flip-flop changes state either at the positive edge (rising edge) or at the negative edge (falling edge)  Three types of edge-triggered flip-flops:  S-R Flip-Flops  D Flip-Flops  J-K Flip-Flops Flip-Flops

Edge-triggered flip-flop logic Positive edge- triggered Negative edge- triggered (bubble at C input) Flip-Flops

Clock signals and synchronous sequential circuits A clock signal is a periodic square wave that indefinitely switches values from 0 to 1 and 1 to 0 at fixed intervals. Rising edges of the clock (Positive-edge triggered) Falling edges of the clock (Negative-edge triggered) Clock signal Clock Cycle Time 1 0 Flip-Flops

Edge-triggered S-R Flip-Flop The basic of S-R flip-flop consist of 2 NOR gates with the outputs cross-coupled to the inputs Cross-NOR S-R Flip-Flop Flip-Flops

Note: Flip-flop cannot change state except on the triggering edge of a clock pulse. When S=R=1, invalid condition exists Edge-triggered S-R Flip-Flop Flip-Flops

INPUTSOUTPUTS COMMENTS SRCLKQQ 00XQ0Q0 Q0Q0 No change (Hold condition) 01  01RESET 10  10SET 11  ??Invalid  = clock transition LOW to HIGH X = irrelevant (“don’t care”) Q 0 = output level prior to clock transition Edge-triggered S-R Flip-Flop(+ve edge) -ve edge ? Flip-Flops

 Addition of an inverter to an S-R flip-flop creates a basic D flip-flop Edge-triggered D Flip-Flop A positive-edge triggered D flip-flop QUESTION: What is the condition of this S-R flip- flop? QUESTION: What is the condition of this S-R flip- flop? Flip-Flops

SET  If there is a HIGH on the D input when a clock pulse is applied, the flip-flop will SET and the HIGH on the D input is stored by the flip-flop on the positive-going edge of the clock pulse (In the SET state, flip-flop is storing 1) RESET  If there is a LOW on the D input when a clock pulse is applied, the flip-flop will RESET and the LOW on the D input is stored by the flip-flop on the positive-going edge of the clock pulse (In the RESET state, flip-flop is storing 0) Edge-triggered D Flip-Flop (Function of +ve e-t) Flip-Flops

INPUTSOUTPUTS COMMENTS DCLKQQ 1  10 SET (stores a 1) 0  01 RESET (stores a 0)  = clock transition LOW to HIGH Edge-triggered D Flip-Flop (+ve e-t) Truth Table Flip-Flops

 Function of J-K Flip Flop is identical to that of the S-R flip flop in the SET, RESET and no-change conditions of operation  The difference is that the J-K flip-flop has no invalid states as does the S-R flip-flop  On each successive clock spike, the flip-flop changes to the opposite state. This mode is called toggle operation Edge-triggered J-K Flip-Flop Flip-Flops

Simplified logic diagram for a positive edge-triggered J-K flip flop Edge-triggered J-K Flip-Flop Flip-Flops

Truth Table for positive edge-triggered J-K flip-flop INPUTSOUTPUTS COMMENTS JKCLKQQ 00  Q0Q0 Q0Q0 No change 01  01RESET 10  10SET 11  Q0Q0 Q0Q0 Toggle (Opposite state) (Opposite state) = clock transition LOW to HIGH Q 0 = output level prior to clock transition Edge-triggered J-K Flip-Flop Flip-Flops

Flip-Flops Operating Characteristics  Define as the interval of time required after an input signal has been applied for the resulting output change to occur Propagation delay time t PLH Propagation delay t PLH as measured from the triggering edge of the clock pulse to the LOW-to-HIGH transition of the output

Propagation delay time t PHL Propagation delay t PHL as measured from the triggering edge of the clock pulse to the HIGH-to-LOW transition of the output Flip-Flops Operating Characteristics

 Define as the minimum interval required for the logic levels to be maintained constantly on the inputs (J and K, or S and R, or D) prior to the triggering edge of the clock pulse in order for the levels to be reliably clocked into the flip-flop Set-up time (t s ) Flip-Flops Operating Characteristics

 Define as the minimum interval required for the logic levels to remain on the inputs after the triggering edge of the clock pulse in order for the levels to be reliably clocked into the flip-flop Hold time (t h ) Flip-Flops Operating Characteristics

Maximum Clock Frequency (f max )  The highest rate at which a flip-flop can be reliably triggered.  At clock frequencies above the maximum, the flip-flop would be unable to respond quickly enough, and its operation would be impaired Power dissipation  P = V cc x I cc END Flip-Flops Operating Characteristics