subject
Engineering, 25.02.2020 19:49 yddlex

You are asked to develop controller logic for a food vending machine that is to be deployed in Electrical Engineering department. The vending machine sells food for $0.10 to $0.99. One of your colleagues has already designed a module that provides an output "money [6:0]" that tells you how much money (max $1) client has deposited and "price[6:0]" corresponding to the item purchased. Another colleague designed a module, which provides active HIGH single-bit outputs "avail_Q", "avail_D", "avail_N", "avail_P" indicating whether the vending machine has quarters (Q). dime (D), nickels (N). and pennies (P) available to be dispensed. You are required to implement a Finite State Machine that returns coins from the coin dispenser stack of quarters (Q). dimes (D). nickels (N). and pennies (P). Your state machine should produce disp_Q, disp_D, disp_N disp_P that would drive the stack dispenser input enable. (disp_Q, disp_D, disp_N, disp_P are all 1-bit.)
module coin_return (disp_Q, disp_D, disp_N, disp_P, done, money, price, start, elk, reset, avail_Q, avail_D, avail_N, avail_P);
When "start" (synchronous active HIGH) is present (active only for 1-clock cycle), your state machine should consider all input values to be valid and stable and begin coin dispensing. Your machine should check if a coin-available signal (avail_Q, avail_D, avail_N, avail_P) is asserted during this initial cycle before enabling any corresponding dispense-enable signal during the transaction. The machine dispenses one coin at a time. Each stack drops a coin if its dispense enable input is HIGH at the POSITIVE edge of the clock only if there are coins available in the stack to be dropped. If the coin-available signal was not asserted for a particular coin at the beginning of the transaction, your machine should not dispense that particular coin and use smaller denomination coins for returning the change. When the transaction is complete, your state machine should pull up its "done" output. The machine uses synchronous "reset" and in idle-state, the "done" output should remain HIGH. Your design should dispense coins as fast as possible. In order to save the time of dispensing coins, the machine should first dispense as many as possible quarters, followed by dimes, nickels and pennies respectively. In addition, if none of the coin-available signals are valid, then the machine should simply go into a state where the "done" is asserted without dispensing any coins. You may assume that when start is asserted, the value of money will always be greater than or equal to the value of price.
Question: :
a. Draw a state machine to illustrate your implementation in pdf format (state_vm. pdf). Test your design for various combinations of the inputs.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:10
Which from the following instrument is commonly used to detect the high pitch butzing sound in bearings? [clo4] a)-digital ultrasonic meter b)-infrared camera c)-spectroscopic d)-vibrometer
Answers: 2
question
Engineering, 04.07.2019 18:10
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
question
Engineering, 04.07.2019 18:20
Avolume of 2.65 m3 of air in a rigid, insulated container fitted with a paddle wheel is initially at 264 k, 5.6 bar. the air receives 432 kj by work from the paddle wheel. assuming the ideal gas model with cv = 0.71 kj/kg • k, determine for the air the amount of entropy produced, in kj/k
Answers: 2
You know the right answer?
You are asked to develop controller logic for a food vending machine that is to be deployed in Elect...
Questions
question
Mathematics, 14.07.2020 20:01
Questions on the website: 13722361