Question: Part 1: Create a FSM that will implement the vending machine below in VHDL. 1. There should be separate outputs indicating whether candy or gum

Part 1:

Create a FSM that will implement the vending machine below in VHDL.

1. There should be separate outputs indicating whether candy or gum or soda is dispensed. These outputs should only turn on if they have enough money and have made a selection.

2. The amount of money entered should be indicated on the LEDs.

3. If the user has entered money and has made a selection, and if the amount of money that they have inputted is not enough, an output should indicate that they do not have enough funds.

4. There should be a reset button. Once the reset button is pressed it will return initial state.

5. The clock input to the FSM should be the clock divider, as before.

Part 2:

Augment the FSM from part one to include the following:

1. There should be a refund button. Once the refund button is pressed the number of refunded nickels will be displayed on the 7 Segment Display, and there is another output that indicates that this is being refunded. The system should go back to the reset state since they no longer have any money in the machine.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!