Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- You dont enable the clock - you enable the logic. The clock is always running. --- Quote End --- process(clk) begin if rising_edge(clk) then if en = '1' then --only high once every 50 clocks --logic with 1/50 clock end if; end if; end process; so when enable is '1' , am I suppose to output a '1'?? Cause the above code doesn't do anything in the if condition. If is it like that, how is it different from what I was doing? Isn't it still counting and outputting a pulsing signal.