Simple state machine

Design a sequential network described by the following state/output table (PS: Present State; NS: Next state, zz is the 2-bit output). Assume AA is the initial state and encode the outputs as a=00a=00, b=01b=01 and c=10c=10.

PS Input
x=0x=0 x=1x=1
AA B,aB,a F,bF,b
BB C,aC,a A,cA,c
CC D,aD,a B,bB,b
DD E,bE,b C,cC,c
EE F,bF,b D,bD,b
FF A,cA,c E,cE,c
𝑁𝑆,z\textit{NS},z

Specification

module state_machine(x, z, clk, rst);
    input x, clk, rst;
    output [1:0] z;

Input

Output

Problem information

Author: Jordi Cortadella

Generation: 2026-02-03T12:22:29.785Z

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