]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
checking when 27= '1' ("just" at the end of synch).
authorpalka <palka>
Sat, 31 May 2008 08:10:18 +0000 (08:10 +0000)
committerpalka <palka>
Sat, 31 May 2008 08:10:18 +0000 (08:10 +0000)
optical_link/flexi_PCS_channel_synch.vhd

index 6b7dbd81f7cc86bde8538683118c95b91cf0346e..9fdb358f44c09f0f339b71cd91a7df3d86a1dabd 100644 (file)
@@ -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;