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
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
question
Engineering, 04.07.2019 18:10
Items are similar to the free issue items, but their access is limited. (clo5) a)-bin stock items free issue b)-bin stock controlled issue c)-critical or insurance spares d)-rebuildable spares e)-consumables
Answers: 1
question
Engineering, 04.07.2019 19:20
To save energy, the air supply to a 2000 ft office has been shut off overnight and the room temperature has dropped to 40°f. in the morning, the thermostat is reset to 70°f and warm air at 120 f begins to flov in at 200ft'/min. the air is well mixed within the room, and an equal mass flow of air at room temperature (changing with time) is withdrawn through a return duct. the air pressure is nearly 1 atm everywhere. ignoring heat transfer with the surroundings and kinetic and potential energy effects, estimate how long it takes for the room temperature to reach 70°f. plot the room temperature as a function of time.
Answers: 1
question
Engineering, 06.07.2019 02:30
Plot schematically the tensile stress versus strain curves for a typical thermoplastic material at a temperature below its glass transition temperature (tg and at a temperature above its tg, respectively. do the same for a typical thermosetting material. list in a table any differences or similarities between the two materials at t> tg and t < tg, respectively, and relate them to the structures of the two types of polymers
Answers: 3
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
Chemistry, 16.11.2020 16:30
question
English, 16.11.2020 16:30
Questions on the website: 13722367