Simple state machine X78930


Statement
 

pdf   zip

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

  • clk is the clock signal.

  • rst is the synchronous reset signal.

  • x is the input signal.

Output

  • z is the 2-bit signal encoding the outputs aa, bb and cc.

Information
Author
Jordi Cortadella
Language
English
Official solutions
Verilog
User solutions
Verilog