Recognizing sequences

Design a sequential circuit with one binary input and one binary output. The output at time tt is 1 when the input in the time interval [t3,t][t-3,t] is 0101 or 0110.

Specification

module sequence(in, out, clk, rst);
    input in, clk, rst;
    output out;

Hint

The state machine can be implemented with 5 states.

Input

Output

Problem information

Author: Jordi Cortadella

Generation: 2026-02-03T12:23:21.863Z

© Jutge.org, 2006–2026.
https://jutge.org