Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThink about the circuit before thinking about the VHDL.
All you need is a register (one for each button) and a comparitor to compare the registered button press (the old one) and the current one. Assuming you have an active low button:
--inside clocked process
if button_reg = '1' and button = '0' then --falling edge detect
--do something
end if;