Forum Discussion
Altera_Forum
Honored Contributor
14 years agoVhdl codes for counter to start and purse
Hi, I need urgent help on how to design a stopwatch that can stop/purse using vhdl code. I will really appreciate any urgent reply to this. Thanks. Waiting for your replies.
Altera_Forum
Honored Contributor
14 years agoin that case it should not be called clock enable.
-- on clock edge if sw = '1' then toggle <= not toggle; end if; if toggle = '1' then count <= 0; else count up... you will need to manage the logic of various switches now with care otherwise they might get in conflict. This where simulations helps.