Design a sequential network described by the following state/output table (PS: Present State; NS: Next state, is the 2-bit output). Assume is the initial state and encode the outputs as , and .
| PS | Input | |
|---|---|---|
module state_machine(x, z, clk, rst);
input x, clk, rst;
output [1:0] z;clk is the clock signal.
rst is the synchronous reset signal.
x is the input signal.
z is the 2-bit signal encoding the outputs
,
and
.