From 8b41d8bd728c2bedee3d23a3870e3db385d5fec6 Mon Sep 17 00:00:00 2001 From: Michael Boehmer Date: Fri, 26 Jun 2020 08:49:33 +0200 Subject: [PATCH] fixed missing rising_edge() line in timer --- media_interfaces/sync/rx_reset_fsm.vhd | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/media_interfaces/sync/rx_reset_fsm.vhd b/media_interfaces/sync/rx_reset_fsm.vhd index 9d016e3..fd71f6d 100644 --- a/media_interfaces/sync/rx_reset_fsm.vhd +++ b/media_interfaces/sync/rx_reset_fsm.vhd @@ -67,15 +67,17 @@ sync_sfp_sigs : entity work.signal_sync THE_TIMER2_PROC: process( RX_REFCLK ) begin - if reset_timer2 = '1' then - counter2 <= (others => '0'); - timer2 <= '0'; - else - if counter2(count_index) = '1' then - timer2 <= '1'; - else + if( rising_edge(RX_REFCLK) ) then + if reset_timer2 = '1' then + counter2 <= (others => '0'); timer2 <= '0'; - counter2 <= counter2 + 1 ; + else + if counter2(count_index) = '1' then + timer2 <= '1'; + else + timer2 <= '0'; + counter2 <= counter2 + 1 ; + end if; end if; end if; end process THE_TIMER2_PROC; @@ -120,7 +122,7 @@ begin when RX_SERDES_RESET => rx_pcs_rst_ch_c_int <= '1'; rx_serdes_rst_ch_c_int <= '1'; - ns <= WAIT_FOR_timer1; + ns <= WAIT_FOR_TIMER1; STATE_OUT <= x"2"; when WAIT_FOR_TIMER1 => -- 2.43.0