Exams/2014 q3bfsm
From HDLBits
exams/2014_q3fsmPrevious
Nextexams/2014_q3c
Given the state-assigned table shown below, implement the finite-state machine. Reset should reset the FSM to state 000.
| Present state y[2:0] | Next state Y[2:0] | Output z | |
|---|---|---|---|
| x=0 | x=1 | ||
| 000 | 000 | 001 | 0 | 
| 001 | 001 | 100 | 0 | 
| 010 | 010 | 001 | 0 | 
| 011 | 001 | 010 | 1 | 
| 100 | 011 | 100 | 1 | 
Module Declaration
module top_module (
    input clk,
    input reset,   // Synchronous reset
    input x,
    output z
);
exams/2014_q3fsmPrevious
Nextexams/2014_q3c