Switching Circuits & Logic Design

Similar documents
Switching Circuits & Logic Design

UNIT 11 LATCHES AND FLIP-FLOPS

Latches and Flip-Flops UNIT 11 LATCHES AND FLIP-FLOPS. How to Remember the Past? Recap: Two Types of Switching Circuits. Iris Hui-Ru Jiang Spring 2010

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

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

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

CHAPTER 11 LATCHES AND FLIP-FLOPS

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

6. Sequential Logic Flip-Flops

CH 11 Latches and Flip-Flops

Engr354: Digital Logic Circuits

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates.

Sequential Circuits: Latches & Flip-Flops

Unit 11. Latches and Flip-Flops

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

! Two inverters form a static memory cell " Will hold value as long as it has power applied

Sequential Logic. Sequential Circuits. ! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew

INTRODUCTION TO SEQUENTIAL CIRCUITS

Flip-Flops and Sequential Circuit Design

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 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Basis of sequential circuits: the R-S latch

Lecture 8: Sequential Logic

Logic Design. Flip Flops, Registers and Counters

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.

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

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

Introduction to Sequential Circuits

Experiment 8 Introduction to Latches and Flip-Flops and registers

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.

ALGORITHMS IN HW EECS150 ALGORITHMS IN HW. COMBINATIONAL vs. SEQUENTIAL. Sequential Circuits ALGORITHMS IN HW

ELCT201: DIGITAL LOGIC DESIGN

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

Chapter 11 Latches and Flip-Flops

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

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

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

RS flip-flop using NOR gate

RS flip-flop using NOR gate

ELCT201: DIGITAL LOGIC DESIGN

Traversing Digital Design. EECS Components and Design Techniques for Digital Systems. Lec 22 Sequential Logic - Advanced

Fundamentals of Computer Systems

Advanced Digital Logic Design EECS 303

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

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

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

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

ENGR 303 Introduction to Logic Design Lecture 10. Dr. Chuck Brown Engineering and Computer Information Science Folsom Lake College

Sequential Design Basics

Chapter. Synchronous Sequential Circuits

Introduction to Microprocessor & Digital Logic

give sequence to events have memory (short-term) use feedback from output to input to store information

ELE2120 Digital Circuits and Systems. Tutorial Note 7

LATCHES & FLIP-FLOP. Chapter 7

The NOR latch is similar to the NAND latch

Overview of Chapter 4

Asynchronous (Ripple) Counters

Fundamentals of Computer Systems

Combinational vs Sequential

Fundamentals of Computer Systems

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

Digital Fundamentals

Review of digital electronics. Storage units Sequential circuits Counters Shifters

EET2411 DIGITAL ELECTRONICS

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

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

CHAPTER 1 LATCHES & FLIP-FLOPS

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

Lecture 7: Sequential Networks

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

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Chapter 5 Flip-Flops and Related Devices

SEQUENTIAL CIRCUITS THE RELAY CIRCUIT

Sequential Logic Circuits

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

D Latch (Transparent Latch)

Digital Circuits ECS 371

Other Flip-Flops. Lecture 27 1

Logic Circuits. A gate is a circuit element that operates on a binary signal.

Figure 1 shows a simple implementation of a clock switch, using an AND-OR type multiplexer logic.

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

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

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

Sequential Logic and Clocked Circuits

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

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

Chapter 5 Synchronous Sequential Logic

Digital Fundamentals: A Systems Approach

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

Digital Integrated Circuits EECS 312

MUX AND FLIPFLOPS/LATCHES

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

No feedback between inputs and outputs combinational What is charge sharing?

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

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

CPS311 Lecture: Sequential Circuits

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

Transcription:

witching Circuits & Logic esign Jie-Hong oland Jiang 江介宏 epartment of Electrical Engineering National Taiwan University Fall 24 Latches and Flip-Flops http://www3.niaid.nih.gov/topics/malaria/lifecycle.htm 2

Outline Introduction et-reset latch Gated latch Edge-triggered flip-flop - flip-flop J-K flip-flop T flip-flop Flip-flops with additional inputs ummary 3 Introduction Combinational circuits Output is a function depending on the present input, but noast inputs Given an arbitrary input, a combinational circuiroduces only one possible output (after certain delay) Not necessarily acyclic (without feedback) equential circuits Output is a function depending on the past sequence of inputs Must be cyclic (with feedback) ynchronous sequential circuits With synchronization signals (clocked) Asynchronous sequential circuits Without synchronization signals (clockless) 4

Introduction Combinational circuits (without memory) 2 3 f z = f(, 2, 3 ) equential circuits (with memory) s mem f g z = f(,s) s + = g(,s) time inde z = f(,s ) z = f(,g(,s )) z2 = f(2,g(,g(,s))) 5 Introduction To construct a system (e.g., circuit, neural network, etc.) that remembers something about the past history of the inputs Need feedback! (assuming no memristive effectives) Closed loops formed in a circuit connection 6

Introduction Memory devices Memory devices Latches and flip-flops can assume one of two stable output states, and have one or more inputs that can cause the output state to change Latch Have no clock input Flip-flip Change output state in response to a clock input, but not a data input 7 Introduction Feedback Unstable Oscillator Feedback X X Inverter with feedback Oscillation at inverter output table Memory (-bit) 8

et-eset Latch - latch (a) table: = (b) et: : : (a) table: = (b) eset: : : 9 et-eset Latch Cross-coupled form - latch symbol ' ' L eset et eset et directly above (different from the cross-coupled form)

et-eset Latch Improper - latch operation When = =, the circuit is unstable isallow = = for - latch et-eset Latch Timing diagram ' є є t t 2 t 3 t 4 t t +є t 3 +є : two NO-gate delay The duration of the (or ) inpuulse must normally be no less than in order for a change in the state of to occur 2

et-eset Latch Operation Net-state equation (or characteristic equation): + = +' (=, i.e., == disallowed) resent (or current) state The state of the output of the latch or flip-flop at the time the input signals are applied (or changed) Net state + The state of the output after the latch or flip-flop has reacted to these input signals (t) (t) (t) (t+ ) - - hold reset set prohibited (t) (t) (t) (t+є)=(t)+'(t)(t) 3 et-eset Latch Application witch debouncing Note: only work for a double throw switch, switching between two contacts (but not for a single throw switch) why? +V b a witch at a Bounce at a witch between a and b Bounce at b witch at b 4

et-eset Latch Alternative Implementation - latch - latch using NAN gates + L ' - - hold reset set prohibited ' Inputs and are active low 5 Gated Latch Gated latch G G L ' Truth table ymbol L G ' G + hold ( + = ) transparent ( + = ) G + = G'+G 6

Edge-Triggered Flip-Flop Unlike latch, flip-flip output changes only in response to the clock, not to a change in rising (or positive) edge triggered (-to- transition on clock) falling (or negative) edge triggered (-to- transition on clock) ' FF ' FF + + = ising-edge trigger Falling-edge trigger Truth table 7 Edge-Triggered Flip-Flop Timing diagram (falling-edge trigger) 8

Edge-Triggered Flip-Flop Implementation flip-flop (rising-edge trigger) Composed of two gated latches CLK L G 2 2 L 2 G 2 Time analysis L 2 hold L hold L 2 hold CLK=G 2 If L starts following before L 2 takes on, the FF will not function properly G 9 Edge-Triggered Flip-Flop etup Time and Hold Time ropagation delay: The time between the active edge of the clock and the resulting change in the output etup time: t su The amount of time must be stable before the active edge Hold time: t h The amount of time must hold the same value after the active edge t su t h allowed to change 2

Edge-Triggered Flip-Flop etermine Minimum Clock eriod imple flip-flop circuit eample ( 5ns, t su 3ns, inverter delay 2ns) CLK t su inv delay CLK etup time not satisfied t su t su etra 5ns inv delay inv delay etup time satisfied Minimum clock period 2 - Flip-Flop imilar to - latch but with clock input ame truth table and characteristic equation Interpretation of + is different Latch: + is the value of after the propagation delay through the latch FF: + is the value that assumes after the active clock edge - flip-flop ' changes at clock edges Operation summary: == no state change =,= set to (after active edge) =,= reset to (after active edge) == not allowed 22

- Flip-Flop Implementation - flip-flop (master-slave flip-flop) Composed of two - latches Only allow the and inputs to change while CLK is high CLK Master 2 lave ' ' ' Time analysis 2 CLK CLK t t 2 t 3 t 4 t 5 ising-edge-triggered FF: Inputs can change while CLK is low Master-slave FF: Incorrect if inputs change while CLK is low 23 J-K Flip-Flop J-K flip-flop is an etended version of - flip-flop + = J'+K' J corresponds to (Jump to ); K corresponds to (Klear to ) tate toggled when J=K= Clk J-K flip-flop ' K FF CK J J K J K + Hold t t 2 t 3 Clear to Jump to Toggle CLK J K Master ' 2 lave 2 ' ' 24

T Flip-Flop T flip-flop ' FF T T + hold toggle + = T'+T' = T T = + = T = + = ' T t t 2 t 3 t 4 25 T Flip-Flop Implementation Conversion of J-K to T Connect J and K inputs of a J-K FF together + =J'+K' + =T'+T' Conversion of to T Let = T + = + = T ' ' K CK J Clk T Clk T 26

Flip-Flops with Additional Inputs Asynchronous Clear and reset Flip-flops often have additional inputs to set the flip-flops to an initial state independent of the clock ren ClrN + ClrN ' ren,, (not allowed) (no change) ClrN and ren are asynchronous clear and preset inputs (they override the and inputs) ClrN and ren are active low signals When ClrN=reN=, the FF is in normal operation should not be applied to ClrN and ren simultaneously 27 Flip-Flops with Additional Inputs Asynchronous Clear and reset Timing diagram for flip-flop with asynchronous clear and preset CLK ClrN ren t t 2 t 3 t 4 28

Flip-Flops with Additional Inputs Clock Enable flip-flop with clock enable (CE) -CE symbol CE ' Implementation : gating the clock Clk En ' Implementation 2: no clock gating Loss of synchronization when ) clock arrive at some FFs at different times 2) En changes at the wrong time CE + = = (CE)' + in (CE) in No synchronization problem Clk ' 29 ummary Latch (w/o clock input) vs. flip-flop (w/ clock input) ropagation delay, setup time, hold time resent (current) state, net state Characteristic (net-state) equations + = +' (=) (- latch or flip-flop) + = G+G' (gated latch) + = ( flip-flop) + = CE+ CE' (-CE flip-flop) + = J'+K' (J-K flip-flop) + = T = T'+T' (T flip-flop) estrictions For - latch/flip-flop, and can not be simultaneously For master-slave - flip-flop, and should not change during the half clock cycle preceding the active edge etup and hold time constraints 3