Soda vending machine designnbsp design a soda vending

Assignment Help Application Programming
Reference no: EM13346820

Soda Vending Machine Design 

Design a soda vending machine that can deliver three kinds of soda, A, B and C. All  the  three soda cost the same amount  - 70 cents. The vending machine has four coin slots, one  each for nickel (N = 5c), dime (I = 10c), quarter (Q = 25c) and dollar (D = 100c). Coins are inserted into the machine one at a time in any order. The machine should take coins until 70 cents or more has been put in. When this occurs, the machine should wait for the  choice of the soda A, B or C.

374_soln_SODA_M.png

After the choice is made, the machine is ready for vending.

The machine should indicate vending by turning on one of the  lines A_O, B_O  or C_O  for 1 second. During this time the machine cannot accept any coins. After 1 second, the machine is ready to accept coins again. The machine does not return any change. The machine should be a Finite State Machine (FSM) operating with  a 100 Hz  clock. The machine should have a reset input (R), which when pressed and released puts the machine  in READY mode. Whenever this happens, the machine should display the total amount  accumulated since last reset. Also, the internal amount accumulated is reset to zero cents.

Write a VHDL code that implements the above soda machine. You have to turn in the following:

 1. A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

(a) Normal operation of soda vending, showing the order in which the coins are inserted,  the state transitions and the vending process. Show that your machine does not accept coins when the machine is vending.

(b) Show the reset operation after a few sodas are vended, clearly displaying the total  amount accumulated and the state change.

Reference no: EM13346820

Questions Cloud

1 what do you meant by entrepreneurshipnbsp what are some : 1 what do you meant by entrepreneurship?nbsp what are some basic characteristics of entrepreneurs? 2 what is
International law and institutiondiscuss to what extent a : international law and institutiondiscuss to what extent a state exercises criminal jurisdiction over individuals. write
In the module on wsdl you were presented with the details : in the module on wsdl you were presented with the details of the wsdl service that receives a request for a stock
To understand the usage of the output ports of pic18f452 : to understand the usage of the output ports of pic18f452 and make changes in the previous code accordingly.procedure -
Soda vending machine designnbsp design a soda vending : soda vending machine designnbsp design a soda vending machine that can deliver three kinds of soda a b and c. allnbsp
Increased usage of the internet has caused a decrease in : increased usage of the internet has caused a decrease in usage of traditional media like tv radio and print. how will
Generate revenue for city under consideration the two : generate revenue for city under consideration. the two proposals are london congestion charge and charging for
A cost-benefit analysis of electronic medical records in : a cost-benefit analysis of electronic medical records in primary carethere are two categories of costs associated with
Ceate an application which represents a simplified course : create an application which represents a simplified course registration system using arraylists and hashmaps.define a

Reviews

Write a Review

Application Programming Questions & Answers

  In this project you will create an application to run in

in this project you will create an application to run in the amazon ec2 service and you will also create a client that

  Imagine that your company has decided to expand to the web

imagine that your company has decided to expand to the web. you want to reuse some data entry code that has been

  1 here is a short program it prints out the value of a

1. here is a short program. it prints out the value of a variable x. ernie and bert disagree about what will be printed

  If the user wants to read the input from a file then the

if the user wants to read the input from a file then the output will also go into a different file. if the user wants

  Question 1we are given the following knowledge base of

question 1we are given the following knowledge base of travel informationnbspbycaraucklandhamilton.

  Basic requirementsscreen one has three edittext views and

basic requirementsscreen one has three edittext views and one button.the edittext views allow you to enter a students

  Create a application using the mvc architecture no

create a application using the mvc architecture. no scripting elements are allowed in jsp

  Rtl sa is a company which develops bespoke solutions for

rtl sa is a company which develops bespoke solutions for the rubber industry. they produce both rubber compound which

  Design a program that models the worms behavior in the

design a program that models the worms behavior in the subsequent scenarioa worm is moving toward an apple. each time

  Problem build a class for a type called fractionnbspthis

problem build a class for a type called fraction.nbspthis class is used to show a ration of two integers.nbsp include

  Part - 1 object-oriented designwrite a program that allows

part - 1 object-oriented designwrite a program that allows an instructor to keep a grade book. each students has scores

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd