Need help for Vending machine using verilog code

Status
Not open for further replies.

Aquaa Marine

Newbie level 3
Joined
Apr 7, 2014
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
20
Hello..
I need to design a vending machine which can accept 10tk, 20tk n 50tk only. It will dispense chocolate, chips n bar.
Inputs,
Select 1 for chocolate,
Select 2 for chips,
Select 3 for bar
and they cost 10tk, 20tk n 30 tk respectively..
Now I am not understanding how to do coding if I select 3 (as in I want a bar) n put 50 Tk, then I will get the bar ( Not chocolate/ chips) with exchange 20 tk.

Hope I will get some help asap.
Thanks
 
Last edited:

What have you done so far?

Have you identified the interfaces, tables, and main blocks of logic?

Interfaces might be;
-coin release detection
-selection activation
-coin dispenser [for making change]
-coin detection and value
-display panel
 

Yes. I have done those. Started working on the coding as well. But got stuck and can not sort it out..
 

Unable to get ur point.. show ur code snippet where u are facing problem so that we might help u out!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…