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

Similar documents
Chapter 5: Synchronous Sequential Logic

Chapter 5 Synchronous Sequential Logic

Synchronous Sequential Logic

Chapter 5 Synchronous Sequential Logic

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Sequential Logic Circuits

Part II. Chapter2: Synchronous Sequential Logic

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

Synchronous Sequential Logic. Chapter 5

CHAPTER1: Digital Logic Circuits

D Latch (Transparent Latch)

CHAPTER 4: Logic Circuits

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

CHAPTER 4: Logic Circuits

Synchronous Sequential Logic

Synchronous Sequential Logic

Unit 11. Latches and Flip-Flops

Chapter. Synchronous Sequential Circuits

Combinational / Sequential Logic

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.

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

Synchronous Sequential Logic

Synchronous Sequential Logic

MC9211 Computer Organization

ELCT201: DIGITAL LOGIC DESIGN

Digital Logic Design I

Chapter 8 Sequential Circuits

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

Lecture 11: Synchronous Sequential Logic

Logic Design. Flip Flops, Registers and Counters

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

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

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

Combinational vs Sequential

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

UNIT IV. Sequential circuit

Introduction to Sequential Circuits

Chapter 5. Introduction

Chapter 5 Sequential Circuits

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

ELCT201: DIGITAL LOGIC DESIGN

Other Flip-Flops. Lecture 27 1

2 Sequential Circuits

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

ELCT201: DIGITAL LOGIC DESIGN

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

CS T34-DIGITAL SYSTEM DESIGN Y2/S3

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

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

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

Lecture 8: Sequential Logic

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

The reduction in the number of flip-flops in a sequential circuit is referred to as the state-reduction problem.

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

ECE 341. Lecture # 2

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

Sequential Circuits: Latches & Flip-Flops

Introduction to Microprocessor & Digital Logic

Chapter 3 Unit Combinational

RS flip-flop using NOR gate

CS8803: Advanced Digital Design for Embedded Hardware

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

Advanced Digital Logic Design EECS 303

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

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

Vignana Bharathi Institute of Technology UNIT 4 DLD

Chapter 5 Sequential Circuits

6. Sequential Logic Flip-Flops

CHAPTER 1 LATCHES & FLIP-FLOPS

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

Engr354: Digital Logic Circuits

LAB #4 SEQUENTIAL LOGIC CIRCUIT

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

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

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

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I


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

Analysis of Clocked Sequential Circuits

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

EE292: Fundamentals of ECE

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

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

Course Administration

Asynchronous (Ripple) Counters

Problems with D-Latch

LATCHES & FLIP-FLOP. Chapter 7

Chapter 5 Sequential Circuits

Chapter 3. Boolean Algebra and Digital Logic

Chapter 5 Synchronous Sequential Logic

RS flip-flop using NOR gate

Software Engineering 2DA4. Slides 9: Asynchronous Sequential Circuits

Registers and Counters

WEEK 10. Sequential Circuits: Analysis and Design. Page 1

Logic Design II (17.342) Spring Lecture Outline

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

Digital Logic Design ENEE x. Lecture 19

Transcription:

Chapter 5. Synchronous Sequential Logic 1

5.1 Introduction Electronic products: ability to send, receive, store, retrieve, and process information in binary format Dependence on past values of inputs Sequential circuit act as storage elements and have memory FIGURE 5.1 Block diagram of sequential circuit 2

5.2 Sequential Circuits Output: a function of inputs and the present state of the storage elements Next state of the storage elements: a function of external inputs and the present state A sequential circuit is specified by a time sequence of inputs, outputs, and internal states vs. Combinational circuit depends on the present values of the inputs Classification (timing of signals) Asynchronous sequential circuit: at any instant of time and order Time-delay devices Internal propagation delay of logic gate Combinational circuit with feedback Unstable at times Synchronous sequential circuit= clocked sequential circuit: at discrete instants of time 3

Synchronous Sequential Circuit Signals affect the storage elements at only discrete instants of time Synchronization (by a timing device = clock generator, periodic train of clock pulses: Clock, Clk) Flip-flop Storage elements used in clocked sequential circuits Capable of storing one bit of information FIGURE 5.2 Synchronous clocked sequential circuit 4 Considering propagation delay Occurring transition only at predetermined intervals dictated by the clock pulses

5.3 Storage elements: Latches Maintain a binary state indefinitely until directed by an input signal to switch states Various types of storage elements: number of inputs, manner affecting the binary state Level sensitive devices: Latch (operate with signal levels) For asynchronous sequential circuits Edge-sensitive devices: Flip-flops (controlled by a clock transition) For synchronous sequential circuits 5

SR Latch A circuit with two cross-coupled NOR gates or two cross-coupled NAND gates Two inputs: S for set and R for reset 00 : remain, latch 11 : unpredictable / undefined state / metastable state FIGURE 5.3 SR latch with NOR gates 6

S R Latch FIGURE 5.4 SR latch with NAND gates FIGURE 5.5 SR latch with control input 7

D Latch (Transparent Latch) To eliminate the undesirable condition of the indeterminate state in SR latch FIGURE 5.6 D latch FIGURE 5.7 Graphic symbols for latches 8

5.4 Storage Elements: Flip-Flops Switched the state of a latch or flip-flop by a change in the control input Momentary change = trigger the flip-flop Employ a common clock Trigger it only during a signal transition Positive edge / negative edge Flip-flop Employ two latches Trigger only during a signal transition of the synchronizing signal FIGURE 5.8 Clock response in latch and flip-flop 9

Edge-Triggered D Flip-Flop Two D latches and an inverter Sampling D input and changing its output at the negative edge of the synchronizing or controlling clock Output value stored in the master stage immediately before the negative edge occurred (1) the output may change only once (2) a change in the output is triggered by the negative edge of the clock (3) the change may occur only during the clock s negative level FIGURE 5.9 Master slave D flip-flop 10

Edge-Triggered D Flip-flop Used three SR latches When Clk=0, S=R=1 (no change) When Clk changes from 0 to 1, If D=0, R=0 (Reset state) If D=1, S=0 (Set state) T2 FIGURE 5.10 D-type positive-edge-triggered flip-flop Clk 0 1 0 1 D X 0 1 X 1 0 T1 1 1 0 1 T2 0 0 1 1 S 1 1 1 1 0 0 R 1 0 0 1 1 1 Q 0 0 1 1 T1 11

Setup time: minimum time of D input maintained at a constant value prior to the occurrence of the clock transition Hold time: minimum time of D input maintained at a constant value after the clock transition Propagation delay time: interval between the trigger edge and the stabilization of the output to a new state Dynamic indicator(>) Edge-triggered D flip-flop: the most economical and efficient FIGURE 5.11 Graphic symbol for edge-triggered D flip-flop 12

JK Flip-Flop Operations Set as 1 (J=1, K=0) Reset as 0 (J=0, K=1) Complement its output (J=K=1) Unchanged (J=K=0) Q(t+1)=JQ +K Q 13 FIGURE 5.12 JK flip-flop

T Flip-Flop D=TQ +T Q FIGURE 5.13 T flip-flop Q(t+1)=D Q(t+1)=TQ +T Q 14

Characteristic Tables / Equations Characteristic table Logical properties of a flip-flop by describing its operation in tabular form A function of the inputs and the present state Characteristic equation Express algebraically D F/F: Q(t+1)=D JK F/F: Q(t+1)=JQ +K Q T F/F: Q(t+1)=TQ +T Q Direct Inputs Asynchronous inputs to force the flip-flop to a particular state independently of the clock Preset/Direct set: set F/F as 1 Clear/Direct reset: clear F/F as 0 Set all flip-flops in the system to a known starting state prior to the clocked operation 15

FIGURE 5.14 D flip-flop with asynchronous reset 1 1 16

5.5 Analysis of Clocked Sequential Circuits Analysis: behavior of a given circuit under certain operating conditions Clocked sequential circuit including flip-flops is determined from the inputs, the outputs, and the internal state of its F/F Representation Algebraic representation State table State diagram Time sequence of inputs, outputs, and internal states 17

State Equations (Transition Equation) The next state as a function of the present state and inputs D F/F: Q(t+1)=D A(t+1)=A(t)x(t)+B(t)x(t) B(t+1)=A (t)x(t) y(t)=[a(t)+b(t)]x (t) Zero-detector FIGURE 5.15 Example of sequential circuit 18

State Table Enumerate time sequence of inputs, outputs, and internal F/F states in a state table (a transition table) A(t+1)=Ax+Bx B(t+1)=A x y=ax +Bx m flip-flops n inputs 2^(m+n) rows in the state table Next states: m columns for each 19

State Diagram State: circle Transitions between states (directed lines) State of F/F (binary number in the circle) Input/output Circuit diagram Equations State table State diagram 0/0 1/0 0/1 00 10 0/1 1/0 0/1 1/0 20 01 11 1/0

Flip-Flop Input Equations 21

Analysis with D-F/F State equation = input equation FIGURE 5.17 with D flip-flop Sequential circuit 22

1.Determine the flip-flop input equations in terms of the present state and input variables 2.List the binary values of each input equation 3.Use the corresponding flip-flop characteristic table to determine the next state values in the state table FIGURE 5.18 Sequential circuit with JK flip-flop 23

24

Input equation 1. Determine the flip-flop input equations in terms of the present state and input variables 2. Substitute the input equations into the flip-flop characteristic equation to obtain the state equations 3. Use the corresponding state equation to determine the next state values in the state table Q(t+1)=JQ +K Q Characteristic equation State equation FIGURE 5.19 of Fig. 5.18 State diagram of the circuit 25

26

Analysis with T F/F Characteristic equation Output equation State equation Input equation FIGURE 5.20 Sequential circuit with T flip-flops (Binary Counter) 27

Mealy and Moore Models of FSM Moore model: outputs are synchronized with clock Mealy model: value presented immediately before the active edge of the clock FIGURE 5.21 Block diagrams of Mealy and Moore state machines 28

5.7 State Reduction and Assignment Analysis: a circuit diagram state table or diagram Design(synthesis): a set of specifications logic diagram Simplify a design by reducing the number of gates and F/Fs State reduction To find ways of reducing the number of states in a sequential circuit without altering the input-output relationships Important only input-output sequences State a a b c d e f f g f g a Input 0 1 0 1 0 1 1 0 1 0 0 output 0 0 0 0 0 1 1 0 1 0 0 29

State Reduction Two states are said to be equivalent if, for each member of the set of inputs, they give exactly the same output and send the circuit either to the same state or to an equivalent state 30

State a a b c d e f f g f g a Input 0 1 0 1 0 1 1 0 1 0 0 output 0 0 0 0 0 1 1 0 1 0 0 31

State Assignment Transition table 32

5.8 Design Procedure Manal design method using D, JK, and T F/F Start from a set of specifications and culminate in a logic diagram (or list of Boolean functions) 1 st step: obtain a state table or a state diagram Synchronous sequential circuit = F/F + combinational gates 1. From the word description and specifications of the desired operation, derive a state diagram for the circuit 2. Reduce the number of states if necessary 3. Assign binary values to the states 4. Obtain the binary-coded state table 5. Choose the type of flip-flops to be used 6. Derive the simplified flip-flop input equations and output equations 7. Draw the logic diagram Steps 4~7: well-defined procedure=synthesis 33

Example: How obtained a state diagram Detect a sequence of three or more consecutive 1 s in a string of bits coming through an input line FIGURE 5.27 State diagram for sequence detector 34

Synthesis using D F/F Need to assign binary codes to the states and list the state table Choose two D F/F to represent the four states 35

FIGURE 5.29 Logic diagram of a Moore-type sequence detector 36

Excitation Tables Necessary to derive a functional relationship between the state table and the input equations (JK and T F/F) Excitation table: list the required inputs for a given change of state 37

Synthesis using JK F/F Input equations derived from the excitation table FIGURE 5.30 Maps for J and K input equations 38

FIGURE 5.31 Logic diagram for sequential circuit with JK flip-flops 39

Synthesis using T F/F Binary counter (0 to 2 n -1) 40

FIGURE 5.34 Logic diagram of three-bit binary counter 41