Chapter 11 Latches and Flip-Flops

Similar documents
Engr354: Digital Logic Circuits

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

Unit 11. Latches and Flip-Flops

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

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

Other Flip-Flops. Lecture 27 1

Experiment 8 Introduction to Latches and Flip-Flops and registers

CHAPTER 1 LATCHES & FLIP-FLOPS

LATCHES & FLIP-FLOP. Chapter 7

Introduction to Sequential Circuits

D Latch (Transparent Latch)

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

6. Sequential Logic Flip-Flops

RS flip-flop using NOR gate

Sequential Circuits: Latches & Flip-Flops

Rangkaian Sekuensial. Flip-flop

Logic Design. Flip Flops, Registers and Counters

Digital Circuits ECS 371

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

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

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

Sequential Design Basics

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

EET2411 DIGITAL ELECTRONICS

Exercise 2: D-Type Flip-Flop

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

Digital Fundamentals: A Systems Approach

Synchronous Sequential Logic

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

Introduction to Microprocessor & Digital Logic

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

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

ECE 341. Lecture # 2

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

Digital Fundamentals

Chapter. Synchronous Sequential Circuits

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

RS flip-flop using NOR gate

ELCT201: DIGITAL LOGIC DESIGN

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

Chapter 5: Synchronous Sequential Logic

CHAPTER 4: Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

Lecture 8: Sequential Logic

Digital Logic Design I

Sequential Logic Circuits

Switching Circuits & Logic Design

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.

Sequential Logic and Clocked Circuits

EEC 118 Lecture #9: Sequential Logic. Rajeevan Amirtharajah University of California, Davis Jeff Parkhurst Intel Corporation

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.

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

Counters

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

CHAPTER 4: Logic Circuits

Fundamentals of Computer Systems

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

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

Lecture 7: Sequential Networks

Fundamentals of Computer Systems

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

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.

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

CMOS Latches and Flip-Flops

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

Sequential Logic Basics

CHAPTER 11 LATCHES AND FLIP-FLOPS

EKT 121/4 ELEKTRONIK DIGIT 1

Asynchronous (Ripple) Counters

Combinational vs Sequential

CMSC 313 Preview Slides

FE REVIEW LOGIC. The AND gate. The OR gate A B AB A B A B 0 1 1

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

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

The NOR latch is similar to the NAND latch

Chapter 8 Sequential Circuits

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

Chapter 4. Logic Design

Fundamentals of Computer Systems

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

EKT 121/4 ELEKTRONIK DIGIT 1

ELE2120 Digital Circuits and Systems. Tutorial Note 7

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

Chapter 2. Digital Circuits

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

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

Synchronous Sequential Logic

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Chapter 5 Synchronous Sequential Logic

MC9211 Computer Organization

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

LAB #4 SEQUENTIAL LOGIC CIRCUIT

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

Flip-Flops and Sequential Circuit Design

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

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

Transcription:

Chapter 11 Latches and Flip-Flops SKEE1223 igital Electronics Mun im/arif/izam FKE, Universiti Teknologi Malaysia ecember 8, 2015

Types of Logic Circuits Combinational logic: Output depends solely on the present input. Has no memory. Sequential logic: Output depends not only on the present input and also on past history of inputs. Has memory. Synchronous sequential logic Use a clock signal to regulate operations. Simpler to design Asynchroous sequential logic oes not use a clock.

Types of Memory Elements Ungated Latches Gated Latches Flip-flops

Bistable Circuits Bistable circuit Any circuit stable in 0 or 1 Has memory Value does not change by itself Simplest bistable circuit : cascaded inverters

SR Latch SR = set/reset Replace inverters in prev page with NOR gates When S = R = 0, operates exactly as cascaded inverters R S R S

SR Latch S R Logic symbol. S R (next) (next) Action 0 0 No change 0 1 0 1 Reset 1 0 1 0 Set 1 1 0 0 Forbidden Characteristic table.

SR Latch S R Unknown values Set Reset Set Illegal inputs Both outputs LOW and are always opposite S = R = 0 holds previous value S = 1, R = 0 sets to 1 S = 0, R = 1 resets to 0 S = R = 1, both and goes to 0, forbidden state

S R Latch Same idea as SR latch S and R are active low R S S R (next) (next) Action 0 0 1 1 Forbidden 0 1 0 1 Set 1 0 1 0 Reset 1 1 No change

Gated SR Latch R S EN EN S R EN = 1 enables latch opens gate for SR inputs to cross-coupled gates works like ungated SR latch EN = 0 disables latch holds prev state ignores SR inputs

Gated SR Latch S EN R EN S R (next) Action 0 X X No change 1 0 0 No change 1 0 1 0 Reset 1 1 0 1 Set 1 1 1 X Forbidden EN S R Set Reset

Latch EN EN Modify SR latch to avoid SR=11 condition EN = 1 latch become transparent input is passed to output after some delay EN = 0 disables latch ignores inputs holds last input when EN went 1 0

Latch EN EN (next) Action 0 X Storage state 1 0 0 Transparent mode 1 1 1 Transparent mode EN

Clock Inputs Synchronous digital systems use a clock Clock signal is distributed to all system components All outputs change simultaneously when a clock pulse arrives Clock. T 1 T 2 T 3 T 4 T 1 = T 2 = T 3 = T 4 Not a clock. T 1 T 2 T 3 T 4 T 1 T 2 T 3 T 4

Parts of a Clock Signal Clock period Falling edge Clock width Rising edge evice Latch Gated latch Flip-flop How it uses the clock oes not use the clock Enabled when clock is high Triggered by rising or falling clock edge

Master Slave Flip-Flop EN EN Clock Master Slave Clock high Master enabled, slave disabled Input is transparently passed on to master Clock low Master disabled, slave enabled master is locked, and read by slave slave is updated

Flip-Flop Clk (next) Action 0 X No change 1 X No change 0 0 Reset 1 1 Set Set latch CLK S Output latch Reset latch R

Flip-Flop a Clock Clock Clk b a b c c

T Flip-Flop T Clk T (next) Action 0 X No change 1 X No change 0 Hold 1 Toggle T Clock

JK Flip-Flop J K C S R (next) Action 0 X X No change 1 X X No change 0 0 No change 0 1 0 Reset 1 0 1 Set 1 1 X Toggle Clock J K Set Reset Reset Toggle Toggle Toggle

JK Flip-Flop J T J Clock Clock K K K J Clock C

Flip-Flop Timing Flip-flop input Clock input t SU t H Flip-flop output t CO t s Setup time The time a control input must be maintained before the clock transition. t h Hold time The time a control input must be maintained after the clock transition. t PC Propagation delay from clock to output change The time a flip-flop changes after a clock edge is given

74x74 PET FF PR CLR Preset Clear Clock (next) 1 1 0 0 1 1 1 1 1 1 x 0 1 1 x 1 0 1 x x 1 1 0 x x 0 0 0 x x NA

74x76 Master Slave JK FF J K PR CLR Preset Clear J K Clock (next) 1 1 0 0 1 1 0 1 0 1 1 1 0 1 1 1 1 1 1 1 x x 0,1 0 1 x x x 1 1 0 x x x 0 0 0 x x x NA

SKEE 1223 https://www.openlearning.com/courses/skee1223x