Forum Discussion
Altera_Forum
Honored Contributor
12 years agoThe problem is, you're generating a clock. You should never generate a clock. You should clock all logic with mclk. Then use clock_en to activate it:
process(mclk)
begin
if rising_edge(mclk) then
if clk_en = '1' then
--only do something when clk_en is active, say 1 in every 50
end if;
end if;
end process;
So this way divides your clock without having any problems associated with a generated clock.