Forum Discussion
Altera_Forum
Honored Contributor
10 years agohelp me through vhdl code
Vending machine The vending machine dispenses two items: a can of soda or a candy bar. The can of soda costs $7 while the candy bar costs $4. 1. There is an input select for each product an...
Altera_Forum
Honored Contributor
10 years agoI'd suggest to design your state machine on paper first, defining your different states and transitions. Then it will be easier to translate it into VHDL code.
As I side note I find those prices expensive. If the point is to prevent people from eating and drinking unhealthy food you should also consider distributing fruits and vegetable snacks.