CSCI 3301 Transparency No. 9-1 Chapter #9: Finite State Machine Optimization Contemporary Logic Design.

Slides:



Advertisements
Similar presentations
Nonlinear & Neural Networks LAB. PART State Reduction ( )
Advertisements

ENGIN112 L23: Finite State Machine Design Procedure October 27, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 23 Finite State Machine.
Chapter #8: Finite State Machine Design 8
Lecture 21 State minimization via implication charts.
Some Slides from: U.C. Berkeley, U.C. Berkeley, Alan Mishchenko, Alan Mishchenko, Mike Miller, Mike Miller, Gaetano Borriello Gaetano Borriello Introduction.
Chapter #10: Finite State Machine Implementation
Finite State Machines (FSMs)
CMPS 3223 Theory of Computation
VIII - Working with Sequential Logic © Copyright 2004, Gaetano Borriello and Randy H. Katz 1 Finite state machine optimization State minimization  fewer.
TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
Give qualifications of instructors: DAP
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Circuits require memory to store intermediate data
Chapter 3 Digital Logic Structures
Digital Logic Design Lecture 27.
No. 9-1 Chapter #9: Finite State Machine Optimization.
CS 151 Digital Systems Design Lecture 37 Register Transfer Level
CS 151 Digital Systems Design Lecture 25 State Reduction and Assignment.
Sequential Circuit Design
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 Circuit Design. 2 State Optimization Equivalent States:  Two states are equivalent if, for each member of the set of inputs,  they give exactly.
Penn ESE 535 Spring DeHon 1 ESE535: Electronic Design Automation Day 13: March 4, 2009 FSM Equivalence Checking.
ECE C03 Lecture 111 Lecture 11 Finite State Machine Optimization Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
ECE C03 Lecture 131 Lecture 13 Finite State Machine Optimization Prith Banerjee ECE C03 Advanced Digital Design Spring 1998.
Contemporary Logic Design Finite State Machine Design © R.H. Katz Transparency No Chapter #8: Finite State Machine Design 8.5 Finite State Machine.
Give qualifications of instructors: DAP
Aho-Corasick String Matching An Efficient String Matching.
Contemporary Logic Design Finite State Machine Design © R.H. Katz Transparency No Chapter #8: Finite State Machine Design Finite State.
1 State Reduction: Row Matching Example 1, Section 14.3 is reworked, setting up enough states to remember the first three bits of every possible input.
Spring 2002EECS150 - Lec15-seq2 Page 1 EECS150 - Digital Design Lecture 15 - Sequential Circuits II (Finite State Machines revisited) March 14, 2002 John.
Sources Gang Quan Univ. of Notre Dame Finite State Machines.
Contemporary Logic Design FSM Optimization © R.H. Katz Transparency No Chapter #9: Finite State Machine 9.4 Choosing Flip-Flops 9.5 Machine Partitioning.
ENGIN112 L25: State Reduction and Assignment October 31, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 25 State Reduction and Assignment.
State Minimization and Determinization EECS 290A Sequential Logic Synthesis and Verification.
CSE 311: Foundations of Computing Fall 2014 Lecture 23: State Minimization, NFAs.
SEQUENTIAL CIRCUITS Introduction
IKI c-Synthesis of Sequential Logic Bobby Nazief Semester-I The materials on these slides are adopted from: Prof. Daniel Gajski’s transparency.
Chapter 5 - Part Sequential Circuit Design Design Procedure  Specification  Formulation - Obtain a state diagram or state table  State Assignment.
Elevator Controller We’re hired to design a digital elevator controller for a four-floor building st try: Design a counter that counts up.
Circuit, State Diagram, State Table
CALTECH CS137 Spring DeHon CS137: Electronic Design Automation Day 9: May 6, 2002 FSM Equivalence Checking.
Lecture 18 More Moore/Mealy machines.
Introduction to Sequential Logic Design Finite State-Machine Design.
CPEN Digital System Design Chapter 5 - Sequential Circuits Sequential Circuit Design C. Gerousis © Logic and Computer Design Fundamentals, 4 rd Ed.,
Introduction to State Machine
9-1 Introduction Chapter #9: Finite State Machine Optimization.
2-1 Introduction Gate Logic: Two-Level Simplification Design Example: Two Bit Comparator Block Diagram and Truth Table A 4-Variable K-map for each of the.
Sources Gang Quan Univ. of Notre Dame Finite State Machines.
DLD Lecture 26 Finite State Machine Design Procedure.
Capabilities, Minimization, and Transformation of Sequential Machines
Finite state machine optimization
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Finite state machine optimization
Sequential logic design principles
State Reduction and State Assignment
Lecture 14 Reduction of State Tables
Synthesis of sequential circuits
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 25 Logistics Last lecture Today HW8 posted today, due 12/5
Implement FSM with fewest possible states • Least number of flip flops
Lecture 25 Logistics Last lecture Today HW8 posted today, due 12/5
ESE535: Electronic Design Automation
ECE 352 Digital System Fundamentals
Lecture 22 Logistics Last lecture Today
Motivation Combinational logic functions can be represented, and defined, by truth tables. Sequential logic function cannot, because their behavior depends.
Lecture 20 State minimization via row matching.
CS M51A/EE M16 Winter’05 Section 1 Logic Design of Digital Systems Lecture 11 February 23 W’05 Yutao He 4532B Boelter Hall
Chapter5: Synchronous Sequential Logic – Part 3
CSE 370 – Winter Sequential Logic-2 - 1
Presentation transcript:

CSCI 3301 Transparency No. 9-1 Chapter #9: Finite State Machine Optimization Contemporary Logic Design

CSCI 3301 Transparency No. 9-2 Chapter Outline State Reduction

CSCI 3301 Transparency No. 9-3 Motivation State Reduction Odd Parity Checker: two alternative state diagrams Identical output behavior on all input strings FSMs are equivalent, but require different implementations Design state diagram without concern for # of states, Reduce later

CSCI 3301 Transparency No. 9-4 Motivation State Reduction (continued) Implement FSM with fewest possible states Least number of flipflops Boundaries are power of two number of states Fewest states usually leads to more opportunities for don't cares Reduce the number of gates needed for implementation

CSCI 3301 Transparency No. 9-5 State Reduction Goal Identify and combine states that have equivalent behavior Equivalent States: for all input combinations, states transition to the same or equivalent states Odd Parity Checker: S0, S2 are equivalent states Both output a 0 Both transition to S1 on a 1 and self-loop on a 0 Algorithmic Approach Start with state transition table Identify states with same output behavior If such states transition to the same next state, they are equivalent Combine into a single new renamed state Repeat until no new states are combined

CSCI 3301 Transparency No. 9-6 State Reduction Implication Chart Method Example FSM: Single input X, Single output Z Output a 1 whenever the serial sequence 010 or 110 has been observed at the inputs State transition table:

CSCI 3301 Transparency No. 9-7 State Reduction Implication Chart Method Enumerate all possible combinations of states taken two at a time Naive Data Structure: Xij will be the same as Xji Also, can eliminate the diagonal Implication Chart Next States Under all Input Combinations

CSCI 3301 Transparency No. 9-8 State Reduction Implication Chart Filling in the Implication Chart Entry Xij — Row is Si, Column is Sj Si is equivalent to Sj if outputs are the same and next states are equivalent Xij contains the next states of Si, Sj which must be equivalent if Si and Sj are equivalent If Si, Sj have different output behavior, then Xij is crossed out Example: S0 transitions to S1 on 0, S2 on 1; S1 transitions to S3 on 0, S4 on 1; So square X contains entries S1-S3 (transition on zero) S2-S4 (transition on one) S1-S3 S2-S4 S0 S1

CSCI 3301 Transparency No. 9-9 State Reduction Implication Chart Method Starting Implication Chart S2 and S4 have different I/O behavior This implies that S1 and S0 cannot be combined

CSCI 3301 Transparency No State Reduction Implication Chart Method Results of First Marking Pass Second Pass Adds No New Information S3 and S5 are equivalent S4 and S6 are equivalent This implies that S1 and S2 are too! Reduced State Transition Table Reduced State Transition Table

CSCI 3301 Transparency No State Reduction Multiple Input State Diagram Example State Diagram Symbolic State Diagram

CSCI 3301 Transparency No State Reduction Multiple Input Example Implication Chart Minimized State Table

CSCI 3301 Transparency No State Reduction Implication Chart Method Does the method solve the problem with the odd parity checker? Implication Chart S0 is equivalent to S2 since nothing contradicts this assertion!

CSCI 3301 Transparency No State Reduction Implication Chart Method The detailed algorithm: 1.Construct implication chart, one square for each combination of states taken two at a time 2.Square labeled Si, Sj, if outputs differ than square gets "X". Otherwise write down implied state pairs for all input combinations 3.Advance through chart top-to-bottom and left-to-right. If square Si, Sj contains next state pair Sm, Sn and that pair labels a square already labeled "X", then Si, Sj is labeled "X". 4.Continue executing Step 3 until no new squares are marked with "X". 5.For each remaining unmarked square Si, Sj, then Si and Sj are equivalent.