Lecture 20 State minimization via row matching.

Slides:



Advertisements
Similar presentations
ENGIN112 L23: Finite State Machine Design Procedure October 27, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 23 Finite State Machine.
Advertisements

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.
CS1Q Computer Systems Lecture 12 Simon Gay. Lecture 12CS1Q Computer Systems - Simon Gay 2 Design of Sequential Circuits The systematic design of sequential.
VIII - Working with Sequential Logic © Copyright 2004, Gaetano Borriello and Randy H. Katz 1 Finite state machine optimization State minimization  fewer.
Counters. In class excercise How to implement a “counter”, which will count as 0,3,1,4,5,7,0,3,1,…… Q2Q1Q0D2D1D
TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
Give qualifications of instructors: DAP
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.
String Recognition Simple case: recognize 1101 “ ” 0 “1” 0 “11” 0 Reset 1 “110” “1101”
CS 151 Digital Systems Design Lecture 37 Register Transfer Level
CS 151 Digital Systems Design Lecture 25 State Reduction and Assignment.
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
ECE C03 Lecture 111 Lecture 11 Finite State Machine Optimization Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
ECE C03 Lecture 101 Lecture 10 Finite State Machine Design 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.
Give qualifications of instructors: DAP
Spring 2002EECS150 - Lec15-seq2 Page 1 EECS150 - Digital Design Lecture 15 - Sequential Circuits II (Finite State Machines revisited) March 14, 2002 John.
3/13/20081 Lab 6 Solution Part 1: Design a sequence detector for the sequence “00101” Part 2: a b See sm1.vhdSee sm2.vhd See seq1.vhd.
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):
ECE 331 – Digital System Design Sequential Circuit Design (Lecture #23) The slides included herein were taken from the materials accompanying Fundamentals.
ENGIN112 L25: State Reduction and Assignment October 31, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 25 State Reduction and Assignment.
CSCI 3301 Transparency No. 9-1 Chapter #9: Finite State Machine Optimization Contemporary Logic Design.
SEQUENTIAL CIRCUITS Introduction
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
Lecture 18 More Moore/Mealy machines.
Name:________________________________________________________________________________Date:_____/_____/__________ Fill-in-the-Blanks: 1)A relation is a.
Counters. In class excercise How to implement a “counter”, which will count as 0,3,1,4,5,7,0,3,1,…… Q2Q1Q0D2D1D
Regular Expressions Chapter 6 1. Regular Languages Regular Language Regular Expression Finite State Machine L Accepts 2.
Copyright © Curt Hill Finite State Machines The Simplest and Least Capable Automaton.
DLD Lecture 26 Finite State Machine Design Procedure.
Registers; State Machines Analysis Section 7-1 Section 5-4.
CHAPTER 7 DESIGNING SEQUENTIAL SYSTEMS. CE6. A system with one input x and one output z such that z = 1 iff x has been 1 for at least three consecutive.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Lecture 22: Finite State Machines with Output. Moore Machine - A Moore machine is a 6-tuple (Q, , , , q 0,  ) where, (1) Q is a finite set of states.
George Mason University Finite State Machines Refresher ECE 545 Lecture 11.
Week #7 Sequential Circuits (Part B)
Finite state machine optimization
Finite state machine optimization
1.3 Finite State Machines.
CS 352 Introduction to Logic Design
Lecture 12 Analysis of Clocked Sequential Network
Sequential logic design principles
Analysis of Clocked Sequential Circuit
CS 352 Introduction to Logic Design
FINITE STATE MACHINES (FSMs)
CSE 370 – Winter Sequential Logic-2 - 1
Warm Up What are the first 5 terms of a sequence with the following:
Lecture 25 Logistics Last lecture Today HW8 posted today, due 12/5
Lecture 24 Logistics Last lecture Today HW7 due today
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Implement FSM with fewest possible states • Least number of flip flops
Guest Lecture by David Johnston
Lecture 25 Logistics Last lecture Today HW8 posted today, due 12/5
Lecture 21 Logistics Last lecture Today HW7 due Wednesday
2) For each of the finite state machines above, use the sets derived in part 1) to produce the following:   i.                  a set of sequences that.
Lecture 24 Logistics Last lecture Today HW7 due today
Lecture 22 Logistics Last lecture Today
Counters.
ECE 352 Digital System Fundamentals
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Lecture 22 Logistics Last lecture Today HW7 is due on Friday
CS M51A/EE M16 Winter’05 Section 1 Logic Design of Digital Systems Lecture 11 February 23 W’05 Yutao He 4532B Boelter Hall
EGR 2131 Unit 12 Synchronous Sequential Circuits
Lecture 22 Logistics Last lecture Today HW7 is due on Friday
Announcements Assignment 7 due now or tommorrow Assignment 8 posted
CSE 370 – Winter Sequential Logic-2 - 1
Presentation transcript:

Lecture 20 State minimization via row matching

FSM minimization Two simple FSMs for odd parity checking

Collapsing states Can collapse S0 and S2 into one state

FSM minimization Row matching Implication chart Easier to do by hand Misses minimization opportunities Implication chart Guaranteed to find the most reduced FSM More complicated algorithm (but still relatively easy to write a program to do it)

Simple problem Design a Mealy machine with a single bit input and a single bit output. The machine should output a 0, except once every four cycles, if the previous four inputs matched one of two patterns (0110, 1010) Example input/output trace: in: 0010 0110 1100 1010 0011 … out: 0000 0001 0000 0001 0000 …

… and a simple solution

Find matching rows Next State Output Input Sequence Present State X=0 Reset S0 S1 S2 S3 S4 1 S5 S6 00 S7 S8 01 S9 S10 10 S11 S12 11 S13 S14 000 001 010 011 100 101 110 111

Find matching rows Next State Output Input Sequence Present State X=0 Reset S0 S1 S2 S3 S4 1 S5 S6 00 S7 S8 01 S9 S10 10 S11 S12 11 S13 S14 000 001 010 011 100 101 110 111

Merge matching rows Next State Output Input Sequence Present State X=0 Reset S0 S1 S2 S3 S4 1 S5 S6 00 S7 S8 01 S9 S10’ 10 S11 11 S13 S14 000 001 010 011 or 101 100 110 111

Merge until no more matches Next State Output Input Sequence Present State X=0 X=1 Reset S0 S1 S2 S3 S4 1 S5 S6 00 S7’ 01 S10’ 10 11 Not (011 or 101) 011 or 101

Final state transition table Next State Output Input Sequence Present State X=0 X=1 Reset S0 S1 S2 S3’ S4’ 1 00 or 11 S7’ 01 or 10 S10’ Not (011 or 101) 011 or 101

Final FSM