Forum Discussion
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.