Design the control for an automatic candy vending machine.
1. Draw the state diagram that implements the finite state machine.
2. Implement the finite state machine using D, T and JK flip-flops. You may use gray code state assignment.
3. Verify the D flip-flop implementation in (2).
4. Write Verilog HDL models for the machine based on the state diagram in (1) and the D flip-flop sequential circuit that you implement in (2
You may use Xilinx ISE or any other appropriate CAD tool
MUST complete before Sunday mid-night (Sydney time)