Sequence Detector
Sequence Detector
Introduction
• 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.
Introduction
• Sequence detector is of two types:
Overlapping
Non-Overlapping
• 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.
Introduction
For example, take a sequence 1101
• For Non-overlapping
Input : 1 1 0 1 1 0 1 1 0 1
Output:
For 1-bit Overlapping
Input : 1 1 0 1 1 0 1 1 0 1
Output:
Introduction
For example, take a sequence 11011
1 2 3 4
Assignment
• Draw the state tables for the sequence 101 with
1) Moore Machine (Non-Overlapping)
2) Mealy Machine (Non-Overlapping)
3) Moore Machine (Overlapping)
4) Mealy Machine (Overlapping)
Draw the state tables for the sequence 101 with
1) Moore Machine (Non-Overlapping) 2) Mealy Machine (Non-Overlapping)
3) Moore Machine (Overlapping) 4) Mealy Machine (Overlapping)
1 2 3 4
Realization of FSM using Flip-flops
• Step 1: Develop the state diagram
• Step 2: Code Assignment
• Step 3: Make Present State/Next State table
• Step 4: Draw K-maps for Dx, Dy and output (Z)
• Step 5: Finally implement the circuit
Design a overlapping 101 Mealy sequence
detector.