]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Tue, 18 Jan 2011 13:51:57 +0000 (13:51 +0000)
committerhadeshyp <hadeshyp>
Tue, 18 Jan 2011 13:51:57 +0000 (13:51 +0000)
special/handler_lvl1.vhd

index 7586d8ae3ac9ef1fccbd786da9cc8888920613b6..316695077624eb6cc6ddc6e9d5541fc339361eba 100644 (file)
@@ -499,10 +499,12 @@ end process COUNT_EDGES_AND_LENGTH_PROC;
 -- gk 29.09.10
 WRONG_POLAR_PROC : process(CLOCK)
 begin
-       if (RESET = '1') or (RESET_STATS_IN = '1') then
-               wrong_polarity <= '0';
-       elsif (trigger_length > 100) then
-               wrong_polarity <= '1';
+  if rising_edge(CLOCK) then
+    if (RESET = '1') or (RESET_STATS_IN = '1') then
+      wrong_polarity <= '0';
+    elsif (trigger_length > 100) then
+      wrong_polarity <= '1';
+    end if;
        end if;
 end process WRONG_POLAR_PROC;