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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started