Unit 11. Latches and Flip-Flops

Similar documents
Other Flip-Flops. Lecture 27 1

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

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. Synchronous Sequential Circuits

Logic Design. Flip Flops, Registers and Counters

Chapter 5: Synchronous Sequential Logic

D Latch (Transparent Latch)

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

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

ELCT201: DIGITAL LOGIC DESIGN

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

ELCT201: DIGITAL LOGIC DESIGN

DIGITAL CIRCUIT LOGIC UNIT 11: SEQUENTIAL CIRCUITS (LATCHES AND FLIP-FLOPS)

CHAPTER 11 LATCHES AND FLIP-FLOPS

CHAPTER 1 LATCHES & FLIP-FLOPS

Introduction to Sequential Circuits

Synchronous Sequential Logic

CHAPTER 4: Logic Circuits

CHAPTER 4: Logic Circuits

MC9211 Computer Organization

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

ECE 341. Lecture # 2

Engr354: Digital Logic Circuits

Sequential Circuits: Latches & Flip-Flops

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

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

Chapter 8 Sequential Circuits

ELE2120 Digital Circuits and Systems. Tutorial Note 7

Chapter 11 Latches and Flip-Flops

Part II. Chapter2: Synchronous Sequential Logic

RS flip-flop using NOR gate

Chapter 5 Synchronous Sequential Logic

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

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

RS flip-flop using NOR gate

Digital Fundamentals: A Systems Approach

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

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

Vignana Bharathi Institute of Technology UNIT 4 DLD

Asynchronous (Ripple) Counters

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

Synchronous Sequential Logic. Chapter 5

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

Sequential Logic Circuits

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

LATCHES & FLIP-FLOP. Chapter 7

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Switching Circuits & Logic Design

Flip-Flops and Sequential Circuit Design

CHAPTER1: Digital Logic Circuits

CMSC 313 Preview Slides

Lecture 8: Sequential Logic

EET2411 DIGITAL ELECTRONICS

Chapter 5 Synchronous Sequential Logic

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

Combinational vs Sequential

Synchronous Sequential Logic

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

Digital Logic Design ENEE x. Lecture 19

UNIT IV. Sequential circuit

Sequential Logic and Clocked Circuits

Chapter 5 Sequential Circuits

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Synchronous Sequential Logic

LAB 7. Latches & Flip Flops

Synchronous Sequential Logic

Synchronous Sequential Logic

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

Digital Fundamentals

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

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

Digital Circuits ECS 371

The NOR latch is similar to the NAND latch

Introduction to Microprocessor & Digital Logic

Sequential Design Basics

5: Sequential Logic Latches & Flip-flops

Combinational / Sequential Logic

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

Counters

6. Sequential Logic Flip-Flops

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Digital Logic Design I

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

Module -5 Sequential Logic Design

Chapter 4. Logic Design

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

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

CS T34-DIGITAL SYSTEM DESIGN Y2/S3

10.1 Sequential logic circuits are a type of logic circuit where the output of the circuit depends not only on

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

ELE2120 Digital Circuits and Systems. Tutorial Note 8

Chapter 5 Flip-Flops and Related Devices

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

MODULE 3. Combinational & Sequential logic

Review of digital electronics. Storage units Sequential circuits Counters Shifters

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

Transcription:

Unit 11 Latches and Flip-Flops 1

Combinational Circuits A combinational circuit consists of logic gates whose outputs, at any time, are determined by combining the values of the inputs. For n input variables, there are 2 n possible binary input combinations. For each binary combination of the input variables, there is one possible output. 2018/2/5 Combinational Logic PJF- 2

Combinational Circuits (cont.) Hence, a combinational circuit can be described by: 1. A truth table that lists the output values for each combination of the input variables, or 2. m Boolean functions, one for each output variable. n-inputs Combinational Circuit m-outputs 2018/2/5 Combinational Logic PJF- 3

Combinational vs. Sequential Circuits Combinational circuits are memory-less. Thus, the output value depends ONLY on the current input values. Sequential circuits consist of combinational logic as well as memory elements (used to store certain circuit states). Outputs depend on BOTH current input values and previous input values (kept in the storage elements). 2018/2/5 Combinational Logic PJF- 4

Combinational vs. Sequential Circuits n-inputs Combinational Circuit Combinational Circuit m-outputs (Depend only on inputs) n-inputs Combinational Circuit Next state Storage Elements m-outputs Present state Sequential Circuit 2018/2/5 Combinational Logic PJF- 5

Sequential Logic Output depends not only on current input but also on past input values, e.g., design a counter Outputs from the system are fed back as new inputs Need some type of memory to remember the past input values 2018/2/5 feed Sequential back Circuits PJF - 6

Memory Elements Memory elements are needed in most digital logic circuits to hold (remember) logic values 2 basic types of memory elements: Latches Level-sensitive to inputs Flip-flops Edge-triggered on active edge of clock 7

Set-Reset (SR) Latch (NOR) The simplest memory element is a set-reset (SR) latch Cross-coupled NOR gates Active high inputs :R (reset) and S (set) Only one input can be active to avoid undefined state Outputs: Q and Q => Q = current state of latch 8

Set-Reset (SR) Latch (NOR) an input S = 1 sets the output to Q = 1 an input R = 1 resets the output to Q = 0 with the restriction that R and S cannot be 1 simultaneously 9

Set-Reset (SR) Latch (NOR) Characteristic Equation (next-state equation) 10

Set-Reset (SR) Latch (NAND) 11

Set-Reset (SR) Latch (NAND) Characteristic Equation (next-state equation) 12

Timing Diagram Timing Diagram for S-R Latch 13

Gated Latches Gated latches have an additional input called the gate or enable input When the gate input (enable) is inactive, which may be the high or low value, the state of the latch cannot change. When the gate input is active, the latch is controlled by the other inputs and operates as indicated in the preceding section. 14

SR Latch with Gated Input 15

Gated D Latch One way to eliminate the undesirable condition of the indeterminate state in SR latch is to ensure that inputs S and R are never equal to 1 at the same time. This is done in the D latch. 16

Gated D Latch 17

Flip-Flops The state of a latch or flip-flop is switched by a change in the control input. This momentary change is called a trigger and the transition it causes is said to trigger the flipflop. The D latch with pulses in its control input is essentially a flip-flop that is triggered every time the pulse goes to the logic 1 level. As long as the pulse input remains in the level, any changes in the data input will change the output and the state of the latch. 18

Clock Response in Latch A positive level response in the control input allows changes, in the output when the D input changes while the clock pulse stays at logic 1. 19

Clock Response in Flip-Flop 20

Edge-Triggered D Flip-Flop The first latch is called the master and the second the slave. The circuit samples the D input and changes its output Q only at the negative-edge of the controlling clock. D 1 1 0 0 1 1 Y 1 1 0 0 1 1 Q? 1 1 0 0 1. CLK 21

Edge-Triggered D Flip-Flop Timing Diagram for D Flip-Flop (Falling-Edge Trigger( 22

Graphic Symbol for D Flip-Flop 23

Timing terminology and constraints for a FF Setup time t su : Amount of time the input must be stable before the clock transitions high (or low for negative-edge triggered FF) Hold time t h : Amount of time the input must be stable after the clock transitions high (or low for negative-edge triggered FF) Clock width t w : Minimum clock width that must be met in order for FF to work properly Propagation delays t p-lh and t p-hl : Propagation delay (high to low, low to high) 24

Determination of Minimum Clock Period 25

S-R Flip-Flop 26

J-K Flip-Flop 27

T Flip-Flop 28

Flip-Flop Characteristic Tables 29

Characteristic Equations D flip-flop Characteristic Equations Q(t + 1) = D JK flip-flop Characteristic Equations Q(t + 1) = JQ` + K`Q T flip-flop Characteristic Equations Q(t + 1) = T Q = TQ` + T`Q 30

Flip-Flops with Additional Inputs Flip-flops often have additional inputs which can be used to set the flip-flops to an initial state independent of the clock 9/15/09 - L20 Flip Flops D Flip-Flop with Clear and Preset 31

Flip-Flops with Additional Inputs Clr and Pre are often referred to as asynchronous clear and preset inputs because their operation does not depend on the clock. 32 Timing Diagram for D Flip-Flop with Asynchronous Clear and Preset

Flip-Flop with Clock Enable In synchronous digital systems, the flip-flops are usually driven by a common clock so that all state changes occur at the same time in response to the same clock edge. When designing such systems, we frequently encounter situations where we want some flip-flops to hold existing data even though the data input to the flip-flops may be changing. 33

Flip-Flop with Clock Enable One way to do this is to gate the clock has some potential problems Better way is to use a flip-flop with a clock enable (CE). Such flip-flops are commonly used in CPLDs and FPGAs. 34

HomeWork Solve the following problems from the textbook unit 11: 2, 4, 6, 9, 10, 13, 14, 16, 24 35

Finally. Any Questions?