Design a sequential network described by the following state/output table (PS: Present State; NS: Next state, z is the 2-bit output). Assume A is the initial state and encode the outputs as a=00, b=01 and c=10.
||
| PS | Input | |
| x=0 | x=1 | |
| A | B,a | F,b |
| B | C,a | A,c |
| C | D,a | B,b |
| D | E,b | C,c |
| E | F,b | D,b |
| F | A,c | E,c |
| NS,z | ||
||
Specification
module state_machine(x, z, clk, rst); input x, clk, rst; output [1:0] z;
Input
Output