Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Let's turn back the clock to when cokes from a vending machine cost 35. Design a finite state machine to accept nickels (N), dimes (D),

image text in transcribed

Let's turn back the clock to when cokes from a vending machine cost 35. Design a finite state machine to accept nickels (N), dimes (D), and quarters (Q) and return change if the amount is over the purchase price. The machine does not accept dollar bills. At maximum a person could mistakenly put into the machine 55. Table 1 below will help you understand some combinations of coins to use; be sure every coin combination is covered. Remember to reuse states if possible. Using Quartus II and the DE2 board, implement your design using switches for N, D, and Q along with a clock pulse. When the proper payment is made, an LED will indicate a coke was dispensed. Returned change will be indicated by a set of LEDs. Be sure to hand in your state diagram and table with your submission. When you finish, demonstrate the vending machine for Dr. Lewelling. Please hand in a schematic and functional/timing simulation. You can receive a bonus if you display amount of inserted coinage and change on the 7 segment displays. OC 0 7 5 3 2 1 0 Table 1: Example of Coin combinations used for the vending N D Q Amount Change 0 0 35 1 0 35 0 2 35 0 0 1 350 OC 3 35 0 1 1 35 0 4 40 5 2 1 45 10 0 2 50 15 3 1 55 20 0 0 0 0 0 Let's turn back the clock to when cokes from a vending machine cost 35. Design a finite state machine to accept nickels (N), dimes (D), and quarters (Q) and return change if the amount is over the purchase price. The machine does not accept dollar bills. At maximum a person could mistakenly put into the machine 55. Table 1 below will help you understand some combinations of coins to use; be sure every coin combination is covered. Remember to reuse states if possible. Using Quartus II and the DE2 board, implement your design using switches for N, D, and Q along with a clock pulse. When the proper payment is made, an LED will indicate a coke was dispensed. Returned change will be indicated by a set of LEDs. Be sure to hand in your state diagram and table with your submission. When you finish, demonstrate the vending machine for Dr. Lewelling. Please hand in a schematic and functional/timing simulation. You can receive a bonus if you display amount of inserted coinage and change on the 7 segment displays. OC 0 7 5 3 2 1 0 Table 1: Example of Coin combinations used for the vending N D Q Amount Change 0 0 35 1 0 35 0 2 35 0 0 1 350 OC 3 35 0 1 1 35 0 4 40 5 2 1 45 10 0 2 50 15 3 1 55 20 0 0 0 0 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Finance Theory And Practice

Authors: Eddie McLaney

7th Edition

0273702629, 978-0273702627

More Books

Students also viewed these Finance questions