Write a vhdl code for soda vending machine

Assignment Help Programming Languages
Reference no: EM13720

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: EM13720

Questions Cloud

Entrepreneurship : What does the term entrepreneurship mean to you?
State exercises criminal jurisdiction : Discuss to what extent a state exercises criminal jurisdiction over individuals.
Cloud computing assignment : WSDL service that receives a request for a stock market quote and returns the quote
Analyzing the blink alive code : Analyzing the Blink Alive code - Embedded Systems Design
Write a vhdl code for soda vending machine : Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.
Suggest a swot analysis for the company : Considering the micro and macro levels of marketing, please suggest a SWOT analysis for the company NutriSystem
London congestion charge : Generate revenue for city are under consideration. The two proposals are London Congestion Charge and Charging for Firefighting.
Cost-benefit analysis : A cost-benefit analysis of electronic medical records in primary care
Design a course registration system : Create an application which represents a simplified course registration system using ArrayLists and HashMaps.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

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 to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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