]> cvs.zerfleddert.de Git - raggedstone/commitdiff
use rising_edge(clk_i)
authormichael <michael>
Sat, 3 Mar 2007 10:40:32 +0000 (10:40 +0000)
committermichael <michael>
Sat, 3 Mar 2007 10:40:32 +0000 (10:40 +0000)
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