Finite-State Machines with Output

Slides:



Advertisements
Similar presentations
Example: Binary Adder We want to construct a finite state machine that will add two numbers. The input is two binary numbers, (xn…x1x0)2 and (yn…y1y0)2.
Advertisements

Modeling Computation Chapter 13.
NFA: Vending Machine Simulation
Lecture 20 Finite State Machines CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
CSE 311 Foundations of Computing I
Finite State Machines (FSMs)
TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
CSE 311: Foundations of Computing Fall 2013 Lecture 23: Finite state machines and minimization.
Lecture # 14 Theory Of Automata By Dr. MM Alam 1.
Discrete Interaction Design Specification Prof. Dr. Matthias Rauterberg Faculty Industrial Design Technical University of Eindhoven
§12.2 – Finite State Machines with Output. Giving credit where credit is due: Most slides based on lecture notes created byMost slides based on lecture.
Finite state machines.
Chapter Section Section Summary Set of Strings Finite-State Automata Language Recognition by Finite-State Machines Designing Finite-State.
Finite Automata Finite-state machine with no output. FA consists of States, Transitions between states FA is a 5-tuple Example! A string x is recognized.
Basic Register A register is a sequential component that can store multiple bits.
Give qualifications of instructors: DAP
Finite State Machines Control Circuits Example: Vending Machine Takes only quarters and dollar bills Won't hold more than $1.00 Sodas cost $.75 Possible.
Finite State Machine(FSM)
Finite State Machines – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Graphs and Finite State Machines Reading: Kolman, Sections.
Rosen 5th ed., ch. 11 Ref: Wikipedia
Elevator Controller We’re hired to design a digital elevator controller for a four-floor building st try: Design a counter that counts up.
Finite State Automata: A Brief Introduction CSE 260 / CMPSC 360 Doug Hogan Penn State University.
Deterministic Finite State Machines Chapter 5. Languages and Machines 2.
Lecture 23: Finite State Machines with no Outputs Acceptors & Recognizers.
CSE 311 Foundations of Computing I Lecture 23 Finite State Machines Autumn 2012 CSE 3111.
An ordered n-tuple is a set of n objects with an order associated with them. If n objects are represented by x 1, x 2,..., x n, then we write the ordered.
CSE 311 Foundations of Computing I Lecture 21 Finite State Machines Autumn 2011 CSE 3111.
CSE 311 Foundations of Computing I Lecture 21 Finite State Machines Spring
Fall 2006Costas Busch - RPI1 Deterministic Finite Automaton (DFA) Input Tape “Accept” or “Reject” String Finite Automaton Output.
1 Course Overview PART I: overview material 1Introduction 2Language processors (tombstone diagrams, bootstrapping) 3Architecture of a compiler PART II:
Penny Nickel Dime Penny Nickel Dime Quarter Half Dollar.
1 Inputs: q (quarter), d (dime) and n (nickel) Input can be two bit coded input or three bit not coded input –Two bit coded: 00 no coin, 01 nickel, 10.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Copyright © Curt Hill Finite State Machines The Simplest and Least Capable Automaton.
§12.2 – Finite State Machines with Output. Giving credit where credit is due: Most slides based on lecture notes created byMost slides based on lecture.
1 Finite State Machines (FSMs) Now that we understand sequential circuits, we can use them to build: Synchronous (Clocked) Finite State Machines Finite.
State Table Problem #1 An electronic lock is controlled by a keypad, which has three buttons labeled A, B, and R. The keypad is restricted such that, at.
1 ENGG 1203 Tutorial Combinational Logic (II) and Sequential Logic (I) 8 Feb Learning Objectives  Apply Karnaugh map for logic simplification  Design.
CSE 311 Foundations of Computing I Lecture 24 Finite State Machines Autumn 2012 CSE 3111.
Lecture 8 Theory of AUTOMATA
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Finite State Machines 1.Finite state machines with output 2.Finite state machines with no output 3.DFA 4.NDFA.
Computing Machinery Chapter 4: Finite State Machines.
September1999 CMSC 203 / 0201 Fall 2002 Week #14 – 25/27 November 2002 Prof. Marie desJardins clip art courtesy of
Finite state machines. Finite State Machines (FSMs) Widely used specification technique Used to specify system behavior in response to events Both output.
§12.2 – Finite State Machines with Output
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 10 Automata, Grammars and Languages.
Lecture # 15. Mealy machine A Mealy machine consists of the following 1. A finite set of states q 0, q 1, q 2, … where q 0 is the initial state. 2. An.
1 Languages: Finite State Machines Chapter 6 problemsstrings (languages) machines answers.
© 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.
Mealy Machines Finite State Machines with Outputs given on the transitions.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
Finite-State Machines (FSM) Chuck Cusack Based partly on Chapter 11 of “Discrete Mathematics and its Applications,” 5 th edition, by Kenneth Rosen.
Discrete Mathematics and its Applications
10.3 Finite State Machines.
CSE 311 Foundations of Computing I
Evaluation in Engineering Design Process Modeling and FSM
Finite State Machines.
CSE 311 Foundations of Computing I
Discrete Mathematics and its Applications
§11.2 – Finite State Machines with Output
Discrete Mathematics and its Applications
CSE 311: Foundations of Computing
Discrete Mathematics and its Applications
Recap lecture 20 Recap Theorem, Example, Finite Automaton with output, Moore machine, Examples.
§11.2 – Finite State Machines with Output
Finite Automaton with output
Discrete Mathematics and its Applications
Presentation transcript:

Finite-State Machines with Output

Example of a FSM with Output A vending machine accepts nickels (5¢), dimes (10¢), and quarters (25¢). When 30¢ or more has been deposited, the machine returns the amount over 30¢. The customer can then press an O-button to receive orange juice or an R-button to receive apple juice

Example of a FSM with Output The same FSM can be represented using a table

FSMs with Outputs A finite-state machine M = (S, I, O, f, g, s0) consists of: a finite set S of states a finite input alphabet I a finite output alphabet O an initial state s0 a transition function f an output function g Example 1: S = {s0, s1, s2, s3} I = {0, 1} O = {0, 1} Initial: s0 f, g: state table/diagram

FSMs with Outputs Example 2: unit-delay machine given the bit string x1x2…xk it produces 0x1x2…xk-1

FSMs with Outputs Example 3: adding machine for binary integers given (xn…x1x0)2 and (yn…y1y0)2 it produces their sum