From: hadeshyp Date: Tue, 18 Jan 2011 13:51:57 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: oldGBE~131 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=5ba81336aeb8a571a7887b839157c2bd279d46f1;p=trbnet.git *** empty log message *** --- diff --git a/special/handler_lvl1.vhd b/special/handler_lvl1.vhd index 7586d8a..3166950 100644 --- a/special/handler_lvl1.vhd +++ b/special/handler_lvl1.vhd @@ -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;