Lecture 10. Latches and Flip-Flops

Similar documents
CHAPTER 11 LATCHES AND FLIP-FLOPS

Engr354: Digital Logic Circuits

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

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

ECE380 Digital Logic

Theory of Logic Circuits. Laboratory manual. Exercise 3

Memory Elements. Combinational logic cannot remember

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

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

Lesson 12 Sequential Circuits: Flip-Flops

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.

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

Sequential Logic Design Principles.Latches and Flip-Flops

BINARY CODED DECIMAL: B.C.D.

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

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

Chapter 9 Latches, Flip-Flops, and Timers

Sequential Logic: Clocks, Registers, etc.

7. Latches and Flip-Flops

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

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

Module 3: Floyd, Digital Fundamental

Set-Reset (SR) Latch

CSE140: Components and Design Techniques for Digital Systems

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

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

CHAPTER 3 Boolean Algebra and Digital Logic

Chapter 5. Sequential Logic

Modeling Latches and Flip-flops

Lecture 8: Synchronous Digital Systems

Combinational Logic Design Process

Layout of Multiple Cells

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

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

Flip-Flops and Sequential Circuit Design

Master/Slave Flip Flops

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

CS311 Lecture: Sequential Circuits

Fig1-1 2-bit asynchronous counter

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

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

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

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

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

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

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

Counters and Decoders

Lecture 10: Sequential Circuits

Lecture-3 MEMORY: Development of Memory:

Lecture 11: Sequential Circuit Design

Digital Fundamentals

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

Counters. Present State Next State A B A B

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

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

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Upon completion of unit 1.1, students will be able to

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

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

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

Counters & Shift Registers Chapter 8 of R.P Jain

Digital Logic Design Sequential circuits

Contents COUNTER. Unit III- Counters

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

Decimal Number (base 10) Binary Number (base 2)

Digital Controller for Pedestrian Crossing and Traffic Lights

Asynchronous Counters. Asynchronous Counters

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Digital Electronics Detailed Outline

Chapter 8. Sequential Circuits for Registers and Counters

Gates, Circuits, and Boolean Algebra

Sequential Circuit Design

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

ASYNCHRONOUS COUNTERS

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

Copyright Peter R. Rony All rights reserved.

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

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

CHAPTER 11: Flip Flops

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

CHAPTER 16 MEMORY CIRCUITS

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

Lecture 7: Clocking of VLSI Systems

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

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

DATA SHEETS DE COMPONENTES DA FAMÍLIA LÓGICA TTL GATES AND INVERTERS POSITIVES NAND GATES AND INVERTERS DESCRIÇÃO

Standart TTL, Serie Art.Gruppe

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

ECE124 Digital Circuits and Systems Page 1

The 104 Duke_ACC Machine

DEPARTMENT OF INFORMATION TECHNLOGY

The components. E3: Digital electronics. Goals:

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

Advanced Logic Design Techniques in Asynchronous Sequential Circuit Synthesis

Cascaded Counters. Page 1 BYU

Design: a mod-8 Counter

Transcription:

Logic Design Lecture. Latches and Flip-Flops Prof. Hyung Chul Park & Seung Eun Lee

Sequential Logic Outputs of sequential logic depend on current inputs and prior input values Sequential logic might explicitly remember certain previous inputs, or it might distill (encode) the prior inputs into a smaller amount of information called state The state is a set of bits that contain all the information about the past necessary to explain the future behavior of the circuit 2

. Introduction To construct a switching circuit has a memory, must introduce feedback to circuit Unstable state Stable states 3

Bistable Circuit Bistable circuit is the fundamental building block of other state elements A pair of inverters are connected in a loop Two outputs:, No inputs 4

Bistable Circuit Analysis Let s consider the two possible cases = : then = and = (consistent) I I2 = : then = and = (consistent) I I2 5

Bistable Circuit Analysis Bistable circuit stores bit of state in the state variable (or ) But, there are no inputs to control the state A subtle point is that the circuit could have a third possible state with both outputs approximately halfway between and (halfway between and Vdd) It is called a metastable state Vdd/2 I Vdd/2 Vdd/2 I2 Vdd/2 6

Bistable Circuit Even though the cross-coupled inverters can store a bit of information, they are not practical because they don t have inputs to control the state. Other bistable elements such as latches and flipflops provide inputs to control the value of the state variable 7

.2 Set-Reset Latch One of the simplest sequential circuits is the SR (Set/Reset) latch It is composed of 2 cross-coupled NOR gates It has 2 inputs (S, R) and 2 outputs ( and ) When the set input (S) is (and R = ), is set to Set makes the output () to When the reset input (R) is (and S = ), is reset to Reset makes the output () to R N SR Latch Symbol R S N2 S 8

.2 Set-Reset Latch Consider the four possible cases: a) S =, R = b) S =, R = R N c) S =, R = d) S =, R = S N2 9

.2 Set-Reset Latch a) S =, R = : then = and = R N S N2 b) S =, R = : then = and = R N S N2

.2 Set-Reset Latch c) S =, R = : then = prev and = prev We got Memory! prev = prev = R N R N S N2 S N2 d) S =, R = : then = and = Invalid state: NOT R N S N2

.2 Set-Reset Latch Timing Diagram R N S N2 2

.2 Set-Reset Latch Truth table and K-map 3

.2 Set-Reset Latch Switch Debouncing with an SR Latch 4

.2 Set-Reset Latch An alternative form of the SR Latch with NAND 5

.3 Gated D Latch D latch solves the problem with SR latch D latch blocks the invalid state when S = and R = D latch separates when and what the state should be changed D latch has 2 inputs (CLK, D) and 2 outputs (, ) CLK controls when the output changes D (data input) controls what the output changes to Avoids invalid case ( NOT when both S and R are ) D Latch Symbol D CLK 6

.3 Gated D Latch D latch operation When CLK =, D passes through to (D latch is transparent) When CLK =, holds its previous value (D latch is opaque) CLK D D R S R S CLK D CLK D X D S R X prev prev prev prev 7

.3 Gated D Latch When evaluating latch, it would be confusing if you think previous value and current value things To get a good intuition, think with waveform When CLK =, D latch transfers input data (D) to output () When CLK =, D latch maintains its previous value 8

.3 Gated D Latch Gated D latch Symbol and Truth Table G D 9

.4 Edge Triggered D Flip-Flop In digital logic design, it would be very convenient if we can store input data at a certain moment (not during the whole time interval like D latch) D flip-flop provides that functionality changes only on the rising edge of CLK When CLK rises from to, D passes through to Otherwise, holds its previous value Thus, a flip-flop is called an edge-triggered device because it is activated on the clock edge D Flip-Flop Symbols D 2

.4 Edge Triggered D Flip-Flop Two back-to-back latches (L and L2) controlled by complementary clocks When CLK = L is transparent L2 is opaque D passes through to N When CLK = L2 is transparent L is opaque N passes through to D CLK D L N CLK CLK D L2 Thus, on the edge of the clock (when CLK rises from to ) D effectively passes through to 2

.4 Edge Triggered D Flip-Flop Note that input data should not be changed around the clock edge for D flip-flop to work correctly CLK D CLK D N CLK D L L2 22

.4 Edge Triggered D Flip-Flop Setup and Hold times for an D F/F 23

.4 Edge Triggered D Flip-Flop Determination of Minimum clock period 24

.5 S-R Flip-Flop 25

.5 S-R Flip-Flop Implementation with latches Timing 26

.6 J-K Flip-Flop 27

.6 J-K Flip-Flop Master-slave J-K Flip-Flop changes on Rising Edge 28

.7 T Flip-Flop 29

.7 T Flip-Flop Implementation of T Flip-Flops J K T T 3

.8 Flip-Flops w/ Additional Inputs D F/F with Clear and Preset 3

.8 Flip-Flops w/ Additional Inputs Timing for D F/F w/ Async. Clear and Preset 32

.8 Flip-Flops w/ Additional Inputs D F/F with clock Enable CE D CE D CE D in CE 33