Flip-Flops and Sequential Circuit Design

Similar documents
Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Logic Design. Flip Flops, Registers and Counters

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

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

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

Other Flip-Flops. Lecture 27 1

Unit 11. Latches and Flip-Flops

ELCT201: DIGITAL LOGIC DESIGN

Chapter. Synchronous Sequential Circuits

Flip-Flops and Registers

Introduction to Sequential Circuits

LATCHES & FLIP-FLOP. Chapter 7

Engr354: Digital Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

EET2411 DIGITAL ELECTRONICS

CHAPTER 11 LATCHES AND FLIP-FLOPS

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

Vignana Bharathi Institute of Technology UNIT 4 DLD

MC9211 Computer Organization

Lecture 8: Sequential Logic

Registers and Counters

Chapter 4. Logic Design

CHAPTER 4: Logic Circuits

Experiment 8 Introduction to Latches and Flip-Flops and registers

Digital Circuits ECS 371

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

CHAPTER 6 COUNTERS & REGISTERS

RS flip-flop using NOR gate

RS flip-flop using NOR gate

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

EKT 121/4 ELEKTRONIK DIGIT 1

Counters

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

Switching Circuits & Logic Design

Module -5 Sequential Logic Design

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

Sequential Design Basics

Introduction to Microprocessor & Digital Logic

CHAPTER 4: Logic Circuits

Flip-flop and Registers

Rangkaian Sekuensial. Flip-flop

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

Asynchronous (Ripple) Counters

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

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

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

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

Registers and Counters

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Chapter 2. Digital Circuits

EE292: Fundamentals of ECE

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

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

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

CHAPTER1: Digital Logic Circuits

ECE 301 Digital Electronics

Counter dan Register

Digital Circuit And Logic Design I. Lecture 8

IT T35 Digital system desigm y - ii /s - iii

Digital Circuit And Logic Design I

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

Digital Fundamentals: A Systems Approach

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

UNIVERSITI TEKNOLOGI MALAYSIA

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

UNIT IV. Sequential circuit

Chapter 5 Sequential Circuits

CPS311 Lecture: Sequential Circuits

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

ECE 341. Lecture # 2

Serial In/Serial Left/Serial Out Operation

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

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

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

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

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

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

SEMESTER ONE EXAMINATIONS 2002

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

D Latch (Transparent Latch)

Chapter 5 Synchronous Sequential Logic

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

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.

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

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

CMSC 313 Preview Slides

UNIT 11 LATCHES AND FLIP-FLOPS

Digital Logic Design ENEE x. Lecture 19

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

ELE2120 Digital Circuits and Systems. Tutorial Note 7

CHAPTER 1 LATCHES & FLIP-FLOPS

Digital Logic Design I

Lecture 11: Synchronous Sequential Logic

Sequential Logic and Clocked Circuits

Sequential Logic Basics

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

B.Tech CSE Sem. 3 15CS202 DIGITAL SYSTEM DESIGN (Regulations 2015) UNIT -IV

Chapter 8 Sequential Circuits

Transcription:

Flip-Flops and Sequential Circuit Design ECE 52 Summer 29 Reading ssignment Brown and Vranesic 7 Flip-Flops, Registers, Counters and a Simple Processor 7.5 T Flip-Flop 7.5. Configurable Flip-Flops 7.6 JK Flip-Flop 7.7 Summary of Terminology 7.8 Registers 7.8. Shift Register 7.8.2 Parallel-ccess Shift Register July 27, 29 ECE 52 - Digital Design Principles 2

Reading ssignment Brown and Vranesic (cont) 7 Flip-Flops, Registers, Counters and a Simple Processor (cont) 7.9 Counters 7.9. synchronous Counters 7.9.2 Synchronous Counters 7.9.3 Counters with Parallel Load 7. Reset Synchronization July 27, 29 ECE 52 - Digital Design Principles 3 Reading ssignment Brown and Vranesic (cont) 7 Flip-Flops, Registers, Counters and a Simple Processor (cont) 7. Other Types of Counters 7.. D Counter 7..2 Ring Counter 7..3 Johnson Counter 7..4 Remarks on Counter Design July 27, 29 ECE 52 - Digital Design Principles 4 2

Reading ssignment Brown and Vranesic (cont) 8 Synchronous Sequential Circuits 8. Basic Design Steps 8.. State Diagram 8..2 State Table 8..3 State ssignment 8..4 Choice of Flip-Flops and Derivation of Next-State and Output Expressions 8..5 Timing Diagram 8..6 Summary of Design Steps July 27, 29 ECE 52 - Digital Design Principles 5 Reading ssignment Brown and Vranesic (cont) 8 Synchronous Sequential Circuits (cont) 8.2 State-ssignment Problem One-Hot Encoding 8.7 Design of a Counter Using the Sequential Circuit pproach 8.7. State Diagram and State Table for Modulo-8 Counter 8.7.2 State ssignment 8.7.3 Implementation Using D-Type Flip-Flops 8.7.4 Implementation Using JK-Type Flip-Flops 8.7.5 Example Different Counter July 27, 29 ECE 52 - Digital Design Principles 6 3

Reading ssignment Roth Latches and Flip-Flops.5 S-R Flip-Flop.6 J-K Flip-Flop.7 T Flip-Flop.8 Flip-Flops with dditional Inputs.9 Summary 2 Registers and Counters 2.5 Counter Design Using S-R and J-K Flip-Flops 2.6 Derivation of Flip-Flop Input Equations Summary July 27, 29 ECE 52 - Digital Design Principles 7 The JK Flip-Flop llows J = K = condition Implemented with a gated SR latch and feedback of Q and Q* Q toggles (Q + = Q ) on J = K = July 27, 29 ECE 52 - Digital Design Principles 8 4

The JK Flip-Flop (cont) Characteristic table and equation Karnaugh map of characteristic table Characteristic equation Q + = JQ + K Q July 27, 29 ECE 52 - Digital Design Principles 9 The JK Flip-Flop (cont) Implementation using a D flip-flop Characteristic Function at D input July 27, 29 ECE 52 - Digital Design Principles 5

The JK Flip-Flop State table NS (Q + ) PS (Q) JK = July 27, 29 ECE 52 - Digital Design Principles The JK Flip-Flop State diagram JK = JK = JK = JK = July 27, 29 ECE 52 - Digital Design Principles 2 6

The JK Flip-Flop With clock circuitry and timing Positive edge triggered JK flip-flop July 27, 29 ECE 52 - Digital Design Principles 3 The Master Slave JK Flip-Flop Master Slave JK Flip-Flop Rising edge triggered note CLK inverted to master July 27, 29 ECE 52 - Digital Design Principles 4 7

The Master Slave JK Flip-Flop Master Slave JK Flip-Flop Falling edge triggered note CLK (CP) inverted to slave July 27, 29 ECE 52 - Digital Design Principles 5 The Master Slave JK Flip-Flop Master active on CLK = Slave active on CLK = Latch data in master on CLK = Transfer data to slave (output) on CLK = Timing Diagram Initial Conditions CLK =, J =, K =, Y =, Q = July 27, 29 ECE 52 - Digital Design Principles 6 8

The Master Slave JK Flip-Flop Timing Diagram July 27, 29 ECE 52 - Digital Design Principles 7 The JK Flip-Flop (cont) What happens if J = K = for an indefinite period of time (i.e., much greater than clock period)? Output oscillates at ½ the frequency of the clock Divide by two counter July 27, 29 ECE 52 - Digital Design Principles 8 9

The T (Toggle or Trigger) Flip-Flop Connect J and K inputs together Combined input T Characteristic Table Characteristic Equation Timing Diagram July 27, 29 ECE 52 - Digital Design Principles 9 The T Flip-Flop State Table NS (Q + ) PS (Q) T = T= July 27, 29 ECE 52 - Digital Design Principles 2

The T Flip-Flop State Diagram T = T = T = T = July 27, 29 ECE 52 - Digital Design Principles 2 The T Flip-Flop (from JK/D) Q + = JQ + K Q Q + = T Q + TQ = T OR Q July 27, 29 ECE 52 - Digital Design Principles 22

Counter Design with T Flip-Flops 3 bit binary counter design example State refers to Q s of flip-flops 3 bits, 8 states Decimal through 7 No inputs Transition on every clock edge i.e., state changes on every clock edge ssume clocked, synchronous flip-flops July 27, 29 ECE 52 - Digital Design Principles 23 Counter Design with T Flip-Flops State Diagram July 27, 29 ECE 52 - Digital Design Principles 24 2

Counter Design with T Flip-Flops State table PS B C + NS B + C + July 27, 29 ECE 52 - Digital Design Principles 25 Counter Design with T Flip-Flops Next State Maps + = B + C + = D B + = B C + = D B C + = C = D C July 27, 29 ECE 52 - Digital Design Principles 26 3

Counter Design with T Flip-Flops Using D flip-flops, inputs are derived directly from next state maps D = Q + Using T flip flops Excitation table (used for design) T = Q OR Q + Need to find inputs to T flip-flops Mapping state changes Q Q+ requires T =? July 27, 29 ECE 52 - Digital Design Principles 27 Counter Design with T Flip-Flops T Flip-Flop Excitation Table T = Q OR Q + Q Q + T July 27, 29 ECE 52 - Digital Design Principles 28 4

Counter Design with T Flip-Flops State Variable T = + (OR) = + = T= = + = + = + = T= + = B + C + = D T = July 27, 29 ECE 52 - Digital Design Principles 29 Counter Design with T Flip-Flops State Variable B T B = B + (OR) B B= B= B + = B + = T= T= B + = B + = T= T= B + = B C + = D B T B = C July 27, 29 ECE 52 - Digital Design Principles 3 5

Counter Design with T Flip-Flops State Variable C T C = C + (OR) C C= C= C= C + = C + = T= T= T= T= C + = C + = T= T= T= T= C + = C = D C T C = July 27, 29 ECE 52 - Digital Design Principles 3 Counter Design with T Flip-Flops Implement design using T Flip-Flops with asynchronous preset and clear synchronous preset (PRN) and clear (CLRN) override clock and other inputs Preset : Q, Clear : Q Used to initialize system (all flip-flops) to known state Bubbles indicate low true or active low T =, TB = C, TC = July 27, 29 ECE 52 - Digital Design Principles 32 6

Counter Design with T Flip-Flops Schematic July 27, 29 ECE 52 - Digital Design Principles 33 Counter Design with T Flip-Flops Timing Diagram Q toggles when B = C = QB toggles when C = QC toggles on every clock edge July 27, 29 ECE 52 - Digital Design Principles 34 7

Counter Design with JK Flip-Flops State Diagram July 27, 29 ECE 52 - Digital Design Principles 35 Counter Design with JK Flip-Flops State Table PS B C + NS B + C + July 27, 29 ECE 52 - Digital Design Principles 36 8

Counter Design with JK Flip-Flops Next State Maps + = B = D B + = + = D B C + = B + = D C July 27, 29 ECE 52 - Digital Design Principles 37 Counter Design with JK Flip-Flops JK Flip-Flop Excitation Table Recall JK state diagram Create excitation table from state diagram Q + = JQ + K Q Q Q + JK = J JK = JK = K JK = July 27, 29 ECE 52 - Digital Design Principles 38 9

Counter Design with JK Flip-Flops State Variable + = B = + = + = = + = + = + = J = B K = B July 27, 29 ECE 52 - Digital Design Principles 39 Counter Design with JK Flip-Flops State Variable B B + = + B= B= J B = B + = B + = B + = B + = B + = B + = K B = C July 27, 29 ECE 52 - Digital Design Principles 4 2

Counter Design with JK Flip-Flops State Variable C C + = B + C= C= C= J C = + B C + = C + = C + = C + = C + = K C = July 27, 29 ECE 52 - Digital Design Principles 4 2