Question
Verilog Programming 1) Design a finite state machine design in Verilog for a vending machine that accepts 5 cents, 10 cents and 25 cents (nickel,
Verilog Programming
1) Design a finite state machine design in Verilog for a vending machine that accepts 5 cents, 10 cents and 25 cents (nickel, dime and quarter) as inputs and outputs a soda if 45 cents is deposited. Note that there are many states and hence many ways to deposit coins.
You should have a reset signal that will set your current state to the "0 cents" state to initialize. Once you have 45 cents deposited or more, you should output the soda and then give back any remaining change if any.. And then, the state should go back to the initial "0 cents" state. Vending machine can output both nickels and dimes.. The worst case scenario would be when user deposits a quarter, then a dime followed by another quarter. e.g. 25+10+25, in that case the machine should output the product and give 1 dime and 1 nickel..
Submit your code as a word file here.. Along with any outputs
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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