Unit 14 Derivation of State Graphs

Slides:



Advertisements
Similar presentations
©2004 Brooks/Cole FIGURES FOR CHAPTER 14 DERIVATION OF STATE GRAPHS AND TABLES Click the mouse to move to the next page. Use the ESC key to exit this chapter.
Advertisements

STATE DIAGRAM AND STATE TABLES
Sequential Circuits Storage elements
State-machine structure (Mealy)
State Machine Design Procedure
Analysis of Clocked Sequential Circuits
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
Sequential Circuit Analysis & Design Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum & Minerals Dr. Aiman H. El-Maleh.
CS 151 Digital Systems Design Lecture 21 Analyzing Sequential Circuits.
Nonlinear & Neural Networks LAB. CHAPTER 13 Analysis of Clocked Sequential Circuit 13.1 A Sequential Parity Checker 13.2 Analysis by Signal Tracing 13.3.
Unit 13 Analysis of Clocked Sequential Circuits Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
UNIT 14 DERIVATION OF STATE GRAPHS AND TABLES Spring 2011.
Sequential Circuit Design
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
ECE 331 – Digital System Design State Reduction and State Assignment (Lecture #22) The slides included herein were taken from the materials accompanying.
ECE 331 – Digital System Design
Sequential Circuits and Finite State Machines Prof. Sin-Min Lee
Sequential Circuit Design
Overview Sequential Circuit Design Specification Formulation
1 Design of a Sequence Detector (14.1) Seq. ends in > Z=1 (no reset) Otherwise--> Z=0 Typical input/output sequence Partial Soln. (Mealy Network):
Digital Logic Design Lecture 26. Announcements Exams will be returned on Thursday Final small quiz on Monday, 12/8. Final homework will be assigned Thursday,
9/15/09 - L22 Sequential Circuit Design Copyright Joanne DeGroat, ECE, OSU1 Sequential Circuit Design Creating a sequential circuit to address a.
Sequential circuit design
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 17 Design a clock synchronous sequential circuit with two inputs A, B and a single.
Digital Computer Design Fundamental
Chapter 5 - Part Sequential Circuit Design Design Procedure  Specification  Formulation - Obtain a state diagram or state table  State Assignment.
Circuit, State Diagram, State Table
State Machines.
Lecture 4 – State Machine Design 9/26/20081ECE Lecture 4.
L6 – Derivation of State Graphs and Tables. State Graphs and Tables  Problem Statement translation To State Graphs To State Tables  Ref: text : Unit.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 2 – Sequential.
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
CPEN Digital System Design Chapter 5 - Sequential Circuits Sequential Circuit Design C. Gerousis © Logic and Computer Design Fundamentals, 4 rd Ed.,
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Logic and Computer.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits Previously, we described the basic building blocks of sequential circuits,
Introduction to State Machine
Registers; State Machines Analysis Section 7-1 Section 5-4.
1 State Reduction Goal: reduce the number of states while keeping the external input-output requirements unchanged. State reduction example: a: input 0.
Digital System Design using VHDL
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
Synchronous Counter Design
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
State Diagrams Tuesday, 12 September State diagram Graphical representation of a state table. –Provides the same information as a state table. –A.
State Machine Design Shiva choudhary En No.: Electronics and comm. Dept K.I.T.,Jamnagar 1.
SLIDES FOR CHAPTER 15 REDUCTION OF STATE TABLES STATE ASSIGNMENT
4.
Lecture 13 Derivation of State Graphs and Tables
CS 352 Introduction to Logic Design
Lecture 12 Analysis of Clocked Sequential Network
Analysis of Clocked Sequential Circuit
SLIDES FOR CHAPTER 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
CS 352 Introduction to Logic Design
FIGURE 5.1 Block diagram of sequential circuit
State Reduction and State Assignment
Instructor: Alexander Stoytchev
KU College of Engineering Elec 204: Digital Systems Design
CSE 140L Discussion Finite State Machines.
Instructor: Alexander Stoytchev
Sequential circuit design
Sequential circuit design
KU College of Engineering Elec 204: Digital Systems Design
CHAPTER 15 REDUCTION OF STATE TABLES STATE ASSIGNMENT
DESIGN OF SEQUENTIAL CIRCUITS
ECE 352 Digital System Fundamentals
ECE 352 Digital System Fundamentals
EGR 2131 Unit 12 Synchronous Sequential Circuits
Instructor: Alexander Stoytchev
ECE 352 Digital System Fundamentals
Presentation transcript:

Unit 14 Derivation of State Graphs Fundamentals of Logic Design By Roth and Kinney

14.1 Design of a Sequence Detector Clocked Mealy sequential circuit Circuit has the general form of Figure 14.1 Input: X (string of 0’s and 1’s) Output: Z=1 only when a specific sequence has been detected.

14.1 (cont.) Equation 14.1 illustrates Z = 1 when a string of “101” is detected. Note: the system is not reset when the sequence is found many times.

14.1 (cont.) Assume that the number of flip flops is not known, so we will start with state S0, and continue to S1, S2, etc., as needed. A state graph will be constructed. The circuit will initially start at rest. Figure 14.2—when the first 1 is received we go to state 1. Note that 1/0 indicates X=1 but Z=0. Figure 14.3—if we receive a 0 after the 1, then we must go to state 2.

14.1 (cont.) While in state 2, if we receive another 1 then the pattern “101” has been found Set Z=1 and return to state 1 to look for another sequence of “101” Figure 14.3 illustrates the partial graph. Figure 14.4 illustrates the complete graph.

14.1 (cont.) A Table (Table 14-1) can be derived using the graph. Now the circuit can be derived. Since there are 3 states, two flip-flops are needed. A “next state” transition table can be developed, as shown by Table 14.2.

14.1 From the transition table, next-state maps (see page 460 ) can be found. Flip-Flop inputs (DA and DB) are then derived from the maps—assume that D FFs are used in this example. This leads to the circuit shown in Figure 14-5.

14.1 (cont.) Design for a Moore machine is similar to that for a Mealy. However, the output is written with the states, not with the output between states. Example similar to Mealy: Z =1 only if 101 has occurred.

14.1 (cont.) Top of page 461—10 has been sent and we have states 0,1, and 2. If a 1 input comes next then, 101 has been received and the output must be a 1—this requires state 3 (see 2nd figure on page 461).

14.1 (cont.) Complete the Graph (see Figure 14.6) Table 14-3 100 will reset the circuit to S0. 1010 takes the circuit back to S2. Table 14-3 State table corresponding to the Moore graph. Note that there are 4 states and only one column for Z. Table 14-4 shows the transition table.

14.2 More Complex Design Problems Two different patterns produce Z=1; “010” and “1001”—see page 463. State Graph (Mealy) Start with one of the sequences, then add the other to the state graph. Figure 14-8 shows the partial graph for “010”. Figure 14-9 shows the additional graph for “1001”, but Figure 14-10 is better since we do not have to add the additional state.

14.2 (cont.) So now Z=1 when the input sequence 010 or 1001 is completed. NEXT—complete the state graph If we are in S1, and the input is 0 then we have a 00 sequence –we can stay in S1. If we are in S2, and the input is a 1 (0 is already taken care of ) and we have a sequence ending in 11—we can go to S4.

14.2 (cont.) NEXT—completing the state graph (cont.) S3—already has arrows corresponding to 0,1. S4– If a 1 is received we can stay in s4 and ignore the extra 1 (11 is not part of either sequence (010 or 1001)). S5-- Already has a 0 input result and a 1 input result. RESULT—Figure 14-10, page 465.

14.2 (cont.) Derivation of STATE graph for Moore sequential circuit.—pages 465-467.

14.3 Guidelines for Construction of State Graphs 1-7, page 467 1) Construct some simple examples 2) Determine under what conditions the circuit should reset. 3) If only one or two sequences lead to nonzero output, construct a partial state graph.

14.3 (cont.) 4)Another way to start is to determine what sequences or groups of sequences must be remembered, and then set up the states accordingly. 5) When adding an arrow, try to use previously defined states, and then add new ones.

14.3 (cont.) 6) Check your graph to make sue there is one and only one path leavin each state for each combination of values of the input variables. 7) When complete, test your graph using the sequences formulated in step 1.

14.3 (cont.) Example 1 Input: X Output: Z Sequences entered 4 bits at a time. Z=1, when input sequence “0101” or “1001” is found. STEP1: test sequences on page 468. STEP2: Resets after 4 input values.

14.3 (cont.) Example 1 (cont.) STEP3: Start with partial state graph is shown (Fig.14-14) STEP4: Another start: list of states and Sequence Group Received (Fig. 14-14). STEP5: Add Arrows and Labels, to take care of sequences which do not give a 1 output. (Fig. 14-15)

14.3 (cont.) Example 1 (cont.) STEP 6: Check graph to make sure there is one and only one path leaving each state for each combination of values of the input variables. STEP7: TEST with step 1 sequences.

14.3 (cont.) Example 2 INPUT: X OUTPUTS: Z1, Z2 Z1 =1 , after input “100” has occurred provided that “010” has never occurred. Z2 =1 , after input “010”. Fig. 14-16—partial state graphs Table 14-5—state description

14.3 (cont.) Example 2 (cont.) Example 3 Fig. 14-17 shows partial and completed state graphs. Table 14.6 State Table Example 3 TWO Input: X1 and X2 ONE OUTPUT

14.4 Serial Data Code Conversion Final Example of STATE Graph Construction Fig. 14.19 Serial Data Transmission Fig. 14.20 Coding Schemes

14.5 Alphanumeric State Graph When a state sequential circuit has several inputs, it is often convenient to label the state graph arcs with alphanumeric input variable names instead of 0’s and 1’s.

14.6 Incompletely Specified State Tables Sometimes particular input sequences will never occur as inputs; other times the output from a sequential circuit is only observed at certain times rather than at every clock time. A state table containing such don’t –cares is called an Incompletely Specified State Table.