Latches and Flip-Flops

Slides:



Advertisements
Similar presentations
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
Advertisements

A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR1 Sequential Circuit Latch & Flip-flop.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
Sequential Logic Latches and Flip-Flops. Sequential Logic Circuits The output of sequential logic circuits depends on the past history of the state of.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 6 – Part 1.
Sequential Logic Latches & Flip-flops
CPEN Digital System Design Chapter 5 Sequential Circuits Storage Elements and Sequential Circuit Analysis C. Gerousis © Logic and Computer Design.
CSCE 211: Digital Logic Design. Chapter 6: Analysis of Sequential Systems.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
Digital Logic Design Brief introduction to Sequential Circuits and Latches.
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
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.
A clocked synchronous state-machine changes state only when a triggering edge or “tick” occurs on the clock signal. ReturnNext  “State-machine”: is a.
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.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Registers and Counters
Components used in the the Project J-K Flip Flop Switch Power Alternator 7-Segment Display Coded Decimal (BCD) Display.
Digital Computer Design Fundamental
1 Sequential Circuit Latch & Flip-flop. 2 Contents Introduction Memory Element Latch  SR latch  D latch Flip-flop  SR flip-flop  D flip-flop  JK.
COE 202: Digital Logic Design Sequential Circuits Part 1
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
Sequential Design Basics. Lecture 2 topics  A review of devices that hold state A review of Latches A review of Flip-Flops 8/22/2012 – ECE 3561 Lect.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
Introduction to Sequential Logic
Flip Flop Chapter 15 Subject: Digital System Year: 2009.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
Digital System Design using VHDL
Digital System Design using VHDL
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Sequential Circuit Latch & Flip-flop. Contents Introduction Memory Element Latch  SR latch  D latch Flip-flop  SR flip-flop  D flip-flop  JK flip-flop.
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.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
Sequential Logic Circuit Design Eng.Maha Alqubali.
TOPIC : Introduction to Sequential Circuits UNIT 1: Modeling and Simulation Module 4 : Modeling Sequential Circuits.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Flip Flops.
Lecture 8 Dr. Nermi Hamza.
Flip-FLops and Latches
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
Flip Flops.
FIGURE 5.1 Block diagram of sequential circuit
Synchronous Sequential Circuits
Flip Flops.
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Flip Flop.
Flip-FLops and Latches
Flip-FLops and Latches
Sequential logic circuits
Flip-FLops and Latches
Flip-FLops and Latches
Reference: Chapter 5 Sequential Circuits Moris Mano 4th Ediditon
Synchronous sequential
Synchronous Sequential
Flip-Flops.
Flip Flops Unit-4.
Flip-FLops and Latches
CMPE212 Discussion 11/21/2014 Patrick Sykes
Presentation transcript:

Latches and Flip-Flops ECOM 4311 Digital System Design using VHDL Chapter 8 Latches and Flip-Flops

Introduction Previous chapters focused on combinational systems. However, most digital systems are sequential. A sequential system’s outputs are a function of both its present input value and past history of its input values. Memory elements are required in a sequential system to store information that characterizes the system’s past history of input values. In this chapter, basic latch and flip-flop memory elements are discussed.

Revision: SEQUENTIAL SYSTEMS Section 8.1 SEQUENTIAL SYSTEMS AND THEIR MEMORY ELEMENTS Self reading

THE D LATCH

Latched multiplexer

D latch with asynchronous set and clear inputs

Logic synthesized from Listing 8. 2 Logic synthesized from Listing 8.2.3 for D latch with asynchronous set and clear inputs.

Using a Concurrent Signal Assignment to Infer a Latch A concurrent signal assignment statement can also be used to infer a latch, although this is not a preferred approach.

DETECTING CLOCK EDGES

D FLIP- FLOP

D FLIP- FLOP

Using a Wait Statement to Infer a Flip-flop

Asynchronous Set and Clear Inputs

Note: A drawback in using a wait statement to infer a flip-flop is that it is not possible to add asynchronous set and/or clear inputs, because all assignments executed after the wait are synchronous assignments.

D flip-flop with synchronous set and clear

ENABLED (GATED) FLIP-FLOP Often there is a need to have a flip-flop store its data for more than one clock cycle. This is achieved by having the flip-flop store its input data only at selected triggering clock edges and not at others. To accomplish this, we add an enable (gate) input to the flip-flop. There are two common approaches: The gated clock approach The gated data approach

The gated clock approach

The gated clock approach If the signal at the en input has glitches, there is a problem with this approach. Often, this signal is the output of a combinational system, which might produce glitches as its inputs change.

The gated data approach

The gated data approach

OTHER FLIP-FLOP TYPES There are four basic types of flip-flops that have traditionally been used in digital systems: D, S-R, J-K, and T. These flip-flops differ primarily in the number and function of their synchronous inputs. The use of S-R, J-K, or T flip-flops instead of D flip-flops often allowed simplification of the combinational logic required to drive the flip-flops’ inputs.

The characteristic equation The characteristic equation specifies a flip-flop’s next state (output) as a function of its synchronous inputs.

S-R Flip-flop

S-R Flip-flop

J-K Flip-flop A description of a J-K flip-flop can be created from Listing 8.6.1 by simply changing the synchronous input labels and replacing the characteristic equation with that of a J-K flip-flop.

Toggle Flip-flop

Homework Solve the following problems from the textbook chapter 8: 4, 6, 11, 18,28,30

Finally…. ? Any Questions