From: palka Date: Sat, 31 May 2008 08:10:18 +0000 (+0000) Subject: checking when 27= '1' ("just" at the end of synch). X-Git-Tag: oldGBE~556 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=9843749ca53fa172669d1864b3b754828b851bad;p=trbnet.git checking when 27= '1' ("just" at the end of synch). --- diff --git a/optical_link/flexi_PCS_channel_synch.vhd b/optical_link/flexi_PCS_channel_synch.vhd index 6b7dbd8..9fdb358 100644 --- a/optical_link/flexi_PCS_channel_synch.vhd +++ b/optical_link/flexi_PCS_channel_synch.vhd @@ -374,7 +374,7 @@ begin resync_counter_clr <= '0'; if resync_counter(27) = '1' and rxd_synch_i = x"bc50" and rx_k_synch_i(1) = '1' then SYNCH_NEXT <= NORMAL_OPERATION_1; - elsif rxd_synch_i /= x"bc50" or rx_k_synch_i(1) = '0' then + elsif resync_counter(27) and (rxd_synch_i /= x"bc50" or rx_k_synch_i(1) = '0') then SYNCH_NEXT <= RESYNC1; else SYNCH_NEXT <= WAIT_1; @@ -388,7 +388,7 @@ begin resync_counter_clr <= '0'; if resync_counter(27) = '1' and rxd_synch_i = x"50bc" and rx_k_synch_i(0) = '1' then SYNCH_NEXT <= NORMAL_OPERATION_2; - elsif rxd_synch_i /= x"50bc" or rx_k_synch_i(0) = '0' then + elsif resync_counter(27) = '1'and (rxd_synch_i /= x"50bc" or rx_k_synch_i(0) = '0') then SYNCH_NEXT <= RESYNC1; else SYNCH_NEXT <= WAIT_2;