Author: matt
Date: 2007-06-26 22:35:56 -0600 (Tue, 26 Jun 2007)
New Revision: 5851

Modified:
   gnuradio/branches/developers/matt/u2f/control_lib/serdes_rx.v
Log:
runaway packets will now trigger an error and then quit


Modified: gnuradio/branches/developers/matt/u2f/control_lib/serdes_rx.v
===================================================================
--- gnuradio/branches/developers/matt/u2f/control_lib/serdes_rx.v       
2007-06-27 00:32:02 UTC (rev 5850)
+++ gnuradio/branches/developers/matt/u2f/control_lib/serdes_rx.v       
2007-06-27 04:35:56 UTC (rev 5851)
@@ -112,8 +112,13 @@
                end
           end
         
-        PKT : 
-          if(chosen_data == {2'b11,K_PKT_END,K_PKT_END})
+        PKT :
+          if(fifo_full_i | ~fifo_ready_i)
+            begin
+               data_valid <= 0;
+               state <= ERROR;
+            end
+          else if(chosen_data == {2'b11,K_PKT_END,K_PKT_END})
             if(~phase)
               begin
                  state <= CRC_CHECK;



_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio

Reply via email to