3 use ieee.std_logic_1164.all;
4 use ieee.std_logic_unsigned.all;
8 divider : std_logic_vector(31 downto 0) := X"01F78A40"
13 nrst_i : in std_logic;
19 architecture rtl of heartbeat is
22 process(clk_i, nrst_i)
23 variable counter : std_logic_vector(31 downto 0);
24 variable state : std_logic := '0';
27 if (clk_i'event AND clk_i = '1') then
29 counter := (others => '0');
32 counter := counter + 1;
33 if counter = divider then
35 counter := (others => '0');