CMSC 313 Preview Slides

Similar documents
Unit 11. Latches and Flip-Flops

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.

Other Flip-Flops. Lecture 27 1

Logic Design. Flip Flops, Registers and Counters

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

Engr354: Digital Logic Circuits

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

ECE 341. Lecture # 2

D Latch (Transparent Latch)

Introduction to Sequential Circuits

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

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

RS flip-flop using NOR gate

Lecture 8: Sequential Logic

Asynchronous (Ripple) Counters

Experiment 8 Introduction to Latches and Flip-Flops and registers

RS flip-flop using NOR gate

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

LAB #4 SEQUENTIAL LOGIC CIRCUIT

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

Sequential Design Basics

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

Chapter 11 Latches and Flip-Flops

Flip-Flops and Sequential Circuit Design

Sequential Logic Circuits

Synchronous Sequential Logic

CprE 281: Digital Logic

INTRODUCTION TO SEQUENTIAL CIRCUITS

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

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

Digital Logic Design ENEE x. Lecture 19

Flip-Flops and Registers

Rangkaian Sekuensial. Flip-flop

Counters

MC9211 Computer Organization

Sequential Circuits: Latches & Flip-Flops

Digital Logic Design I

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

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

(Refer Slide Time: 2:05)

Chapter 5 Synchronous Sequential Logic

CH 11 Latches and Flip-Flops

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

Sequential Logic and Clocked Circuits

CHAPTER 4: Logic Circuits

Chapter 8 Sequential Circuits

Course Administration

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

CHAPTER 4: Logic Circuits

Introduction to Microprocessor & Digital Logic

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

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

The NOR latch is similar to the NAND latch

Counter dan Register

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.

EKT 121/4 ELEKTRONIK DIGIT 1

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

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

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.

Principles of Computer Architecture. Appendix A: Digital Logic

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

Synchronous Sequential Logic. Chapter 5

Chapter 5: Synchronous Sequential Logic

Digital Circuits ECS 371

UNIVERSITI TEKNOLOGI MALAYSIA

CS 261 Fall Mike Lam, Professor. Sequential Circuits

ECE 545 Digital System Design with VHDL Lecture 2. Digital Logic Refresher Part B Sequential Logic Building Blocks

Analysis of Clocked Sequential Circuits

CprE 281: Digital Logic

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

Flip-flop and Registers

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

Registers and Counters

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

DIGITAL CIRCUIT COMBINATORIAL LOGIC

LATCHES & FLIP-FLOP. Chapter 7

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

Chapter 5 Sequential Circuits

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

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

Chapter 2. Digital Circuits

ASYNCHRONOUS COUNTER CIRCUITS

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

Switching Circuits & Logic Design

UNIT IV. Sequential circuit

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

Digital Fundamentals: A Systems Approach

Exercise 2: D-Type Flip-Flop

CprE 281: Digital Logic

CprE 281: Digital Logic

ESE 570 STATIC SEQUENTIAL CMOS LOGIC CELLS. Kenneth R. Laker, University of Pennsylvania, updated 25Mar15

Slide Set 7. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

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.

ECE 331 Digital System Design

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

ECE 301 Digital Electronics

Transcription:

CMSC 33 Preview Slides These are draft slides. The actual slides presented in lecture may be different due to last minute changes, schedule slippage,... UMBC, CMSC33, Richard Chang <chang@umbc.edu>

CMSC 33 Lecture 22 Latches vs flip-flops Edge-triggered flip-flops Finite state machines UMBC, CMSC33, Richard Chang <chang@umbc.edu>

Latches vs Flip-Flops Latch Output changes right after the input changes No reference to clocking event M&H s SR flip-flop if often called an SR latch in other texts. Level-Sensitive Latch A latch that operates only when the clock is high or only when low M&H s clocked SR flip-flop is a level sensitive latch Flip-Flop Reserved for circuits that record the input only during clocking events The output of the flip-flop does not change during this clocking event M&H s master-slave flip-flop fits this definition UMBC, CMSC33, Richard Chang <chang@umbc.edu>

J-K Flip-Flops Allows both set and reset to be When both J and K are, the output toggles If the clock is high, endless toggle occurs Master-slave J-K flip-flops solve the endless toggle problem, but has the ones-catching problem Use edge-triggered flip-flops to eliminate the onescatching problem. UMBC, CMSC33, Richard Chang <chang@umbc.edu>

A-56 Master-Slave J-K Flip-Flop J J CLK K K Circuit Symbol

A-57 Clocked T Flip-Flop The presence of a constant at J and K means that the flip-flop will change its state from to or to each time it is clocked by the T (Toggle) input. J T T K Circuit Symbol

Edge-Triggered Flip-Flops Records input during a low-to-high (positive edge) or a high-to-low (negative edge) clock transition Signal must be stable before setup time and continue to be stable for hold time setup time UMBC, CMSC33, Richard Chang <chang@umbc.edu> hold time

A-58 Negative Edge-Triggered D Flip-Flop When the clock is high, the two input latches output, so the Main latch remains in its previous state, regardless of changes in D. Stores D R When the clock goes high-to-low, values in the two input latches will affect the state of the Main latch. CLK S Main latch While the clock is low, D cannot affect the Main latch. D Stores D

Master-Slave vs Edge-Triggered Master-slave flip-flops record the input in the slave when the clock goes from high to low Are master-slave flip-flops negative edge-triggered flip-flops? Some textbooks say yes others say no Master-slave JK flip-flops have the ones catching problem (momentary high signal at J when the clock is high is caught and recorded.) Master-slave D flip-flops do not have the ones catching problem UMBC, CMSC33, Richard Chang <chang@umbc.edu>

A-59 Example: Modulo-4 Counter Counter has a clock input (CLK) and a RESET input. Counter has two output lines, which take on values of,,, and on subsequent clock cycles. Time (t) RESET q 4 3 2 4 3 2 Time (t) 3-bit q Synchronous s Counter D CLK s D s s

A-6 State Transition Diagram for RESET Output state / q q A / / Output state B Mod-4 Counter / / / / C / D Output state Output state

A-6 State Table for Mod-4 Counter Present state Input RESET A B/ A/ B C/ A/ C D/ A/ D A/ A/ Next state Output

A-62 State Assignment for Mod-4 Counter Present state (S t ) Input RESET A: / / B: / / C: / / D: / /

A-63 Truth Table for Mod-4 Counter RESET r(t) s (t) s (t) s s (t+) q q (t+) s (t+) = r(t)s (t)s (t) + r(t)s (t)s (t) s (t+) = r(t)s (t)s (t) + r(t)s (t)s (t) q (t+) = r(t)s (t)s (t) + r(t)s (t)s (t) q (t+) = r(t)s (t)s (t) + r(t)s (t)s (t)

A-64 Logic Design for Mod-4 Counter RESET CLK D s q D s q