subject
Engineering, 06.05.2020 04:14 emilystartk

Design and implement a finite state machine that controls a vending machine. The vending machine sells packages of gum that cost 15 cents each. The machine accepts nickels (5 cents) and dimes (10 cents). After someone has inserted 15 cents, the FSM will send an output signal to a mechanical system that releases a package of gum. If a customer inserts 20 cents (two dimes), they will get a pack of gum but they will not receive any change back.
In addition to standard reset and clock signals, your FSM will have two input signals: N and D. N is asserted when the customer has inserted a nickel and D is asserted when the customer inserts a dime. (You can assume that both can never be asserted at the same time.) The system has one output Y, which indicates that the mechanical system should dispense the gum. After the system outputs Y = 1 for one clock cycle, it returns to its initial state for the next customer.
(a) Draw a Moore-style state diagram that shows the function of your system. (Hint: you can do it in only four states.)
(b) Choose a state encoding to use and indicate it clearly. Use full binary encoding, that is, make your four states have values 00, 01, 10, and 11. Here, give a table that shows which encoding value you will use for each of the states in your state machine.
(c) Draw the binary encoded state table. That is, make a table that shows how Q1^+, Q0^+, and Y relate to Q1, Q0, N, and D.
(d) Write and simplify Boolean expressions for Q1^+, Q0^+, and Y.
(e) Draw the final FSM implementation using two D flip-flops and gates. Don't forget about the system's reset.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Refrigerant 134a enters an insulated compressor operating at steady state as saturated vapor at -26°c with a volumetric flow rate of 0.18 m3/s. refrigerant exits at 9 bar, 70°c. changes in kinetic and potential energy from inlet to exit can be ignored. determine the volumetric flow rate at the exit, in m3/s, and the compressor power, in kw.
Answers: 1
question
Engineering, 04.07.2019 18:10
What are the two (02) benefits, which may result from a successful implementation of preventive maintenance (pm) program in an organization? (clo3)a)- lean manufacturing b)-overlapping responsibilities c)-the planner is not qualified d)-accurate contractor information e)-reduction in equipment redundancies f)-accurate stores information
Answers: 3
question
Engineering, 04.07.2019 18:20
Inadequate stores control is not an obstacle to effective work order system. (clo4) a)-true b)-false
Answers: 3
question
Engineering, 06.07.2019 03:10
Tom is having a problem with his washing machine. he notices that the machine vibrates violently at a frequency of 1500 rpm due to an unknown rotating unbalance. the machine is mounted on 4 springs each having a stiffness of 10 kn/m. tom wishes to add an undamped vibration absorber attached by a spring under the machine the machine working frequency ranges between 800 rpm to 2000 rpm and its total mass while loaded is assumed to be 80 kg. a) what should be the mass of the absorber added to the machine so that the natural frequency falls outside the working range? b) after a first trial of an absorber using a mass of 35 kg, the amplitude of the oscillation was found to be 10 cm. what is the value of the rotating unbalance? c) using me-3.5 kg.m, find the optimal absorber (by minimizing its mass). what would be the amplitude of the oscillation of the absorber?
Answers: 1
You know the right answer?
Design and implement a finite state machine that controls a vending machine. The vending machine sel...
Questions
question
Mathematics, 01.04.2021 03:10
question
Mathematics, 01.04.2021 03:10
question
Biology, 01.04.2021 03:10
question
Mathematics, 01.04.2021 03:10
question
History, 01.04.2021 03:10
question
World Languages, 01.04.2021 03:10
question
Mathematics, 01.04.2021 03:10
Questions on the website: 13722361