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.

Similar documents
Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

D Latch (Transparent Latch)

Introduction to Sequential Circuits

Unit 11. Latches and Flip-Flops

Synchronous Sequential Logic

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

Logic Design. Flip Flops, Registers and Counters

Sequential Circuits: Latches & Flip-Flops

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

ELCT201: DIGITAL LOGIC DESIGN

Chapter 8 Sequential Circuits

Chapter. Synchronous Sequential Circuits

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

Chapter 5: Synchronous Sequential Logic

INTRODUCTION TO SEQUENTIAL CIRCUITS

ELCT201: DIGITAL LOGIC DESIGN

Chapter 11 Latches and Flip-Flops

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

Other Flip-Flops. Lecture 27 1

MC9211 Computer Organization

Chapter 5 Synchronous Sequential Logic

ECE 341. Lecture # 2

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

RS flip-flop using NOR gate

CHAPTER 4: Logic Circuits

Synchronous Sequential Logic

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

CHAPTER 4: Logic Circuits

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).

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

Combinational vs Sequential

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

RS flip-flop using NOR gate

Digital Fundamentals

Sequential Logic Circuits

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

Synchronous Sequential Logic. Chapter 5

Lecture 8: Sequential Logic

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

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

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

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

Vignana Bharathi Institute of Technology UNIT 4 DLD

CMSC 313 Preview Slides

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

ASYNCHRONOUS COUNTER CIRCUITS

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

UNIT IV. Sequential circuit

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

LATCHES & FLIP-FLOP. Chapter 7

Sequential Logic and Clocked Circuits

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

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

6. Sequential Logic Flip-Flops

CHAPTER1: Digital Logic Circuits

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

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Digital Fundamentals: A Systems Approach

2 Sequential Circuits

Engr354: Digital Logic Circuits

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

Digital Logic Design I

CHAPTER 1 LATCHES & FLIP-FLOPS

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

PGT104 Digital Electronics. PGT104 Digital Electronics

Asynchronous (Ripple) Counters

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

Switching Circuits & Logic Design

Counters

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

Combinational / Sequential Logic

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

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

CHAPTER 11 LATCHES AND FLIP-FLOPS

Digital Logic Design ENEE x. Lecture 19

Review of Flip-Flop. Divya Aggarwal. Student, Department of Physics and Astro-Physics, University of Delhi, New Delhi. their state.

Review of digital electronics. Storage units Sequential circuits Counters Shifters

CPS311 Lecture: Sequential Circuits

B.Tech CSE Sem. 3 15CS202 DIGITAL SYSTEM DESIGN (Regulations 2015) UNIT -IV

Chapter 4. Logic Design

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Sequential Logic Basics

MUX AND FLIPFLOPS/LATCHES

Digital Fundamentals 11/2/2017. Summary. Summary. Floyd. Chapter 7. Latches

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

ELE2120 Digital Circuits and Systems. Tutorial Note 7

Part II. Chapter2: Synchronous Sequential Logic

Chapter 5 Flip-Flops and Related Devices

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

MODULE 3. Combinational & Sequential logic

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

Feedback Sequential Circuits

Rangkaian Sekuensial. Flip-flop

Chapter 5 Synchronous Sequential Logic

5: Sequential Logic Latches & Flip-flops

Module -5 Sequential Logic Design

Chapter 6 Digital Circuit 6-5 Department of Mechanical Engineering

Transcription:

Flip-Flops Objectives The objectives of this lesson are to study: 1. Latches versus Flip-Flops 2. Master-Slave Flip-Flops 3. Timing Analysis of Master-Slave Flip-Flops 4. Different Types of Master-Slave Flip-Flops 5. Propagation Delay Problem with Latches A latch is a level sensitive device. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active. Thus, instead of having output change once in a clock cycle, the output may change a number of times resulting in latching of unwanted input to the output. Due to this uncertainty, latches can not be reliably used as storage elements. Solution to this Problem To overcome this problem of undesired toggling, we need to have a mechanism in which we have higher degree of control on the output of the memory element when the clock pulse changes. This is achieved by introducing a special clock-edge detection logic, such that the state of the memory element is switched by a momentary change in the clock pulse (i.e. an edge). This is effective because the clock changes only once during a clock period. Such a memory element is "edge-sensitive", i.e., it changes its state at the rising or falling edge of a clock. Edge-sensitive memory elements are called Flip-Flops. Figure 1 shows the standard graphic symbols for positive and negative edge triggered Flip-Flops.

Master-Slave Flip-Flops Figure 1: Graphic Symbols of Edge-Triggered Flip-Flops The simplest way to build a flip-flop is by using two latches in a Master-Slave configuration as shown in Figure 2. In this configuration, one latch serves as the master receiving the external inputs and the other as a slave, which takes its inputs from the master. When the clock pulse goes high, information at S and R inputs is transmitted to master. The slave flip-flop however remains isolated since its control input C is 0. Now when the clock pulse returns to 0, the master gets disabled and blocks the external inputs to get to its outputs whereas slave gets enabled and passes the latched information to its outputs. Figure 2: Block diagram of SR Master-Slave Flip-Flop Timing Analysis of Master-Slave Flip-Flop Now let's view the operation of the master-slave flip-flop by analyzing its timing wave forms (See Figure 3). Consider a master-slave flip-flop in the clear state (i.e. Y=0 and Q=0) prior to the occurrence of a pulse. The inputs S=1 and R=0 are applied. So when the clock goes high, the output of the master latch will change to the set state, while the slave latch remains disabled.

When the clock returns to 0, the master latch is disabled and the slave latch is enabled. Thus, the data at the slave's input when the clock was high gets latched at the slave's output. Figure 3: Timing wave form of SR Master-Slave Flip-Flop Different Types of Master-Slave Flip-Flops Master-Slave JK-FF The SR flip-flop can be modified to a JK flip-flop to eliminate the undesirable condition that leads to undefined outputs and indeterminate behavior. A Master-Slave JK Flip-Flop is shown in the Figure 4. Here, the output gets complemented when both J and K inputs are high. D-Type Positive-Edge-Triggered FF Figure 4: JK Master-Slave Flip-Flop The logic diagram of a positive edge triggered D-type flip-flop is shown in the Figure 5. This flip-flop takes exactly the form of a master-slave flip-flop, with the master a D latch and the slave an SR latch. Also, an inverter is added to the clock input of the master latch.

Because the master latch is a D latch, the flip-flop exhibits edge-triggered rather than master-slave (pulse-triggered) behavior. Figure 5: D-Type Positive-Edge-Triggered FF Propagation Delay In digital logic, every gate has got some finite amount of delay because of which the change in the output is not instantaneous to the change in the input. In simple terms, the times it takes for an input to appear at the output is called the propagation delay. In Figure 6, t PHL, describes the time it takes for an input to cause the output to change from logic-level-high to logic-level-low. Similarly, t PLH, refers to the delay associated when an input change causes the output to change from logic-level-low to logic-level-high. The overall delay is average of these two delays. Figure 6: Propagation Delay

Setup and Hold Times For correct operation of logic gates we need to satisfy some timing constrains regarding application of inputs and collecting of their outputs. Setup time (T s ) refers to a constant duration for which the inputs must be held prior to the arrival of the clock transition (See Figure 7). Once the inputs are properly set, it must be kept for some time for their proper reading-in by the gate once the transition signal is triggered. Hold time (T h ) refers to the duration for which the inputs must not change after the arrival of the transition (See Figure 7). If the setup and hold times are violated, a gate may produce an unknown logic signal at its output. This condition is called as meta-stability. Figure 7: Setup and Hold Times Propagation Delay To set or clear flip-flops asynchronously (i.e., without the use of clock and inputs) some flip-flops have direct inputs usually called direct preset or direct clear. These inputs are needed to bring the flip-flops to a known initial state prior to the normal clocked operation. A direct preset input, sets the output of a flip-flop to some known value, asynchronously, for example logic-1 or logic-0. A direct clear switch clears or resets all the flip-flops to logic value-0. Figure 8 shows the graphical symbol of a negative-edge-triggered JK-flip-flop with a direct clear.

Figure 8: Negative-edge-triggered JK Flip-Flop with Asynchronous Clear