process (clk_80, rst)begin if (rst='1')then cnt <= x"28"; -- / 40 else if (clk_80'event and clk_80 = '1') then if cnt == x"00" then cnt <= x"28"; clk_1MHz<= not clk_1MHz; else cnt <= cnt - x"01"; end if; end if; end if;end process;