Practice Problems 2 Latch and Flip Flop ©Paul Godin Created September 2007 Last edit Aug 2013.

Slides:



Advertisements
Similar presentations
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Advertisements

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 Logic Computer Organization Ellen Walker Hiram College Figures from Computer Organization and Design 3ed, D.A. Patterson & J.L. Hennessey, Morgan.
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
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.
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
A presentation on Counters
Counters.
Asynchronous Counter © 2014 Project Lead The Way, Inc.Digital Electronics.
Counter Section 6.3.
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.
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.
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
Flip-Flops and Registers
Introduction to Sequential Logic Design Flip-flops.
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
Synch 1.1 Synchronous Counters 1 ©Paul Godin Created January 2008.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
Asynch 1.1 Asynchronous Counters 1 ©Paul Godin Last Edit Sept 2009.
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CHAPTER 8 - COUNTER -.
Sequential logic circuits
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 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
Counters.
Basic terminology associated with counters Technician Series
Flip Flops 4.1 Latches and Flip-Flops 4 ©Paul Godin Created September 2007 Last edit Sept 2009.
State Machines (Closed Loop / Moore) Synch 2.1  Paul R. Godin Updated: January 2008.
Lab 12 :JK Flip Flop Fundamentals: Slide 2 Slide 3 JK Flip-Flop. JK Flip-Flop and waveform diagrams.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
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.
©2010 Cengage Learning SLIDES FOR CHAPTER 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This.
UNIT 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter in the book includes: Objectives.
LATCHES AND FLIP-FLOPS
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Flip Flops.
LATCHED, FLIP-FLOPS,AND TIMERS
Summary Latch & Flip-Flop
Flip-FLops and Latches
FIGURE 5.1 Block diagram of sequential circuit
Flip-flops Inputs are logically disconnected from the output in time.
Digital Design Lecture 9
FLIP FLOPS.
Flip-FLops and Latches
T Flip-Flop A T (toggle) flip-flop is a complementing flip-flop and can be obtained from a JK flip-flop when the two inputs are tied together. When T.
Introduction to Sequential Logic Design
Flip-FLops and Latches
Latches and Flip-Flops 2
Flip-FLops and Latches
Flip-FLops and Latches
Latch Practice Problems 1
Latches and Flip-Flops 1
Latches and Flip-Flops
Synchronous Counters 4: State Machine Counting
FLIP-FLOPS.
Latches and Flip-Flops 2
Basic terminology associated with counter and sequential circuits.
Flip-FLops and Latches
Presentation transcript:

Practice Problems 2 Latch and Flip Flop ©Paul Godin Created September 2007 Last edit Aug 2013

Introduction The following slides contain practice problems Solutions are provided at the end of this presentation 2

Hints Mark the clock edges. In some configurations where the output of a flip-flop becomes the input to another, look at the input states immediately prior to the edge. You must remember the truth tables for the flip- flops. 3

Problem #1 4

Problem #2 5

Problem #3 6

Problem #4 7

Problem #5 8

Problem #6 9

SOLUTIONS 10

Introduction The following slides contain timing diagram solutions and a brief discussion. 11

Discussion #1 This problem involves a more complex approach. We notice that the second flip-flop gets its edge from the Q’ of the first. We need to draw the Q’ output timing diagram to help us determine the edges. We also noticed that the J and K inputs to FF#2 are tied together, and follow the J input. Therefore, there can only be 2 states to FF#2: 11 and 00 (Toggle and Hold). If J input=1, FF#2 toggles. In the solution, I’ve indicated the JK states next to each edge. Problem #1 12

Problem #1 13

Discussion #2 This problem is a little simpler than the previous exercise. The similarity is that FF#1 is producing the edge for FF#2 (asynchronous configuration), and so we must solve for FF#1 before FF#2. Problem #2 14

Problem #2 15

Discussion #3 The method of solving this problem is to visualize the input state just prior to the edge. Again, this is an asynchronous configuration where the 2nd FF gets its trigger from the first. This configuration creates a recognizable output pattern. Problem #3 16

Problem #3 17

18

Discussion #4 This is perhaps the simplest of these practice problems. This configuration, where each FF gets the same clock edge, is called Synchronous. The FFs are independent and are treated individually. Problem #4 19

Problem #4 20

Discussion #5 In this problem, the asynchronous inputs are used, but the FFs are configured synchronously (they each get their edges directly from the clock). The asynchronous inputs are active low. The FFs are configured in permanent Toggle mode. We must realize that the asynchronous inputs override the J, K and Clock inputs and affect the output state immediately. Also, there is an illegal input (an active input to both preset and reset). Problem #5 21

Problem #5 22

Discussion #6 This asynchronous configuration initially appears as a counter, but on closer examination you will note the different clock edges. The results is that this counter is neither an up or down counter, but a counter with a non-natural sequence count. The count pattern is: Problem #6 23

Problem #6 24

END  gmail.com 25