Altera_Forum
Honored Contributor
11 years agotask-to stop counter when it reaches "0000"
4 bit down counter
... ... architecture behavioral of dwncounter is signal counter<= std_logic_vector(3 downto 0); begin process(clk, rst) begin if (rst='1') then counter<="0000"; elsif rising_edge(clk) then if(enable='1') then counter<=counter-1; end if; end if the task is to stop counter when it reaches "0000" i.e; the signal sholud go low even if the enable signal is high. plzz help...