commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r5851 - gnuradio/branches/developers/matt/u2f/control_


From: matt
Subject: [Commit-gnuradio] r5851 - gnuradio/branches/developers/matt/u2f/control_lib
Date: Tue, 26 Jun 2007 22:35:56 -0600 (MDT)

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;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]