Forum Discussion
Altera_Forum
Honored Contributor
16 years agoproblem
hello i do a clock to 24 hours in vhdl. i am using cyclone 2. I do vhdl files, test them with model sim, after that the comipations goes on with warnings, but it do not work on the fpga ? why...
Altera_Forum
Honored Contributor
16 years agoUse the 50Mhz clock. Never use derived clocks (unless you use a PLL)
The template you should use for enabled registers is this:
process(clk_50MHz, reset)
begin
if reset = '1' then
--reset D
elsif rising_edge(clk_50MHz) then
if enable = '1' then --this can be things like "enable minute" or something
q <= d;
end if;
end if;
end process;