Crazy Hat & Candy Machine

Slides:



Advertisements
Similar presentations
Counters. In class excercise How to implement a “counter”, which will count as 0,3,1,4,5,7,0,3,1,…… Q2Q1Q0D2D1D
Advertisements

TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
Finite Automata with Output
Finite state machines.
ECE 331 – Digital System Design
Finite State Machine Minimization Advanced Methods based on triangular table and binate covering.
Give qualifications of instructors: DAP
1 COMP541 State Machines Montek Singh Feb 6, 2007.
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Rosen 5th ed., ch. 11 Ref: Wikipedia
1 COMP541 State Machines Montek Singh Feb 8, 2012.
Sequential Logic Materials taken from: Digital Design and Computer Architecture by David and Sarah Harris & The Essentials of Computer Organization and.
CSC312 Automata Theory Lecture # 19 Chapter # 8 by Cohen Finite Automata with Output.
CPEN Digital System Design Chapter 5 - Sequential Circuits Sequential Circuit Design C. Gerousis © Logic and Computer Design Fundamentals, 4 rd Ed.,
Module : FSM Topic : types of FSM. Two types of FSM The instant of transition from the present to the next can be completely controlled by a clock; additionally,
Introduction to State Machine
Counters. In class excercise How to implement a “counter”, which will count as 0,3,1,4,5,7,0,3,1,…… Q2Q1Q0D2D1D
1 Recap lecture 21 Example of Moore machine, Mealy machine, Examples, complementing machine, Incrementing machine.
Finite State Machines CS147 : Presentation by Mabel Thong (9/25/07)
Problem Class 3 - Slide 1 PYKC 17 Nov 2015 E2.1 Digital Electronics Problem Class 3 State Machines (Problem Sheet 3) Peter Cheung Department of Electrical.
Digital System Design using VHDL

Finite State Machines 1.Finite state machines with output 2.Finite state machines with no output 3.DFA 4.NDFA.
1 COMP541 Finite State Machines - 1 Montek Singh Sep 22, 2014.
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.
1 COMP541 Sequential Logic – 2: Finite State Machines Montek Singh Feb 29, 2016.
Finite State Machines Mealy machine inputs Outputs next state function
Excursions in Modern Mathematics Sixth Edition
AS Computer Studies Finite State Machines 1.
Finite State Machines Dr K R Bond 2009
ANALYSIS OF SEQUENTIAL CIRCUITS
Lecture 13 Derivation of State Graphs and Tables
CS 352 Introduction to Logic Design
COMP541 Sequential Logic – 2: Finite State Machines
EXAMPLE 1 Represent relations
SLOPE = = = The SLOPE of a line is There are four types of slopes
Graph Vocab and Graphs of Functions
CSE 370 – Winter Sequential Logic-2 - 1
Special Graphs of Inequalities.
Relations vs. Functions Function Notation, & Evaluation
Lecture 24 Logistics Last lecture Today HW7 due today
Special Graphs of Inequalities.
Finite State Machines.
Is it a Function? Teacher Twins©2014.
Guest Lecture by David Johnston
Warm Up Problem of the Day Lesson Presentation Lesson Quizzes.
Set of first coordinates in an ordered pair. (the x values) Range:
Lecture 24 Logistics Last lecture Today HW7 due today
Counters.
Lecture 20 State minimization via row matching.
Relations and Functions
ECE 352 Digital System Fundamentals
Special Graphs of Inequalities.
Lecture 14: State Tables, Diagrams, Latches, and Flip Flop
Is it a Function? Teacher Twins©2014.
Finite Automata with Output
Recap lecture 20 Recap Theorem, Example, Finite Automaton with output, Moore machine, Examples.
ECE 352 Digital System Fundamentals
EGR 2131 Unit 12 Synchronous Sequential Circuits
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Finite Automaton with output
Functions vs Non Functions
ECE 352 Digital System Fundamentals
I can determine whether a relation is a function
ECE 352 Digital System Fundamentals
Mealy and Moore Machines
Finite State Machine Continued
What is it? The term "Automata" is derived from the Greek word "αὐτόματα" which means "self-acting". An automaton (Automata in plural) is an abstract self-propelled.
Exponential Functions and their Graphs
Presentation transcript:

Crazy Hat & Candy Machine B G R R B G R B G R B G

Crazy Hat & Candy Machine 2 B G R R G B G R B R B G

Fickle Fruit Solution Legend: STATES are vertices of the graph. The following directed graph diagram represents the behavior of the fruit vendor in the Fickle Fruit exercise. We use "a" for apple and "b" for banana so that "a/b" means "asked for an apple, and received a banana." Start Legend: STATES are vertices of the graph. TRANSITIONS are directed edges... START state indicated by short arrow input causes transition output given en route to next state

Frustrating Fruit Solution There is only one slight difference between this machine and the previous one (the loop transition on the "HAT" state gives a banana instead of an apple)!

FSM output variations i/o output on transitions (“Mealy machine”) name ouput output at states (“Moore machine”) recognizer or acceptor: A special Moore machine where some states say “YES!” (indicated by a double-circle), and the rest have no output. The input sequences leading to YES! are said to be recognized. Example: even odd 1 • Usually, the different output styles are not used in the same FSM, as one approach best suits the situation

Fancy Fruit Solution Here is one solution to the Fancy Fruit problem. Notice that states "HAT and LEI" and "NOTHING" have exactly the same transitions out of them: If you ask for a banana you are given a banana and you go to state "LEI ONLY", and if you ask for an apple you are given an apple and you go to state "APPLE ONLY". Since these two states are exactly the same, we can combine them into one called"(HAT and LEI) or (NOTHING)". Then the diagram looks like this:

FSM Design Considerations What are the inputs to the problem? Are there any outputs? Is the machine a recognizer, or are there different types of output, and if so, do they more naturally seem to go along transitions, with the input, or once a new state is arrived at? STATES vs TRANSITIONS. There is a kind of chicken-and-egg problem: - You can’t tell what the transitions are without knowing what the states are that you are transitioning between. - You can’t tell what the states are, unless you have a good idea of how they should change as input is read. Sometimes one of the two will be clear, and the other will follow. Otherwise, remember: The STATES capture the entire current “state of the entire system” that is being modeled. Each state is a “current snapshot” of what the system is like at this moment. All future behavior must be determinable from the current state and future inputs - how the FSM got to the current state is irrelevant.