peter92
Newbie level 3
- Joined
- Dec 3, 2012
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,307
Hi
Not sure if I'm posting this the right place, but here goes:
I'm working on a vending machine project. The VHDL code for the entity is in this pastie:
http://pastie.org/5475527
I need some help with getting the system to do what I want. As it is now, when one of the coin-buttons are pressed, the sum-so-far will keep on incrementing every clock cycle for as long as the button is pressed.
I would like for the system to increment the sum only once every time a button is pressed.
So far, I have tried different solutions myself, but none seem to work.
Not sure if I'm posting this the right place, but here goes:
I'm working on a vending machine project. The VHDL code for the entity is in this pastie:
http://pastie.org/5475527
I need some help with getting the system to do what I want. As it is now, when one of the coin-buttons are pressed, the sum-so-far will keep on incrementing every clock cycle for as long as the button is pressed.
I would like for the system to increment the sum only once every time a button is pressed.
So far, I have tried different solutions myself, but none seem to work.