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.

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

Finite-State Machines with No Output Ying Lu
Nondeterministic Finite Automata CS 130: Theory of Computation HMU textbook, Chapter 2 (Sec 2.3 & 2.5)
Analysis of Clocked Sequential Circuits
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.
YES-NO machines Finite State Automata as language recognizers.
Software Engineering, COMP 201 Slide 1 Automata and Formal Languages Moore and Mealy Automata Ralf Möller Hamburg Univ. of Technology based on slides by.
Digital Logic Design Lecture 27.
Finite Automata with Output
Lecture # 14 Theory Of Automata By Dr. MM Alam 1.
Finite Automata Section 1.1 CSC 4170 Theory of Computation.
Computability and Complexity 4-1 Existence of Undecidable Problems Computability and Complexity Andrei Bulatov.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
CS5371 Theory of Computation
Lecture 6 & 7 System Models.
Lecture 3 Goals: Formal definition of NFA, acceptance of a string by an NFA, computation tree associated with a string. Algorithm to convert an NFA to.
Topics Automata Theory Grammars and Languages Complexities
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
CSE 311: Foundations of Computing Fall 2014 Lecture 23: State Minimization, NFAs.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Rosen 5th ed., ch. 11 Ref: Wikipedia
ECE 331 – Digital Systems Design Sequential Logic Circuits: FSM Design (Lecture #20)
System Models Hoang Huu Hanh, Hue University hanh-at-hueuni.edu.vn Lecture 6 & 7.
Unit 14 Derivation of State Graphs
Finite-State Machines with Output
Lecture 23: Finite State Machines with no Outputs Acceptors & Recognizers.
Theory of Computation - Lecture 3 Regular Languages What is a computer? Complicated, we need idealized computer for managing mathematical theories... Hence:
CSC312 Automata Theory Lecture # 19 Chapter # 8 by Cohen Finite Automata with Output.
Moore machine and Mealy machine (P.274)
Lecture 18 More Moore/Mealy machines.
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
Vending Machine Using FSM Aalapee Patel Seth Martin.
Copyright © Curt Hill Finite State Machines The Simplest and Least Capable Automaton.
1 Finite State Machines (FSMs) Now that we understand sequential circuits, we can use them to build: Synchronous (Clocked) Finite State Machines Finite.
Recognising Languages We will tackle the problem of defining languages by considering how we could recognise them. Problem: Is there a method of recognising.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
Lecture 8 Theory of AUTOMATA
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
Modeling Computation: Finite State Machines without Output
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.
Lecture 16: Modeling Computation Languages and Grammars Finite-State Machines with Output Finite-State Machines with No Output.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Common Elements in Sequential Design. Lecture 3 topics  Registers and Register Transfer  Shift Registers  Counters Basic Counter Partial sequence counters.
1 Lecture #14 EGR 277 – Digital Logic Self-starting counters Counters are considered to be self-starting if all unused counts eventually lead to the correct.
Govt. Engineering College- Gandhinagar. It is all about……  STATE MACHINE.
Lecture 14: Theory of Automata:2014 Finite Automata with Output.
Mealy Machines Finite State Machines with Outputs given on the transitions.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
Deterministic Finite-State Machine (or Deterministic Finite Automaton) A DFA is a 5-tuple, (S, Σ, T, s, A), consisting of: S: a finite set of states Σ:
Introduction to Automata Theory Theory of Computation Lecture 3 Tasneem Ghnaimat.
Finite Automata.
Lecture2 Regular Language
Lab. on Finite State Machine
ECE 301 – Digital Electronics
Finite Automata & Regular Languages
Jaya Krishna, M.Tech, Assistant Professor
CSE322 Mealy and Moore Machine
Recap lecture 19 NFA corresponding to Closure of FA, Examples, Memory required to recognize a language, Example, Distinguishing one string from another,
Finite Automata with Output
Recap lecture 20 Recap Theorem, Example, Finite Automaton with output, Moore machine, Examples.
CSC 4170 Theory of Computation Finite Automata Section 1.1.
EGR 2131 Unit 12 Synchronous Sequential Circuits
Finite Automaton with output
Mealy and Moore Machines
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.
Presentation transcript:

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. (2)  is a finite set of symbols called the input alphabet. (3)  is a finite set of symbols called the output alphabet. (4)  : Q x  -> Q is the transition function (5) q 0 is an element of Q called the start state, and (6)  : Q ->  is the output function mapping the current state to the output. Moore Machine

Example Moore Machine Each of the six elements of this example Moore machine are given below, Q = {1, 2, 3}  = ([1,X] -> 2, [1,Y] -> 3, [1,Z] -> 1, [2,X] -> 3, [2,Y] -> 1, [2,Z] -> 2, [3,X] -> 1, [3,Y] -> 3, [3,Z] -> 3)  = { X, Y, Z} q 0 = 1  = {A, B}  = (1 -> A, 2 -> B, 3 -> A)

Mealy Machine - A Mealy machine is a 6-tuple (Q, , , , q 0,  ) where, (1) Q is a finite set of states. (2)  is a finite set of symbols called the input alphabet. (3)  is a finite set of symbols called the output alphabet. (4)  : Q x  -> Q is the transition function (5) q 0 is an element of Q called the start state, and (6)  : Q x  ->  is the output function mapping the current transition to the output. Mealy Machine

Now let's look at how we build an FSM to find all occurrences of a particular substring in an input binary string. The first issue we need to resolve is whether we wish to allow overlap in the substrings. We can use the substring 1101 to illustrate substring overlap. Permitting overlap means that one or more bits can be part of more than one instance of a substring. Consider the input string, If we permit overlap, we find that the string contains six instances of the substring However, if we do not permit overlap, this string contains only three instances of the substring. Moore Machine Substring Recognizer

Moore Machine: Recognizer for '1101' with Overlap

As a final example of bit string recognizers, we will build a Mealy machine to find the substring 1101 with overlap. Recall that a Mealy machine generates its output on the transition rather than upon entering a state. This may seem like a trivial difference, but it can sometimes permit us to reduce the number of states required. Mealy Machine: Recognizer for "1101" with Overlap Upon reading the final bit in the substring sequence, this machine outputs a 1, otherwise it outputs a 0 each time it reads an input bit. This Mealy machine has one less state than the Moore machine designed to solve the same problem. Mealy machines will always require the same or fewer states to solve the same problem as Moore machines.