Forum Discussion
Altera_Forum
Honored Contributor
12 years agoyou generate it, like you would any enable:
signal cnt : unsigned(7 downto 0);
process(clk, reset)
begin
if reset = '1' then
cnt <= x"00";
en <= '0';
elsif rising_edge(clk) then
--Create an enable that is high once every 256 clocks
if cnt = 0 then
en <= '1';
else
en <= '0';
end if;
cnt <= cnt + 1;
end if;
end process;