Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Design a vending machine following the given instructions. Implement the design in FPGA. Vending Machine is a candy dispenser machine that dispenses candy based
Design a vending machine following the given instructions. Implement the design in FPGA. Vending Machine is a candy dispenser machine that dispenses candy based on the amount deposited in the machine. It accepts the following coins: Nickel (5 cents), Dime (10 cents), and Quarter (25 cents). Till it receives 25 cents, it will not dispense anything. After it has received 25 cents, it will dispense a candy. Any amount above that will be given back as change. It has the following states State 1: RESET State 2: FIVE State 3: TEN State 4: FIFTEEN State 5: TWENTY State 6: TWENTY_FIVE - When the machine gets a coin, it jumps to the next state. For example, if it is in RESET state and it gets a Nickel (5 cents), then it jumps to the next state FIVE. Otherwise, it stays in the same state. After that, if it gets a Dime (10 cents), then it jumps to the state FIFTEEN and so on. When it gets more than 25 cents in total, it comes back to the reset state and the difference is given back to the user as change. Draw the state diagram for this problem.
Step by Step Solution
★★★★★
3.43 Rating (153 Votes )
There are 3 Steps involved in it
Step: 1
Here is the state diagram for the Vending Machine RESET Nickel 5 cents v ...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