Chapter 15 SEQUENTIAL CIRCUITS ANALYSIS, STATE- MINIMIZATION, ASSIGNMENT AND CIRCUIT IMPLEMENTATION

Similar documents
Chapter 14 Sequential logic, Latches and Flip-Flops

Lecture 10: Synchronous Sequential Circuits Design

Clocked Synchronous State-machine Analysis

ELE2120 Digital Circuits and Systems. Tutorial Note 9

Digital Circuits and Systems

6 Synchronous State Machine Design

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

Finite State Machine. By : Ali Mustafa

The Design Procedure. Output Equation Determination - Derive output equations from the state table

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

Synchronous Sequential Circuit Design. Digital Computer Design

Sequential Circuit Analysis

Logical design of digital systems

Lecture 8: Sequential Networks and Finite State Machines

Chapter 5 Synchronous Sequential Logic

Sequential Synchronous Circuit Analysis

Synchronous Sequential Logic

Chapter 4 Part 2 Sequential Circuits

Problem Set 9 Solutions

Finite State Machine (FSM)

ECE380 Digital Logic. Synchronous sequential circuits

EEE2135 Digital Logic Design

FSM model for sequential circuits

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Sequential logic and design

CprE 281: Digital Logic

Synchronous Sequential Logic Part I. BME208 Logic Circuits Yalçın İŞLER

Different encodings generate different circuits

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

or 0101 Machine

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

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

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Chapter 5. Karnaugh Map and Minimization Procedures

Fundamentals of Digital Design

Lecture (08) Synchronous Sequential Logic

ELE2120 Digital Circuits and Systems. Tutorial Note 10

Synchronous Sequential Logic Part I

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

Synchronous Sequential Circuit

Chapter 18 FUNDAMENTAL MODE SEQUENTIAL CIRCUITS

EECS Components and Design Techniques for Digital Systems. FSMs 9/11/2007

Analysis of Clocked Sequential Circuits

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Digital Logic Design. Midterm #2

Lecture 17: Designing Sequential Systems Using Flip Flops

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Total time is: 1 setup, 2 AND, 3 XOR, 1 delay = (1*1) + (2*2) + (3*3) + (1*1) = 15ns

CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008

Week-5. Sequential Circuit Design. Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.

Chapter 6 Introduction to state machines

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Sequential Circuit Design

Digital Design 2010 DE2 1

Sequential Circuits Sequential circuits combinational circuits state gate delay

Parity Checker Example. EECS150 - Digital Design Lecture 9 - Finite State Machines 1. Formal Design Process. Formal Design Process

Analysis and Design of Sequential Circuits: Examples

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Digital Logic Design - Chapter 5

Sequential Logic Circuits

Final Exam. ECE 25, Spring 2008 Thursday, June 12, Problem Points Score Total 90

Chapter 9 Asynchronous Sequential Logic

Chapter 7 Sequential Logic

CSE 140: Components and Design Techniques for Digital Systems. Lecture 9: Sequential Networks: Implementation

14:332:231 DIGITAL LOGIC DESIGN

Review for Final Exam

FSM Optimization. Counter Logic Diagram Q1 Q2 Q3. Counter Implementation using RS FF 10/13/2015

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Department of Electrical and Computer Engineering University of Wisconsin Madison. Fall Midterm Examination CLOSED BOOK

Lecture 3 Review on Digital Logic (Part 2)

Synchronous Sequential Logic. Chapter 5

Chapter 7. Synchronous Sequential Networks. Excitation for

Synchronous Sequential Circuit Design

Chapter 4. Sequential Logic Circuits

(Boolean Algebra, combinational circuits) (Binary Codes and -arithmetics)

ASYNCHRONOUS SEQUENTIAL CIRCUITS

Digital Logic Design - Chapter 4

P2 (10 points): Given the circuit below, answer the following questions:

14.1. Unit 14. State Machine Design

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

Menu. Master-Slave Flip-Flop

CPE100: Digital Logic Design I

Mealy & Moore Machines

CSE140: Digital Logic Design Registers and Counters

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

University of Minnesota Department of Electrical and Computer Engineering

Synchronous Sequential Circuit Design. Dr. Ehab A. H. AL-Hialy Page 1

Clocked Sequential Circuits UNIT 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS. Analysis of Clocked Sequential Circuits. Signal Tracing and Timing Charts

FYSE420 DIGITAL ELECTRONICS

DE58/DC58 LOGIC DESIGN DEC 2014

ELCT201: DIGITAL LOGIC DESIGN

Let s now begin to formalize our analysis of sequential machines Powerful methods for designing machines for System control Pattern recognition Etc.

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

ELCT201: DIGITAL LOGIC DESIGN

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

The Karnaugh Map COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Transcription:

Chapter 15 SEQUENTIAL CIRCUITS ANALYSIS, STATE- MINIMIZATION, ASSIGNMENT AND CIRCUIT IMPLEMENTATION

Lesson 2 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUIT Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 2

Outline Procedure Excitation table Transition table State table State Diagram Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 3

Analysis Procedure Clocked Sequential circuit 1. Draw logic circuit diagram 2. Perform state variable assignments and excitation variable(means FF inputs) assignments 3. Find the expressions for excitations from flip-flop characteristic equations as per the excitations variables and make an excitation table. [Find Q = F Q (X, Q) and Y.] Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 4

Analysis Procedure 4. Make transition table from the expressions for Y = F (X, Q) in case o of Mealy model and Y = F (X) in o case of Moore model. 5. Perform state minimization and make minimal state table. 6. Draw the state diagram. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 5

Outline Procedure Excitation table Transition table State table State Diagram Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 6

Excitation table Tabular representation of X and Q at the FFs and of Y as per F Q for the combination circuit at the output stages. Gives present states and the inputs given at the memory section. Gives the memory-section outputs that follow the excitations Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 7

Excitation Table for Y = X. Q2 +Q1; Q1 =D and Q2 = Q n+1 = J. Q n + K. Q n State Excitation Inputs Y (Q 1,Q 2) [D, (J, K)] X=0 [D, (J, K)] X=1 X=0 X =1 (0, 0) 0, (0, 0) 1, (0,1) 0 0 (0, 1) 0, (0, 0) 1, (0,1) 1 0 (1, 0) 0, (1, 0) 1, (1,1) 1 1 (1, 1) 0, (1, 0) 1, (1,1) 1 1 Y is present output state after the X inputs but before transition Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 8

Excitation Table Rows Number of rows in each column equals 2 m where m is the number of flip-flops because each flip-flop has one Q output and m flipflops will have 2 m different combinations of the states at the Qs. For example, if (Q1, Q2) are the Qs of two FFs, then (Q1, Q2) = (0, 0), (0, 1), (1, 0) and (1, 1) are the four combinations possible for the four different states of the memory section present outputs Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 9

Excitation Table Columns First column present state (Q1, Q2) in its each row The number of columns for the excitation inputs Q equals the number of possible combinations of external inputs in the set X. It equals 2 i if there are i distinct literal to represent the inputs when there are i inputs X 0, X 1, X i 1. If i = 1, then columns 2 and 3 will be for X = 0 and X =1, as there are two possible values of X. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 10

Excitation Inputs For each set of inputs, there is a set of excitation inputs to the memory section, for example, corresponding to each set of external inputs, there will be four sets of inputs to (D1, D2) in case of two D-FFs at the memory section Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 11

Mealy Model Excitation Inputs If (X1, X2) are the external input to the memory section then (X1, X2) = (0, 0), (0, 1), (1, 0) and (1, 1) are the four combinations possible for the four different states of the memory section present outputs, which are also inputs for excitation on next clock instance. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 12

Moore Model Excitation Inputs The number of column = 1 for a set of Q inputs Q as in Moore model Q depends on Qs only. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 13

Output Y in Mealy Model Excitation Table The number of columns for the output Y also equals the number of possible 2 i combinations of external inputs in the set X. Suppose output stage has two outputs, Y1 and Y2. Then there will be 4 columns for the four sets of the external inputs and each column having entries for values of (Y1, Y2) Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 14

Moore Model Excitation Table The number of column = 1 for the output Y as in Moore model Y depends on Qs only. The column entries for values of (Y1, Y2) as per the combinational circuit between the memory section output Qs and Ys Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 15

Outline Procedure Excitation table Transition table State table State Diagram Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 16

Transition table A tabular representation of F and F. Q o It shows how the sequential circuit FF will respond to all the present inputs Xs and Qs and will generate Ys from the Q s. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 17

Transition Table for Y = X. Q2 +Q1; Q1 =D and Q2 = Q n+1 = J. Q n + K. Q n State Transition Outputs Y (Q 1,Q 2) [Q1,Q2 ] X=0 [Q1,Q2 ] X=1 X=0 X =1 (0, 0) 0, 0 1, 0 0 0 (0, 1) 0, 1 1, 0 1 0 (1, 0) 0, 1 1, 1 1 1 (1, 1) 0, 1 0, 0 1 1 Y is present output state after the X inputs but before transition Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 18

Transition Table Rows Number of rows in each column equals 2 m where m is the number of flip-flops because each flip-flop has one Q output and m flipflops will have 2 m different combinations of the states at the Qs. For example, if (Q1, Q2) are the Qs of two FFs, then (Q1, Q2) = (0, 0), (0, 1), (1, 0) and (1, 1) are the four combinations possible for the four different states of the memory section present outputs Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 19

Transition Table Columns First column present state (Q1, Q2) in its each row The number of columns for the transition outputs Q equals the number of possible combinations of external inputs in the set X. It equals 2 i if there are i distinct literal to represent the inputs when there are i inputs X 0, X 1, X i 1. If i = 1, then columns 2 and 3 will be for X = 0 and X =1, as there are two possible values of X. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 20

Transition Outputs For each set of FF-inputs, there is a set of transition outputs of the memory section, for example, corresponding to each set of external inputs, there will be two sets of outputs to (Q1, Q2) in case of two FFs (one D and one J-K) at memory section Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 21

Y Outputs If (X1, X2) are the external input to the memory section then (X1, X2) = (0, 0), (0, 1), (1, 0) and (1, 1) are the four combinations possible for the four different states of the memory section present outputs Y. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 22

Moore and Mealy Model Transition tables Moore Model The number of column = 1 each for the transition output set Q and output Y, as in Moore model Y depends on Qs only. Mealy Model The column entries for values of (Y1, Y2) and set of Q s will be 2 each when there is only one external input Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 23

Outline Procedure Excitation table Transition table State table State Diagram Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 24

State Table State table can made easily A set of present Q0, Q1,.. denotes a state Each set assigned a state-name S i as follows: (Q1, Q2) = (0,0) S 0 (Q1, Q2) = (0,1) S 1 (Q1, Q2) = (0,0) S 2 (Q1, Q2) = (0,0) S 3 Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 25

State table 1. Tabular representation of Q, Q at given Y in terms of S0, S1, S2,...states assigned to the sets of the Qs at FFs 2. Gives in terms of S0, S1, S2,...the memory-section outputs that follow the state transitions after excitation inputs Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 26

State Table for Y = X. Q2 +Q1; Q1 =D and Q2 = Q n+1 = J. Q n + K. Q n State Next State Outputs Y (Q 1,Q 2) [Q1, Q2] X=0 [Q1, Q2] X=1 X=0 X =1 S 0 S 0 S 2 0 0 S 1 S 1 S 2 1 0 S 2 S 1 S 3 1 1 S 3 S 1 S 0 1 1 Y is present output state after the X inputs but before transition Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 27

Number of maximum possible states There are z (=2 m ) maximum possible states S 0, S 1,, S in a sequential m 1 circuit with m-ffs Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 28

State Table Rows Number of row in state table = z, one row for each state For m = 2, rows are for S0, S1, S2 and S3, each corresponding to a state of the circuit. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 29

State Table Columns First column S0, S1, S2 and S3 for four rows The number of columns for State-outputs equals the number of possible combinations of external inputs in the set X. It equals 2 i if there are i distinct literal to represent the inputs when there are i inputs X 0, X 1, X i 1. If i = 1, then columns 2 and 3 will be for X = 0 and X =1, as there are two possible values of X. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 30

Number of Y Output columns Same as number of columns for next state before Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 31

State minimization from state table We shall learn it in next lesson Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 32

Outline Procedure Excitation table Transition table State table State Diagram Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 33

State Diagram A set of present Q0, Q1,.. is denoted by a state. A state diagram is a diagrammatic representation of state table to show the transitions from present state to next state. A state diagram is drawn after state minimization at the state table Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 34

Number of Nodes A circle shows a node The number of nodes = number of rows in the state table. For two flip-flops, there are four states S1, S2, S3 and S4. So four circles are drawn for the four nodes Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 35

Directed Arc A directed arc from the present state node to the next state node shows a transition Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 36

Directed arcs to next state A small diameter directed circular arc, which starts from node and ends at the same node represents a transition in which the state remains unchanged [S i remains S i ] The number of directed circular arcs equals the number of transitions in which the state does not change Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 37

Directed arcs to next state A small diameter directed arc, which starts from node and ends at another node represents a transition in which the state changed [S i becomes S j ] The number of directed arcs to another node equals the number of transitions in which the state changes Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 38

Mealy Model state diagram Each state S 0 or S 1,... is labeled as S 0 or S 1 at the center of circle, which is representing the node Each arc or circular arc is labeled as X/Y [present input X and output Y]. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 39

Mealy Model state diagram Each arc or circular arc can have more then one set of (pre-transition input/ output) labeled on it if there are more than one sets of pre-transition input/ output that are having the same transition from one node to another. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 40

Moore Model state diagram Each state S 0 or S 1,... is labeled as S 0 or S 1 at the center of circle, which is representing the node Each arc or circular arc is labeled by present input from Qs. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 41

Moore Model state diagram Each arc or circular arc has one set of (pre-transition input) labeled on it if there are more than one sets of (pretransition input) that are having the same transition from a node to another. Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 42

Summary

Analysis of logic clocked sequential circuit is in steps: Making excitation table Making state transition table Making State table Reducing the table after a state minimization process Draw state diagram using circles and directed arcs

End of Lesson 2 on ANALYSIS OF CLOCKED SEQUENTIAL CIRCUIT

THANK YOU Ch15L2- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 46