]> git.zerfleddert.de Git - raggedstone/blobdiff - heartbeat/source/heartbeat.vhd
use rising_edge(clk_i)
[raggedstone] / heartbeat / source / heartbeat.vhd
index a1a181fa7bff4f971438d36f4f1f481375cc07fb..03a465bd9ed843684ec096894e4fbddf74a5745e 100644 (file)
@@ -28,7 +28,7 @@ variable state : std_logic_vector(3 downto 0) := "0001";
 variable direction : std_logic := '0';
 begin
 
-if (clk_i'event AND clk_i = '1') then
+if (rising_edge(clk_i)) then
        if nrst_i = '0' then
                counter := (others => '0');
         else
Impressum, Datenschutz