Synchronous Sequential Logic. Chapter 5

Similar documents
Synchronous Sequential Logic

Synchronous Sequential Logic

Chapter 5: Synchronous Sequential Logic

Chapter 5 Synchronous Sequential Logic

Sequential Logic Circuits

Part II. Chapter2: Synchronous Sequential Logic

Digital Logic Design I

Synchronous Sequential Logic

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

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

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

Chapter 5 Synchronous Sequential Logic

Chapter. Synchronous Sequential Circuits

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

Chapter 8 Sequential Circuits

Combinational / Sequential Logic

MC9211 Computer Organization

2 Sequential Circuits

Unit 11. Latches and Flip-Flops

Chapter 5 Sequential Circuits

D Latch (Transparent Latch)

CHAPTER 4: Logic Circuits

CHAPTER 4: Logic Circuits

Synchronous Sequential Logic

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

Lecture 11: Synchronous Sequential Logic

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

ECE 25 Introduction to Digital Design. Chapter 5 Sequential Circuits ( ) Part 1 Storage Elements and Sequential Circuit Analysis

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.

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

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

CHAPTER1: Digital Logic Circuits

Chapter 5 Synchronous Sequential Logic


Chapter 5. Introduction

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Synchronous Sequential Logic

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

LAB #4 SEQUENTIAL LOGIC CIRCUIT

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

CS T34-DIGITAL SYSTEM DESIGN Y2/S3

RS flip-flop using NOR gate

Introduction to Sequential Circuits

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

ECE 341. Lecture # 2

Problems with D-Latch

Chapter 3 Unit Combinational

UNIT IV. Sequential circuit

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

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

RS flip-flop using NOR gate

Engr354: Digital Logic Circuits

Logic Design. Flip Flops, Registers and Counters

Analysis of Clocked Sequential Circuits

ELCT201: DIGITAL LOGIC DESIGN

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

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

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Lecture 8: Sequential Logic

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

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

Other Flip-Flops. Lecture 27 1

Combinational vs Sequential

Vignana Bharathi Institute of Technology UNIT 4 DLD

ELE2120 Digital Circuits and Systems. Tutorial Note 7

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

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

Advanced Digital Logic Design EECS 303

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

Course Administration

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

CPS311 Lecture: Sequential Circuits

Multiplexor (aka MUX) An example, yet VERY useful circuit!

Chapter 5 Sequential Circuits

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Logic Design II (17.342) Spring Lecture Outline

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

EE292: Fundamentals of ECE

Sequential Logic and Clocked Circuits

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Chapter 3. Boolean Algebra and Digital Logic

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

Sequential Circuits: Latches & Flip-Flops

Flip-Flops and Sequential Circuit Design

Dr.Mohamed Elmahdy Winter 2015 Eng.Yasmin Mohamed. Problem Set 6. Analysis and Design of Clocked Sequential Circuits. Discussion: 7/11/ /11/2015

Chapter 4. Logic Design

1. Convert the decimal number to binary, octal, and hexadecimal.

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

Introduction to Microprocessor & Digital Logic

Chapter 5 Sequential Circuits

Synchronous sequential circuits

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

MODULE 3. Combinational & Sequential logic

Using minterms, m-notation / decimal notation Sum = Cout = Using maxterms, M-notation Sum = Cout =

LATCHES & FLIP-FLOP. Chapter 7

Transcription:

Synchronous Sequential Logic Chapter 5

5-1 Introduction Combinational circuits contains no memory elements the outputs depends on the inputs Synchronous Sequential Logic 5-2

5-2 Sequential Circuits Sequential circuits a feedback path the state of the sequential circuit (inputs, current state) (outputs, next state) synchronous: the transition happens at discrete instants of time asynchronous: at any instant of time Synchronous Sequential Logic 5-3

Synchronous sequential circuits a master-clock generator to generate a periodic train of clock pulses the clock pulses are distributed throughout the system clocked sequential circuits most commonly used no instability problems the memory elements: flip-flops binary cells capable of storing one bit of information two outputs: one for the normal value and one for the complement value maintain a binary state indefinitely until directed by an input signal to switch states Synchronous Sequential Logic 5-4

Synchronous Sequential Logic 5-5

5-3 Latches Basic flip-flop circuit two NOR gates more complicated types can be built upon it directed-coupled RS flip-flop: the cross-coupled connection an asynchronous sequential circuit (S,R)= (0,0): no operation (S,R)=(0,1): reset (Q=0, the clear state) (S,R)=(1,0): set (Q=1, the set state) (S,R)=(1,1): indeterminate state (Q=Q'=0) consider (S,R) = (1,1) (0,0) Synchronous Sequential Logic 5-6

SR latch with NAND gates Synchronous Sequential Logic 5-7

SR latch with control input C=0, no change C=1, Synchronous Sequential Logic 5-8

D Latch (Transparent Latch) eliminate the undesirable conditions of the indeterminate state in the RS flip-flop D: data gated D-latch D Q when C=1; no change when C=0 Synchronous Sequential Logic 5-9

Graphic symbols Synchronous Sequential Logic 5-10

5-4 Flip-Flops A trigger The state of a latch or flip-flop is switched by a change of the control input Level triggered latches Edge triggered flip-flops Synchronous Sequential Logic 5-11

If level-triggered flip-flops are used the feedback path may cause instability problem Edge-triggered flip-flops the state transition happens only at the edge eliminate the multiple-transition problem Synchronous Sequential Logic 5-12

Edge-triggered D flip-flop Master-slave D flip-flop two separate flip-flops a master flip-flop (positive-level triggered) a slave flip-flop (negative-level triggered) Synchronous Sequential Logic 5-13

Edge-triggered flip-flops the state changes during a clock-pulse transition A D-type positive-edge-triggered flip-flop Synchronous Sequential Logic 5-14

three basic flip-flops (S,R) = (0,1): Q = 1 (S,R) = (1,0): Q = 0 (S,R) = (1,1): no operation (S,R) = (0,0): should be avoided Synchronous Sequential Logic 5-15

The setup time D input must be maintained at a constant value prior to the application of the positive CP pulse = the propagation delay through gates 4 and 1 data to the internal latches The hold time D input must not changes after the application of the positive CP pulse = the propagation delay of gate 3 clock to the internal latch Synchronous Sequential Logic 5-16

Summary CP=0: (S,R) = (1,1), no state change CP= : state change once CP=1: state holds eliminate the feedback problems in sequential circuits All flip-flops must make their transition at the same time Synchronous Sequential Logic 5-17

Graphic symbols The edge-triggered D flip-flops The most economical and efficient Positive-edge and negative-edge Synchronous Sequential Logic 5-18

Other Flip-Flops JK flip-flop D=JQ'+K'Q J=0, K=0: D=Q, no change J=0, K=1: D=0 Q =0 J=1, K=0: D=1 Q =1 J=1, K=1: D=Q' Q =Q' Synchronous Sequential Logic 5-19

T flip-flop D = T Q = TQ'+T'Q T=0: D=Q, no change T=1: D=Q' Q=Q' Synchronous Sequential Logic 5-20

Characteristic Tables Synchronous Sequential Logic 5-21

Characteristic Equations D flip-flop Q(t+1) = D JK flip-flop Q(t+1) = JQ'+K'Q T flop-flop Q(t+1) = T Q Synchronous Sequential Logic 5-22

Direct inputs asynchronous set and/or asynchronous reset Synchronous Sequential Logic 5-23

Synchronous Sequential Logic 5-24

5-5 Analysis of Clocked Sequential Ckts A sequential circuit (inputs, current state) (output, next state) a state transition table or state transition diagram Synchronous Sequential Logic 5-25

State equations A(t+1) = A(t)x(t) + B(t)x(t) B(t+1) = A'(t)x(t) A more compact form A(t+1) = Ax + Bx B(t+1) = Ax The output equation y(t) = (A(t)+B(t))x'(t) y = (A+B)x' Synchronous Sequential Logic 5-26

State table State transition table = state equations Synchronous Sequential Logic 5-27

State equation A(t + 1) =Ax + Bx B(t + 1) = A x y = Ax + Bx Synchronous Sequential Logic 5-28

State diagram State transition diagram a circle: a state a directed lines connecting the circles: the transition between the states Each directed line is labeled 'inputs/outputs a logic diagram a state table astate diagram Synchronous Sequential Logic 5-29

Flip-flop input equations The part of circuit that generates the inputs to flip-flops Also called excitation functions D Q = x + y D A = Ax +Bx D B = A'x The output equations to fully describe the sequential circuit y = (A+B)x' Synchronous Sequential Logic 5-30

Analysis with D flip-flops The input equation D A =A x y The state equation A(t+1)=A x y Synchronous Sequential Logic 5-31

Analysis with JK flip-flops Determine the flip-flop input function in terms of the present state and input variables Used the corresponding flip-flop characteristic table to determine the next state Synchronous Sequential Logic 5-32

J A = B, K A = Bx' J B = x', K B = A'x + Ax derive the state table Or, derive the state equations using characteristic eq. Synchronous Sequential Logic 5-33

State transition diagram A( t 1) JA K A B( t 1) JB K B State equation for A and B: A( t 1) BA ( Bx ) A A B AB Ax B( t 1) x B ( A x) B B x ABx A Bx Synchronous Sequential Logic 5-34

Analysis with T flip-flops The characteristic equation Q(t+1)= T Q = TQ'+T'Q Synchronous Sequential Logic 5-35

The input and output functions T A =Bx T B = x y = AB The state equations A(t+1) = (Bx)'A+(Bx)A' =AB'+Ax'+A'Bx B(t+1) = x B Synchronous Sequential Logic 5-36

State Table Synchronous Sequential Logic 5-37

Mealy and Moore models the Mealy model: the outputs are functions of both the present state and inputs (Fig. 5-15) the outputs may change if the inputs change during the clock pulse period the outputs may have momentary false values unless the inputs are synchronized with the clocks The Moore model: the outputs are functions of the present state only (Fig. 5-20) The outputs are synchronous with the clocks Synchronous Sequential Logic 5-38

Synchronous Sequential Logic 5-39

5-7 State Reduction and Assignment State Reduction reductions on the number of flip-flops and the number of gates a reduction in the number of states may result in a reduction in the number of flip-flops a example state diagram Synchronous Sequential Logic 5-40

only the input-output sequences are important two circuits are equivalent have identical outputs for all input sequences the number of states is not important Synchronous Sequential Logic 5-41

Equivalent states two states are said to be equivalent for each member of the set of inputs, they give exactly the same output and send the circuit to the same state or to an equivalent state one of them can be removed Synchronous Sequential Logic 5-42

Reducing the state table e=f d=? Synchronous Sequential Logic 5-43

the reduced finite state machine Synchronous Sequential Logic 5-44

the checking of each pair of states for possible equivalence can be done systematically the unused states are treated as don't-care condition fewer combinational gates Synchronous Sequential Logic 5-45

State assignment to minimize the cost of the combinational circuits three possible binary state assignments Synchronous Sequential Logic 5-46

any binary number assignment is satisfactory as long as each state is assigned a unique number use binary assignment 1 Synchronous Sequential Logic 5-47

5-8 Design Procedure the word description of the circuit behavior (a state diagram) state reduction if necessary assign binary values to the states obtain the binary-coded state table choose the type of flip-flops derive the simplified flip-flop input equations and output equations draw the logic diagram Synchronous Sequential Logic 5-48

Synthesis using D flip-flops An example state diagram and state table Synchronous Sequential Logic 5-49

The flip-flop input equations A(t+1) = D A (A,B,x) = (3,5,7) B(t+1) = D B (A,B,x) = (1,5,7) The output equation y(a,b,x) = (6,7) Logic minimization using the K map D A = Ax + Bx D B = Ax + B'x y = AB Synchronous Sequential Logic 5-50

Synchronous Sequential Logic 5-51

Sequence detector The logic diagram Synchronous Sequential Logic 5-52

Excitation tables A state diagram flip-flop input functions straightforward for D flip-flops we need excitation tables for JK and T flip-flops Synchronous Sequential Logic 5-53

Synthesis using JK flip-flops The same example The state table and JK flip-flop inputs Synchronous Sequential Logic 5-54

J A = Bx'; K A = Bx J B = x; K B = (A x) y =? Synchronous Sequential Logic 5-55

Synchronous Sequential Logic 5-56

Synthesis using T flip-flops A n-bit binary counter the state diagram no inputs (except for the clock input) Synchronous Sequential Logic 5-57

The state table and the flip-flop inputs Synchronous Sequential Logic 5-58

Synchronous Sequential Logic 5-59

Logic simplification using the K map T A2 = A 1 A 2 T A1 = A 0 T A0 = 1 The logic diagram Synchronous Sequential Logic 5-60