Hi
I'm working on a vending machine project. The VHDL code for the entity is in this pastie:
(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 everytime a button is pressed.
So far, I have tried different solutions myself, but none seem to work.
I'm working on a vending machine project. The VHDL code for the entity is in this pastie:
(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 everytime a button is pressed.
So far, I have tried different solutions myself, but none seem to work.