design a Mealy FSM to control a vending machine. This vending machine sells chewing gum for 20 cents. There is a single coin slot that accepts either a nickel or a dime. Only one coin can be input at a time and no change is given. When at least 20 cents is deposited, the single output of the FSM is asserted (logic 1), which releases a package of chewing gum.
You must show the complete design process from developing the state diagram through and including a complete schematic. Be sure to verify the state diagram is in minimal form. The output of this FSM does not have to be registered. (Do you know why?)
Show a timing diagram indicating which states you are in and the FSM output. for the following 3 conditions:
1. deposit 5 cents, 5 cents, 10 cents
2. deposit 10 cents, 5 cents, 5 cents
3. deposit 10 cents, 5 cents, 10 cents