Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Similar documents
Logic Design. Flip Flops, Registers and Counters

Unit 11. Latches and Flip-Flops

RS flip-flop using NOR gate

Counter dan Register

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

RS flip-flop using NOR gate

D Latch (Transparent Latch)

MC9211 Computer Organization

Asynchronous (Ripple) Counters

Registers and Counters

Digital Logic Design ENEE x. Lecture 19

Registers and Counters

Lecture 8: Sequential Logic

Engr354: Digital Logic Circuits

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Counters

INTRODUCTION TO SEQUENTIAL CIRCUITS

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Synchronous Sequential Logic

Digital Fundamentals: A Systems Approach

Chapter 8 Sequential Circuits

Review of digital electronics. Storage units Sequential circuits Counters Shifters

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Other Flip-Flops. Lecture 27 1

Experiment 8 Introduction to Latches and Flip-Flops and registers

Chapter 5 Synchronous Sequential Logic

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

ASYNCHRONOUS COUNTER CIRCUITS

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

LATCHES & FLIP-FLOP. Chapter 7

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Vignana Bharathi Institute of Technology UNIT 4 DLD

Universal Asynchronous Receiver- Transmitter (UART)

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Serial In/Serial Left/Serial Out Operation

EKT 121/4 ELEKTRONIK DIGIT 1

UNIT IV. Sequential circuit

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Flip-Flops and Sequential Circuit Design

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

CHAPTER 1 LATCHES & FLIP-FLOPS

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Introduction to Sequential Circuits

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Sequential Logic Circuits

CMSC 313 Preview Slides

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

CHAPTER 4: Logic Circuits

Chapter 4. Logic Design

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

Lecture 12. Amirali Baniasadi

Chapter 5: Synchronous Sequential Logic

IT T35 Digital system desigm y - ii /s - iii

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

Chapter. Synchronous Sequential Circuits

Chapter 11 Latches and Flip-Flops

CHAPTER 4: Logic Circuits

Chapter 6 Registers and Counters

ELE2120 Digital Circuits and Systems. Tutorial Note 8

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

ELE2120 Digital Circuits and Systems. Tutorial Note 7

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

ELCT201: DIGITAL LOGIC DESIGN

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Digital Fundamentals: A Systems Approach

CHAPTER1: Digital Logic Circuits

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Rangkaian Sekuensial. Flip-flop

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Sequential Circuits: Latches & Flip-Flops

Digital Fundamentals

ELCT201: DIGITAL LOGIC DESIGN

Last time, we saw how latches can be used as memory in a circuit

Synchronous Sequential Logic. Chapter 5

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

ECE 341. Lecture # 2

Registers and Counters

Digital Circuits ECS 371

Scanned by CamScanner

The NOR latch is similar to the NAND latch

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Module -5 Sequential Logic Design

EKT 121/4 ELEKTRONIK DIGIT 1

Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

PRE J. Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs

Transcription:

Chapter 6 Flip-Flops and Simple Flip-Flop Applications

Basic bistable element It is a circuit having two stable conditions (states). It can be used to store binary symbols. J. C. Huang, 2004 Digital Logic Design 1

Flip-flops A flip-flop is a bistable device, with inputs, that remains in a given state as long as power is applied and until input signals are applied to cause its output to change. J. C. Huang, 2004 Digital Logic Design 2

Latches vs. flip-flops Latches are flip-flops for which the timing of the output changes are not controlled. For a latch, the output essentially responds immediately to changes on the input lines (and possibly the presence of a clock pulse). A flip-flop is designed to change its output at the edge of a controlling clock signal. J. C. Huang, 2004 Digital Logic Design 3

SR (Set-Reset) latch J. C. Huang, 2004 Digital Logic Design 4

Next state If denotes the present state of a memory device, i.e., the state at the time the input signals are applied, we shall use + or (t+1) to denote the next state, i.e., the new state assumed by the device in response to the input signals. J. C. Huang, 2004 Digital Logic Design 5

R S latch J. C. Huang, 2004 Digital Logic Design 6

Gated SR latch J. C. Huang, 2004 Digital Logic Design 7

Gated D latch J. C. Huang, 2004 Digital Logic Design 8

Timing considerations Propagation delays Minimum pulse width Setup and hold time J. C. Huang, 2004 Digital Logic Design 9

Propagation delay The time it takes a change in the input signal to produce a change in the output signal. J. C. Huang, 2004 Digital Logic Design 10

Minimum pulse width The minimum amount of time a signal must be applied in order to produce a desired result. J. C. Huang, 2004 Digital Logic Design 11

Setup and hold times To achieve a satisfactory operation of a gated latch, constraints are normally placed on the time intervals between input changes. The minimum time the input signal must be held fixed before and after the latching action is called the setup time and hold time, respectively. J. C. Huang, 2004 Digital Logic Design 12

JK- and T-type flip-flops In addition to the SR-type and D-type flipflops discussed above, there are two other types, viz., JK- and T-type flip-flops. J. C. Huang, 2004 Digital Logic Design 13

J D K Clock (a) Circuit J K ( t+ 1) JK flip-flop 0 0 0 1 () t 0 J 1 1 0 1 1 () t K (b) Truth table (c) Graphical symbol J. C. Huang, 2004 Digital Logic Design 14

JK flip-flops A JK flip-flop works just like an SR flipflop if we consider J input as S(et) input and K input as R(eset) input, except when both S and R inputs are set to 1, the output simply flips over. J. C. Huang, 2004 Digital Logic Design 15

T-type flip-flops A T flip-flop is obtained from a JK flip-flop by tying the J and K inputs together to form the T input. T J C K ' ' J. C. Huang, 2004 Digital Logic Design 16

Flip-flops There are four different types of flip-flops: SR, D, JK, and T types. The properties of these flip-flops are summarized in the following 4 slides. The function and application tables are also known as characteristic and excitation tables, respectively. J. C. Huang, 2004 Digital Logic Design 17

SR-type flip-flop S C R ' (t+1) = S + R' SR = 0 Graphic symbol Characteristic equation S R (t+1) (t+1) S R 0 0 0 1 1 0 1 1 0 1? 0 0 0 1 1 0 1 1 0 X 1 0 0 1 X 0 Function table Application table J. C. Huang, 2004 Digital Logic Design 18

D-type flip-flop D C ' (t+1) = D Graphic symbol Characteristic equation D (t+1) 0 0 1 1 Function table (t+1) 0 0 0 1 1 0 1 1 Application table D 0 1 0 1 J. C. Huang, 2004 Digital Logic Design 19

JK-type flip-flop J C K ' (t+1) = J' + K' Graphic symbol Characteristic equation J K (t+1) (t+1) J K 0 0 0 1 1 0 1 1 0 1 ' 0 0 0 1 1 0 1 1 0 X 1 X X 1 X 0 Function table Application table J. C. Huang, 2004 Digital Logic Design 20

T-type flip-flop T C ' (t+1) = T ' + T ' Graphic symbol Characteristic equation T (t+1) 0 1 ' Function table (t+1) 0 0 0 1 1 0 1 1 Application table T 0 1 1 0 J. C. Huang, 2004 Digital Logic Design 21

Positive and negative edge The transition of a control signal (clock pulse) from its low to high value (0 to 1) in positive logic is called the positive edge of the control signal, while the transition from high to low (1 to 0) is called the negative edge. J. C. Huang, 2004 Digital Logic Design 22

Edge-triggered flip-flops Edge triggered flip-flops use just one of the edges of the clock pulse to affect the reading of the input lines. These flip-flops are designed to be triggered by either the positive or negative edge. In analyzing the behavior of an asynchronous sequential circuit, one often needs to know which edge trigger the flip-flops used. J. C. Huang, 2004 Digital Logic Design 23

D D a level sensitive latch Clock Clk a D b b positive-edgetriggered D c c negative-edgetriggered (a) Circuit Clock D a b c (b) Timing diagram J. C. Huang, 2004 Digital Logic Design 24

Serial-in, serial-out unidirectional shift register J. C. Huang, 2004 Digital Logic Design 25

Serial-in, parallel-out unidirectional shift register J. C. Huang, 2004 Digital Logic Design 26

Parallel-in unidirectional shift register J. C. Huang, 2004 Digital Logic Design 27

Universal shift register J. C. Huang, 2004 Digital Logic Design 28

4-bit binary ripple (asynchronous) counter with positive-edge triggered flip-flops. J. C. Huang, 2004 Digital Logic Design 29

A 3-bit up-counter 1 T T T Clock 0 1 2 (a) Circuit Clock 0 1 2 Count 0 1 2 3 4 5 6 7 0 (b) Timing diagram The flip-flops are triggered by positive going edge of the clock input. J. C. Huang, 2004 Digital Logic Design 30

Analysis method: Construct a list of state changes as follows. 1. Assume that the counter starts with some values, say, 000. 2. Because T=1 for 0, 0 will change at the arrival of every clock pulse. Complete the listing for 0. 3. Because T= 0, and because the flip-flop is triggered by a positive going clock input, for 1, 1 changes its content whenever 0 changes from 1 to 0. 4. Do the same for the listing for 2. 2 1 0 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 0 0 0 J. C. Huang, 2004 Digital Logic Design 31

1 T T T Clock A 3-bit down-counter 0 1 2 (a) Circuit Clock 0 1 2 Count 0 7 6 5 4 3 2 1 0 (b) Timing diagram The flip-flops are triggered by positive going edge of the clock input J. C. Huang, 2004 Digital Logic Design 32

Analysis method: Construct a list of state changes as follows. 1. Assume that the counter starts with some values, say, 000. 2. Because T=1 for 0, 0 will change at the arrival of every clock pulse. Complete the listing for 0. 3. Because T= 0, and because the flip-flop is triggered by a positive going clock input, for 1, it changes its content whenever 0 changes from 0 to 1. 4. Do the same for the listing for 2. 2 1 0 0 0 0 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0 J. C. Huang, 2004 Digital Logic Design 33

The following synchronous counter can be analyzed similarly 0 1 2 1 Clock T T T 2 1 0 0 0 0 0 0 1 0 1 0 1 1 1 0 0 0 J. C. Huang, 2004 Digital Logic Design 34

Four-bit synchronous binary counter J. C. Huang, 2004 Digital Logic Design 35

Four-bit synchronous binary counter variation J. C. Huang, 2004 Digital Logic Design 36

Four-bit synchronous binary counter with parallel load inputs J. C. Huang, 2004 Digital Logic Design 37

Synchronous mod-10 counter J. C. Huang, 2004 Digital Logic Design 38

8-bit synchronous binary counter constructed from two 4-bit synchronous binary counters J. C. Huang, 2004 Digital Logic Design 39

Mod-4 ring counter J. C. Huang, 2004 Digital Logic Design 40

Mod-8 twisted-ring counter (or Johnson counter) J. C. Huang, 2004 Digital Logic Design 41

Mod-7 twisted-ring counter J. C. Huang, 2004 Digital Logic Design 42

Control signal generators A control signal generator is a sequential circuit that generate a sequence of bit patterns, each of which contains only one 1. It is used to activate various devices in turn. Shown in the next slide are the wave forms of 4-bit control signals. J. C. Huang, 2004 Digital Logic Design 43

4-bit control pulses CP T0 T1 T2 T3 J. C. Huang, 2004 Digital Logic Design 44

Control-signal generator (continued) There are three ways to generate control signals (with n bits): 1. Use an n-bit ring counter (need n flip-flops) 2. Use a binary counter and a decoder ( need k flip-flops and n AND gates with k inputs, where n 2 k ) 3. Use a Johnson counter (need n/2 flip-flops) and n 2-input AND gates. J. C. Huang, 2004 Digital Logic Design 45

T 0 T 1 T 2 T 3 y 0 y 1 y 2 y 3 2-to-4 decoder w 1 w 0 En 1 Clock Clear Reset 1 0 Up-counter A part of the control circuit for the processor J. C. Huang, 2004 Digital Logic Design 46

0 1 n 1 D D D Reset Clock An n-bit Johnson counter, augmented with 2n AND-gates, will generate 2n-bit control signals. It uses n/2 flip-flops, 2n 2-input, AND gates. Figure 7.30 Johnson counter J. C. Huang, 2004 Digital Logic Design 47

A B C D D D Reset Clock Figure 7.30 A 3-bit Johnson counter J. C. Huang, 2004 Digital Logic Design 48

Counting sequence of a 3-bit Johnson counter A B C 0 0 0 1 0 0 1 1 0 1 1 1 0 1 1 0 0 1 0 0 0. A Johnson counter, augmented with a bank of AND gates, becomes a control-signal generator A' C' A B' B C' A C A' C B' C T 0 T 1 T 2 T 3 T 4 T 5 J. C. Huang, 2004 Digital Logic Design 49

Synchronous counters A synchronous counter is a special kind of synchronous sequential circuit, the analysis and design of such a circuit will be discussed in the next chapter. J. C. Huang, 2004 Digital Logic Design 50