2 use IEEE.STD_LOGIC_1164.all;
3 use IEEE.STD_LOGIC_ARITH.all;
4 use IEEE.STD_LOGIC_UNSIGNED.all;
6 --------------------------------------------------------------------------------
7 -- This module divides the incoming clock by 2^20 and outputs the 20th bit of
8 -- the counter as clk_2k.
9 --------------------------------------------------------------------------------
14 clk_2k : out std_logic);
17 --------------------------------------------------------------------------------
19 architecture Behavioral of div_20 is
21 signal count : std_logic_vector (19 downto 0);
27 if(clk'event and clk = '1') then
28 count <= count + "00000000000000000001";