2 use ieee.std_logic_1164.all;
\r
3 use work.math_pkg.all;
\r
5 entity debounce_fsm is
\r
8 RESET_VALUE : std_logic;
\r
9 CNT_MAX : integer range 2 to integer'high
\r
13 sys_clk : in std_logic;
\r
14 sys_res_n : in std_logic;
\r
16 cnt : in std_logic_vector(log2c(CNT_MAX) - 1 downto 0);
\r
17 clear_cnt : out std_logic;
\r
20 end entity debounce_fsm;
\r