CHAPTER 11 LATCHES AND FLIP-FLOPS



Similar documents
CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

ECE380 Digital Logic

Engr354: Digital Logic Circuits

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Lesson 12 Sequential Circuits: Flip-Flops

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Chapter 9 Latches, Flip-Flops, and Timers

Theory of Logic Circuits. Laboratory manual. Exercise 3

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Memory Elements. Combinational logic cannot remember

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

Sequential Logic Design Principles.Latches and Flip-Flops

Master/Slave Flip Flops

7. Latches and Flip-Flops

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

BINARY CODED DECIMAL: B.C.D.

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Lecture 8: Synchronous Digital Systems

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

Flip-Flops, Registers, Counters, and a Simple Processor

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

CSE140: Components and Design Techniques for Digital Systems

Module 3: Floyd, Digital Fundamental

Sequential Logic: Clocks, Registers, etc.

Upon completion of unit 1.1, students will be able to

Counters and Decoders

Chapter 8. Sequential Circuits for Registers and Counters

Modeling Latches and Flip-flops

Chapter 5. Sequential Logic

CS311 Lecture: Sequential Circuits

Fig1-1 2-bit asynchronous counter

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Digital Fundamentals

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Combinational Logic Design Process

Design: a mod-8 Counter

Asynchronous counters, except for the first block, work independently from a system clock.

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

Contents COUNTER. Unit III- Counters

Digital Logic Design Sequential circuits

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

DM74LS112A Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flop with Preset, Clear, and Complementary Outputs

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

The components. E3: Digital electronics. Goals:

Lecture 10: Sequential Circuits

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Counters & Shift Registers Chapter 8 of R.P Jain

Lecture 11: Sequential Circuit Design

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

CHAPTER 3 Boolean Algebra and Digital Logic

Digital Electronics Detailed Outline

Lecture-3 MEMORY: Development of Memory:

Digital Controller for Pedestrian Crossing and Traffic Lights

ASYNCHRONOUS COUNTERS

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

Counters are sequential circuits which "count" through a specific state sequence.

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

Layout of Multiple Cells

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

Copyright Peter R. Rony All rights reserved.

Counters. Present State Next State A B A B

SN54/74LS192 SN54/74LS193

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

Set-Reset (SR) Latch

Sequential Circuit Design

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

ENGI 241 Experiment 5 Basic Logic Gates

Asynchronous Counters. Asynchronous Counters

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Napier University. School of Engineering. Electronic Engineering A Module: SE42205 Digital Design

[ 4 ] Logic Symbols and Truth Table

Clocking. Figure by MIT OCW Spring /18/05 L06 Clocks 1

DEPARTMENT OF INFORMATION TECHNLOGY

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Timing Methodologies (cont d) Registers. Typical timing specifications. Synchronous System Model. Short Paths. System Clock Frequency

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Design Verification & Testing Design for Testability and Scan

Advanced Logic Design Techniques in Asynchronous Sequential Circuit Synthesis

Wiki Lab Book. This week is practice for wiki usage during the project.

PURDUE UNIVERSITY NORTH CENTRAL

CHAPTER 11: Flip Flops

Lecture 7: Clocking of VLSI Systems

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Gates, Circuits, and Boolean Algebra

DATA SHEET. HEF40193B MSI 4-bit up/down binary counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Transcription:

CHAPTER 11 LATCHES AND FLIP-FLOPS This chapter in the book includes: Objectives Study Guide 11.1 Introduction 11.2 Set-Reset Latch 11.3 Gated D Latch 11.4 Edge-Triggered D Flip-Flop 11.5 S-R Flip-Flop 11.6 J-K Flip-Flop 11.7 T Flip-Flop 11.8 Flip-Flops with Additional Inputs 11.9 Summary Problems Programmed Exercise

Sequential Circuits Sequential switching circuits have the property that the output depends not only on the present input but also on the past sequence of inputs. In effect, these circuits must be able to remember something about the past history of the inputs in order to produce the present output. We say a circuit has feedback if the output of one of the gates is connected back into the input of another gate in the circuit so as to form a closed loop. Section 11.1 (p. 322)

Example of a feedback circuit with no stable states. Figure 11-1

Example of a feedback circuit with 2 stable states. Figure 11-2

Figure 11-3: Set-Reset Latch

Figure 11-4

Figure 11-5: S-R Latch (Set-Reset Latch)

Set-Reset Latch Behavior S R Q + If S = 1 (Set), Q + = 1 If R = 1 (Reset), Q + = 0 If S = R = 0, Q + = Q (no change) S = R = 1 is not allowed. 0 0 Q 0 1 0 1 0 1 1 1 Not allowed Section 11.2 (p. 324)

Figure 11-6: Improper S-R Latch Operation P Q

S-R Latch Figure 11-7: Timing Diagram for S-R Latch

Table 11-1. S-R Latch Next State and Output Stable states are circled. Note that for all stable states, P = Q except when S = R = 1. This is one of the reasons S = R = 1 is not allowed.

0 1 00 01 11 10 Q + = S + R Q (SR = 0) (11-5) Figure 11-8: Derivation of Q + for an S-R Latch

Pull-down resistors insure S = R = 0 while switch switches from a to b. This results in a clean Q signal, even though a and b bounce. Figure 11-9: Switch Debouncing with an S-R Latch

Figure 11-10: S-R Latch Alternate form of S-R latch that uses NAND-gates instead of NOR-gates.

Gated D Latch A gated D latch has two inputs a data input (D) and a gate input (G). The D latch can be constructed from an S-R latch and gates. When G = 1, the value of D is passed to Q. When G = 0, the Q output holds the last value of D (no state change). This type of latch is also referred to as a transparent latch. Section 11.3 (p. 327)

Figure 11-11: Gated D Latch

Figure 11-12: Symbol and Truth Table for Gated Latch

Figure 11-12 (continued)

Edge-Triggered D Flip-Flop A D flip-flop has two inputs, D (data) and Ck (clock). The small arrowhead on the flip-flop symbol identifies the clock input. Unlike the D latch, the flip-flop output changes only in response to the clock, not to a change in D. If the output can change in response to a 0 to 1 transition on the clock input, we say that the flip-flop is triggered on the rising edge (or positive edge) of the clock. If the output can change in response to a 1 to 0 transition of the clock input, we say that the flip-flop is triggered on the falling edge (or negative edge) of the clock. An inversion bubble on the clock input indicates a falling-edge trigger. Section 11.4 (p. 328)

+ Q = D Figure 11-13: D Flip-Flops

Figure 11-14: Timing for D Flip-Flop (Falling-Edge Trigger)

Figure 11-15: D Flip-Flop (Rising Edge Trigger)

Figure 11-16: Setup and Hold Times for an Edge-Triggered D Flip-Flop

Figure 11-17: Determination of Minimum Clock Period

S-R Flip-Flop An S-R flip-flop is similar to an S-R latch in that S = 1 sets the Q output to 1, and R = 1 resets the Q output to 0. The essential difference is that the flip-flop has a clock input, and the Q output can change only after an active clock edge. Section 11.5 (p. 331)

Operation summary: S = R = 0 no state change S = 1, R = 0 set Q to 1 (after active Ck edge) S = 0, R = 1 reset Q to 0 (after active Ck edge) S = R = 1 not allowed Figure 11-18: S-R Flip-Flop

Figure 11-19: S-R Flip-Flop Implementation and Timing

J-K Flip-Flop The J-K flip-flop is an extended version of the S-R flip-flop. The J-K flip-flop has three inputs J, K, and the clock (CK). The J input corresponds to S, and K corresponds to R. Unlike the S-R flip-flop, a 1 input may be applied simultaneously to J and K, in which case the flip-flop changes state after the active clock edge. Section 11.6 (p. 332)

Figure 11-20ab: J-K Flip-Flop (Q Changes on the Rising Edge)

Figure 11-20c: J-K Flip-Flop (Q Changes on the Rising Edge)

Figure 11-21: Master-Slave J-K Flip-Flop (Q Changes on Rising Edge)

T Flip-Flop The T flip-flop, also called the toggle flip-flop, is frequently used in building counters. It has a T input and a clock input. When T = 1 the flip-flop changes state after the active edge of the clock. When T = 0, no state change occurs. Section 11.7 (p. 333)

Q + = T'Q + TQ' = Q T Figure 11-22ab: T Flip-Flop

Figure 11-23: Timing Diagram for T Flip-Flop (Falling-Edge Trigger)

Figure 11-24: Implementation of T Flip-Flops

Figure 11-25: D Flip-Flop with Clear and Preset

Figure 11-26: Timing Diagram for D Flip-Flop with Asynchronous Clear and Preset

Figure 11-27: D Flip-Flop with Clock Enable