Simplification of State Machines

Similar documents
ASYNCHRONOUS SEQUENTIAL CIRCUITS

8.7 Systems of Non-Linear Equations and Inequalities

Switching Circuits & Logic Design

2.8 Implicit Differentiation

Topic 3 Notes Jeremy Orloff

Logical design of digital systems

DIFFERENTIAL EQUATIONS First Order Differential Equations. Paul Dawkins

8. BOOLEAN ALGEBRAS x x

Chapter 4 Analytic Trigonometry

L10 State Machine Design Topics

3.7 InveRSe FUnCTIOnS

CHAPTER 9: SEQUENTIAL CIRCUITS

CS/EE 181a 2008/09 Lecture 4

Foundations of Databases

Methods for Advanced Mathematics (C3) Coursework Numerical Methods

Introduction to CMOS VLSI Design. Logical Effort B. Original Lecture by Jay Brockman. University of Notre Dame Fall 2008

CpE358/CS381. Switching Theory and Logical Design. Class 2

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology

Problem Set 9 Solutions

Menu. Binary Adder EEL3701 EEL3701. Add, Subtract, Compare, ALU

1 GSW Gaussian Elimination

Week 3 September 5-7.

Physics Gravitational force. 2. Strong or color force. 3. Electroweak force

LESSON 35: EIGENVALUES AND EIGENVECTORS APRIL 21, (1) We might also write v as v. Both notations refer to a vector.

7.1. Unit 7. Minterm and Canonical Sums 2- and 3-Variable Boolean Algebra Theorems DeMorgan's Theorem Simplification using Boolean Algebra

04. What is the Mod number of the counter circuit shown below? Assume initially reset.

Math 123 Summary of Important Algebra & Trigonometry Concepts Chapter 1 & Appendix D, Stewart, Calculus Early Transcendentals

1. For the following sub-problems, consider the following context-free grammar: S AB$ (1) A xax (2) A B (3) B yby (5) B A (6)

Section 8.5 Parametric Equations

Outcomes. Spiral 1 / Unit 2. Boolean Algebra BOOLEAN ALGEBRA INTRO. Basic Boolean Algebra Logic Functions Decoders Multiplexers

Biostatistics in Research Practice - Regression I

10.2 The Unit Circle: Cosine and Sine

We have examined power functions like f (x) = x 2. Interchanging x

ES.1803 Topic 16 Notes Jeremy Orloff

Roberto s Notes on Integral Calculus Chapter 3: Basics of differential equations Section 3. Separable ODE s

Learning From Data Lecture 7 Approximation Versus Generalization

Mathematics 309 Conic sections and their applicationsn. Chapter 2. Quadric figures. ai,j x i x j + b i x i + c =0. 1. Coordinate changes

FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING. Lectures AB = BA = I,

Functions. Introduction

Green s Theorem Jeremy Orloff

Ch 5 Alg 2 L2 Note Sheet Key Do Activity 1 on your Ch 5 Activity Sheet.

8.1 Exponents and Roots

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

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

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

SOLVING SYSTEMS OF EQUATIONS

5.4 dividing POlynOmIAlS

Review Topics for MATH 1400 Elements of Calculus Table of Contents

Solutions to Two Interesting Problems

INTRODUCTION TO DIFFERENTIAL EQUATIONS

Lecture 8: Sequential Networks and Finite State Machines

Chapter 8 Notes SN AA U2C8

Introduction to CMOS VLSI Design. Lecture 5: Logical Effort. David Harris. Harvey Mudd College Spring Outline

Analytic Trigonometry

Unit 2 Notes Packet on Quadratic Functions and Factoring

Unit 3 NOTES Honors Common Core Math 2 1. Day 1: Properties of Exponents

Mark Redekopp, All rights reserved. Lecture 4 Slides. Boolean Algebra Logic Functions Canonical Sums/Products

ES.182A Topic 36 Notes Jeremy Orloff

5.3.3 The general solution for plane waves incident on a layered halfspace. The general solution to the Helmholz equation in rectangular coordinates

1.5. Analyzing Graphs of Functions. The Graph of a Function. What you should learn. Why you should learn it. 54 Chapter 1 Functions and Their Graphs

2.2 Equations of Lines

2.3 Quadratic Functions

a. plotting points in Cartesian coordinates (Grade 9 and 10), b. using a graphing calculator such as the TI-83 Graphing Calculator,

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

5.6 RATIOnAl FUnCTIOnS. Using Arrow notation. learning ObjeCTIveS

Sequential Circuit Design

Math-2. Lesson:1-2 Properties of Exponents

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

Boolean Algebra and Logic Gates

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Winter Notes - Unit 2

Polynomial and Rational Functions

10.5 Graphs of the Trigonometric Functions

6 Synchronous State Machine Design

Combinational Logic Design

13.2 Solving Larger Systems by Gaussian Elimination

CARLETON UNIVERSITY Final EXAMINATION April 16, 2003

15.1 Elimination of Redundant States

FYSE420 DIGITAL ELECTRONICS

Chapter 5: Quadratic Equations and Functions 5.1 Modeling Data With Quadratic Functions Quadratic Functions and Their Graphs

Linear Equation Theory - 2

Lecture 10: Synchronous Sequential Circuits Design

Ch 3 Alg 2 Note Sheet.doc 3.1 Graphing Systems of Equations

5 State Minimisation. university of applied sciences hamburg. Digital Systems. Prof. Dr. J. Reichardt Prof. Dr. B. Schwarz

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

11.4 Polar Coordinates

Section 3.1. ; X = (0, 1]. (i) f : R R R, f (x, y) = x y

DIGITAL LOGIC CIRCUITS

Math Lesson 2-2 Properties of Exponents

Conservation of Linear Momentum

THE UNIVERSITY OF MICHIGAN. Timing Analysis of Domino Logic

MATH Line integrals III Fall The fundamental theorem of line integrals. In general C

Eigenvectors and Eigenvalues 1

Linear Relationships

Cubic and quartic functions

Q: Examine the relationship between X and the Next state. How would you describe this circuit? A: An inverter which is synched with a clock signal.

3.2 LOGARITHMIC FUNCTIONS AND THEIR GRAPHS

Laurie s Notes. Overview of Section 3.5

ES.182A Topic 41 Notes Jeremy Orloff. 41 Extensions and applications of Green s theorem

Mealy & Moore Machines

Higher. Polynomials and Quadratics. Polynomials and Quadratics 1

Transcription:

T3 Lecture Notes State Reduction hapter 9 - of Simplification of State Machines This semester has been spent developing the techniques needed to design digital circuits. Now we can compile a list of just what it takes to complete a successful digital design project. Specif the problem erive the state table and/or the state diagram Reduce the # of states to the minimum possible hoose an appropriate state assignment onstruct an appropriate transition table evelop the design equations Implement the circuit

T3 Lecture Notes State Reduction hapter 9 - of The onl topic in that list that is left to be discussed is that of minimiing the number of states. iscussion of State Reduction is normall divided into two different areas:. State Reduction in ompletel Specified ircuits. State Reduction in Incompletel Specified ircuits We will limit our discussion to the first area. This topic is epanded on in T 4 and usuall encompasses the second discussion area. The removal of redundant states is important for a number of reasons. () ost: The number of memor elements is directl related to the number of states. () ompleit: The more states the circuit contains, the more comple the design and its associated implementation becomes. (3) ids failure analsis: iagnostic routines are usuall based on the assumption that there are no redundant states. There are 3 major State reduction Methods: Reduction b (a) Inspection (b) Partitioning (c) Implication table. We will stud the st two methods and leave the Implication table method for T 4.

T3 Lecture Notes State Reduction hapter 9-3 of Reduction Inspection This is the easiest and most obvious technique. We can merge compatible states if we follow some simple rules.. Two states that have different outputs are not compatible and can t be merged.. Two states are compatible and can be merged if, under all possible input conditions, the net states and outputs are the same. 3. Two states are compatible and can be merged if, under all possible input conditions, the merging of the two states will make the net states compatible and the outputs the same.

T3 Lecture Notes State Reduction hapter 9-4 of The following is an eample from Professor Hackworth s T4 tet. (rule ) = = andidates for merging (rule ) Not a candidate (rule ) (rule ) = = Note the substitution of all s with s along with the merger. = = This application of rule 3 is quite often hard to notice. That s wh we need other methods of state reduction. (rule 3) if were merged with then we could replace with and then the Net states and the outputs would match. = = Note that with this final circuit we have made quite a hardware savings. We went from 5 states (3 ff) to states ( ff) along with a significant reduction in control circuitr.

T3 Lecture Notes State Reduction hapter 9-5 of Let s look at another small eample. In doing so, we will also look at a couple of new was to write state tables which will help us in our reductions. Y Z 7 7» Two groups of possible candidates for merging. 7»» If we merge and, would the results be the same? 7» = therefore the two states are not compatible. = therefore the two states are not compatible. 's outputs ( ) are different 's outputs ( ) are different

T3 Lecture Notes State Reduction hapter 9-6 of Let s do the same thing ecept this time, let s put the table into another form. = Y/ = Y/ = Y/ = Y/ / / / / - / / / / / / / / / / Note that since was redundant, we replaced ever with a. What did we save with this State Merger? Saved on gates, not on s. Let s rewrite the table another wa ON MOR TIM. Y = = = = = = = = -

T3 Lecture Notes State Reduction hapter 9-7 of Let s tr a second eample. We will use the Inspection method to reduce the following state table: Let s look at the instances where Z is equal to : Y Y = = = = State had a NT STT of and. ollowing the thread we get: State has NT STTS of and. definition, will be fine, but is not compatible because has an output of and has an output of. If one item in an thread of a state inspection is incompatible, the whole thread (and the state) is bad (fruit of the poison tree) as well!! We don t even have to look at the other thread coming off of but if ou like, note that the thread starts with which we have alread determined to be incompatible. is the other possibilit for Z =. Note that if we work thru the top thread, we get to which we have shown to be incompatible, therefore the entire tree is poisoned. ontinued on the net page:

T3 Lecture Notes State Reduction hapter 9-8 of ontinuing the eample, let s now look at the output condition of Z = This time, we will use less eplanation for the failures. Tr to follow wh each tree failed: Y Y = = = = Y Z = = = = Y Z = = = = Note that we replaced the single with an and all the occurrences of with. We reduced the circuit from 7 states (3 ) to 5 states (3). We still didn t save on flip-flops but we most likel saved on control circuitr.

T3 Lecture Notes State Reduction hapter 9-9 of Moore Reduction (also known as Partitioning) (page 58) = Y = = =. The st step is to assume that all states are compatible. P =(). Then we start grouping the states based on their outputs. P =()()() 3. Then we group these groups b Net State. or, =, The net state is. Note that in P, is in the same group () so can sta in the same group. However, is not in the same group as was so will have to be separated out into its own group. We now have partition (P ): P =()()()() or, =, The net state is which becomes. were in the same group in the last partition, P so the can still share a group in P 3. P 3 =()()()() or, =, Net state is. Obviousl the are in same group in P 3 so can remain grouped. P 4 =()()()() or, =, Net state is which are all in the same group in P 4, so we can keep together. P 5 =()()()()

T3 Lecture Notes State Reduction hapter 9 - of Once a partition repeats itself, ou are finished. So, for this group, we get: Reduced from 7 states (3 ff) to 4 states ( ff) + control circuitr. = = = = Y = = = = Y

T3 Lecture Notes State Reduction hapter 9 - of Let s redo our eample on page 7 b using Moore reduction. Y = = = =. ssume the all are compatible. P =(). roup b output. P =()() 3. roup b net state. P = ()()()() P 3 = ()()()()() P 4 = ()()()()() P 3 = P 4 thus reduced Y = = = = Y = = = = Same answer as before.

T3 Lecture Notes State Reduction hapter 9 - of (ample 9.3 in Nelson, et. al.) Reduce the following stable b appling Moore s Reduction. Y = = = = P =(H) H H P =()()()(H) P =()()()()(H) P 3 =()()()()(H) P 3 = P, Thus reduced Y = = = = Y = = = = H H H H

T3 Lecture Notes State Reduction hapter 9-3 of ample 9.4 (in Nelson, et. al.) / / / / / / / / / / / / P =(H) P =()(H) / / / / P =()()(H) / / / / / / / / / / / / P 3 =()()()()(H) P 4 =()()()()(H) H / / / / P 3 =P 4, Thus reduced / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / H / / / /

T3 Lecture Notes State Reduction hapter 9-4 of State ssignments State assignment procedures are concerned with methods for assigning binar values to states in such a wa as to reduce the cost of the combinational circuit which drives the flip-flops (memor elements). These methods are mainl useful when a circuit is viewed as a black bo. Such a circuit ma follow a sequence of internal states, but the binar values of the individual states ma be of no consequence outside of the bo as long as the circuit produces the required sequence of output bits for an sequence of input bits. this definition, this assignment procedure obviousl doesn t appl to circuits whose eternal outputs are taken directl from flip-flops with a particular binar sequence specified. There are man methods of optimiing the state assignments made to a given circuit. Most are etremel involved and are beond the scope of this course. However, one particular method of state assignment optimiation is essentiall simple and eas to follow.

T3 Lecture Notes State Reduction hapter 9-5 of In the following rules, there term adjacent assignments means that the state assignments made to a pair of states differ b onl bit, i.e. ra odes. Rule : Rule : Rule 3: States that have the same net states for a given input should be given logicall adjacent assignments. States that are the net states of a given present state, under logicall adjacent inputs, should be given logicall adjacent assignments. If there is a conflict between rule and, rule takes precedence. Let s appl these rules to an eample: ssign. # ssign. # ssign. #3 Y = = = = Using Rule #, the state pair (,) should be given adjacent assignments because both of them go to state for =. Similarl, state pairs (,), (,), and (,) all should be given adjacent assignments; the pair (,) appears twice.

T3 Lecture Notes State Reduction hapter 9-6 of The application of Rule # shows that the state pair (,) should be given adjacent assignments because the are net states of the present state. or similar reasons, state pairs (,) and (,) Rule : States that are the net states of a given present state, under logicall adjacent inputs, should be given logicall adjacent assignments. Rule : States that have the same net states for a given input should be given logicall adjacent should be adjacent with (,) appearing twice. 3 ssign. # 3 ssign. # 3 ssign. #3 The figure above demonstrates the three different choices for state assignments which attempt to meet as man of the adjacenc requirements as possible. It can hopefull be seen that ssignment 3 satisfies most of the adjacencies and hence produces a better result then the other assignments. It might be suggested that ssignment

T3 Lecture Notes State Reduction hapter 9-7 of produces the same number of adjacencies as #3, but it doesn t fulfill the adjacenc requirement for state pair (,) as determined b Rule. (Note that we don t bother here with an equation for since it is not affected b a state assignment.) Let s take a look at the logic equations produced b each assignment. The actual work to produce these equations follows but will not be covered in class. It is left up to the student to verif the equations for him or herself. s can be easil seen below, our choice of ssign. #3 is clearl the winner in the logic component simplicit contest. J K J K # gates N gate OR gate + wire and a choice between: # or + OR gate or OR gate additional N gates OR gate wire + and a choice between: # or + OR gate or additional OR gate additional N gates N gate # 3 3 wires

T3 Lecture Notes State Reduction hapter 9-8 of State ssignment # Y Y J J K K ssign # PS NS J K 3 J 4 5 7 6 3 J 4 5 7 6 J = + J = + = K 3 4 5 7 6 K 3 4 5 7 6 K = K = + =

T3 Lecture Notes State Reduction hapter 9-9 of State ssignment # Y Y J K J K ssign # PS NS J K 3 J 4 5 7 6 3 J 4 5 7 6 J = + = J = K 3 4 5 7 6 K = + K 3 4 5 7 6 K =

T3 Lecture Notes State Reduction hapter 9 - of State ssignment #3 Y Y J K J K ssign #3 PS NS J K 3 J 4 5 7 6 3 J 4 5 7 6 J = J = K 3 4 5 7 6 K 3 4 5 7 6 K = K =