From 5ba81336aeb8a571a7887b839157c2bd279d46f1 Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Tue, 18 Jan 2011 13:51:57 +0000 Subject: [PATCH] *** empty log message *** --- special/handler_lvl1.vhd | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; -- 2.43.0