[PSD12] Exercise 3.26 #185
Replies: 6 comments
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
@Elia-Belli |
Beta Was this translation helpful? Give feedback.
-
Utilizzando Mealy l'ho pensata così: |
Beta Was this translation helpful? Give feedback.
-
@Elia-Belli |
Beta Was this translation helpful? Give feedback.
-
Exercise 3.26
You have been enlisted to design a soda machine dispenser for your department lounge. Sodas are partially subsidized by the student chapter of the IEEE, so they cost only 25 cents. The machine accepts nickels (5 cents), dimes (10 cents), and quarters (25 cents). When enough coins have been inserted, it dispenses the soda and returns any necessary change. Design an FSM controller for the soda machine. The FSM inputs are Nickel, Dime, and Quarter, indicating which coin was inserted. Assume that exactly one coin is inserted on each cycle. The outputs are Dispense, ReturnNickel, ReturnDime, and ReturnTwoDimes. When the FSM reaches 25 cents, it asserts Dispense and the necessary Return outputs required to deliver the appropriate change. Then it should be ready to start accepting coins for another soda.
Beta Was this translation helpful? Give feedback.
All reactions