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

Similar documents
Flip-Flops and Registers

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

D Latch (Transparent Latch)

CHAPTER 11 LATCHES AND FLIP-FLOPS

ECE 301 Digital Electronics

Logic Design. Flip Flops, Registers and Counters

Other Flip-Flops. Lecture 27 1

Rangkaian Sekuensial. Flip-flop

ELCT201: DIGITAL LOGIC DESIGN

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

ELCT201: DIGITAL LOGIC DESIGN

Flip-Flops and Sequential Circuit Design

Introduction to Sequential Circuits

ECE 331 Digital System Design

ECE 301 Digital Electronics

Lecture 8: Sequential Logic

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Engr354: Digital Logic Circuits

Lecture 7: Sequential Networks

Chapter 8 Sequential Circuits

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

EE 109 Homework 6 State Machine Design Name: Score:

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

Chapter. Synchronous Sequential Circuits

Synchronous Sequential Logic

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

ECE 341. Lecture # 2

CH 11 Latches and Flip-Flops

LATCHES & FLIP-FLOP. Chapter 7

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

Sequential Design Basics

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

MC9211 Computer Organization

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

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

Chapter 5 Synchronous Sequential Logic

Sequential Logic Circuits

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

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.

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

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

Sequential Circuits: Latches & Flip-Flops

CMSC 313 Preview Slides

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

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.

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

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

CS 261 Fall Mike Lam, Professor. Sequential Circuits

COMP2611: Computer Organization. Introduction to Digital Logic

Digital Circuits ECS 371

Memory elements. Topics. Memory element terminology. Variations in memory elements. Clock terminology. Memory element parameters. clock.

Chapter 6 Digital Circuit 6-5 Department of Mechanical Engineering

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

CHAPTER 4: Logic Circuits

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.

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

Switching Circuits & Logic Design

Sequential Logic and Clocked Circuits

Spring 2017 EE 3613: Computer Organization Chapter 5: The Processor: Datapath & Control - 1

RS flip-flop using NOR gate

LAB 7. Latches & Flip Flops

Module 4:FLIP-FLOP. Quote of the day. Never think you are nothing, never think you are everything, but think you are something and achieve anything.

6. Sequential Logic Flip-Flops

Digital Logic Design I

AIM: To study and verify the truth table of logic gates

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

Sequential Logic Basics

SEQUENTIAL CIRCUITS THE RELAY CIRCUIT

Part 4: Introduction to Sequential Logic. Basic Sequential structure. Positive-edge-triggered D flip-flop. Flip-flops classified by inputs

CHAPTER1: Digital Logic Circuits

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

Unit 11. Latches and Flip-Flops

Course Administration

Chapter 5 Sequential Circuits

CHAPTER 4: Logic Circuits

EKT 121/4 ELEKTRONIK DIGIT 1

Logic Design II (17.342) Spring Lecture Outline

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

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

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

Synchronous Sequential Logic. Chapter 5

12/31/2010. Overview. 12-Latches and Flip Flops Text: Unit 11. Sequential Circuits. Sequential Circuits. Feedback. Feedback

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

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

Introduction to Microprocessor & Digital Logic

RS flip-flop using NOR gate

CSE140: Components and Design Techniques for Digital Systems. More D-Flip-Flops. Tajana Simunic Rosing. Sources: TSR, Katz, Boriello & Vahid

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

MUX AND FLIPFLOPS/LATCHES

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Introduction to Digital Logic Missouri S&T University CPE 2210 Flip-Flops

Learning Outcomes. Unit 13. Sequential Logic BISTABLES, LATCHES, AND FLIP- FLOPS. I understand the difference between levelsensitive

Combinational / Sequential Logic

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

Transcription:

Latches, Flip-Flops, and Registers (Chapter #7) Dr. Ouiem Bchir The slides included herein were taken from the materials accompanying Fundamentals of Logic Design, 6 th Edition, by Roth and Kinney.

Sequential Logic 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. Spring 2015 CSC 220 - Dr. Ouiem Bchir 2

Basic Memory Elements Spring 2015 CSC 220 - Dr. Ouiem Bchir 3

Latch Flip Flop Basic Memory Elements - Clock input is level sensitive. - Output can change multiple times during a clock cycle. - Output changes while clock is active. - Clock input is edge sensitive. - Output can change only once during a clock cycle. - Output changes on clock transition. Spring 2015 CSC 220 - Dr. Ouiem Bchir 4

SR Latch: Behavior S R Q + 0 0 Q 0 1 0 1 0 1 1 1 Not allowed 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. Spring 2015 CSC 220 - Dr. Ouiem Bchir 5

SR Latch: Symbol always complementary Spring 2015 CSC 220 - Dr. Ouiem Bchir 6

SR Latch: Characteristic Equation Characteristic Equation: Q + = S + R'.Q (S.R = 0) Spring 2015 CSC 220 - Dr. Ouiem Bchir 7

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 additional logic 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. Spring 2015 CSC 220 - Dr. Ouiem Bchir 8

Gated D Latch: Symbol and Truth Table No invalid inputs! Spring 2015 CSC 220 - Dr. Ouiem Bchir 9

Gated D Latch: Characteristic Equation Characteristic Equation: Q + = G'.Q + G.D Spring 2015 CSC 220 - Dr. Ouiem Bchir 10

D Flip-Flop (edge-triggered) 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. Spring 2015 CSC 220 - Dr. Ouiem Bchir 11

D Flip-Flop Q + = D Characteristic Equation Spring 2015 CSC 220 - Dr. Ouiem Bchir 12

D Flip-Flop: Timing Diagram Which clock edge is the D flip-flop triggered on? Spring 2015 CSC 220 - Dr. Ouiem Bchir 13

SR 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. Spring 2015 CSC 220 - Dr. Ouiem Bchir 14

SR Flip-Flop 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 Spring 2015 CSC 220 - Dr. Ouiem Bchir 15

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. Spring 2015 CSC 220 - Dr. Ouiem Bchir 16

T Flip-Flop: Timing Diagram Spring 2015 CSC 220 - Dr. Ouiem Bchir 17

Registers Spring 2015 CSC 220 - Dr. Ouiem Bchir 18

Registers Several D flip-flops may be grouped together with a common clock to form a register. Because each flip-flop can store one bit of information, a register with n D flip-flops can store n bits of information. A load signal can be ANDed with the clock to enable and disable loading the registers. A better approach is to use registers with clock enables if they are available. Spring 2015 CSC 220 - Dr. Ouiem Bchir 19

Register with Tri-state Output Spring 2015 CSC 220 - Dr. Ouiem Bchir 20

Shift Register A shift register is a register in which binary data can be stored and shifted either left or right. The data is shifted according to the applied shift signal; often there is a left shift signal and a right shift signal. A shift register must be constructed using flip-flops (i.e. edgetriggered devices); it cannot be constructed using latches or gated-latches (i.e. level-sensitive devices). Spring 2015 CSC 220 - Dr. Ouiem Bchir 21

Shift Register: 4 bits Spring 2015 CSC 220 - Dr. Ouiem Bchir 22

Shift Register (4 bits): Timing Diagram Spring 2015 CSC 220 - Dr. Ouiem Bchir 23

4-bit PI PO Shift Register Spring 2015 CSC 220 - Dr. Ouiem Bchir 24

4-bit PI PO Shift Register: Operation Spring 2015 CSC 220 - Dr. Ouiem Bchir 25

4-bit PI PO Shift Register: Timing Diagram Spring 2015 CSC 220 - Dr. Ouiem Bchir 26