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;
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;