Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Can someone who is interested (and knows how to do it) modificate this last version with the so called clock enabling version (plus initializing temp1/temp2). Is it dificult? I ask this because I don´t know how to do at this time (I will look for good books or expect someone recommend one...). --- Quote End --- Ill give you the outline - its very similar to what you're doing:
process(clk)
begin
if rising_edge(clk) then
cnt <= cnt + 1;
if cnt = N then -- this will give you an enable rate of clk/N
clk_en <= '1';
else
clk_en <= '0';
end if;
if clk_en = '1' then
--do something once every N clocks
end if;
end process;