Prerequisite – Mealy and Moore machines
A sequence detector is a sequential state machine that takes an input string of bits and generates an output 1 whenever the target sequence has been detected. In a Mealy machine, output depends on the present state and the external input (x). Hence, in the diagram, the output is written outside the states, along with inputs. Sequence detector is of two types:
In an overlapping sequence detector, the last bit of one sequence becomes the first bit of the next sequence. However, in a non-overlapping sequence detector, the last bit of one sequence does not become the first bit of the next sequence. In this post, we’ll discuss the design procedure for non-overlapping 101 Mealy sequence detectors.
For non overlapping case
For overlapping case
The steps to design a non-overlapping 101 Mealy sequence detectors are:
Step 1: Develop the state diagram –
The state diagram of a Mealy machine for a 101 sequence detector is:
Step 2: Code Assignment –
Rule 1 : States having the same next states for a given input condition should have adjacent assignments.
Rule 2: States that are the next states to a single state must be given adjacent assignments.
Rule 1 given preference over Rule 2.
The state diagram after the code assignment is:
Step 3: Make Present State/Next State table –
We’ll use D-Flip Flops for design purposes.
Step 4: Draw K-maps for Dx, Dy and output (Z) –
Step 5: Finally implement the circuit –
This is the final circuit for a Mealy 101 non-overlapping sequence detector.
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses
are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!