From 9843749ca53fa172669d1864b3b754828b851bad Mon Sep 17 00:00:00 2001 From: palka Date: Sat, 31 May 2008 08:10:18 +0000 Subject: [PATCH] checking when 27= '1' ("just" at the end of synch). --- optical_link/flexi_PCS_channel_synch.vhd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.43.0