commit-gnuradio
[Top][All Lists]
Advanced

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

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


From: matt
Subject: [Commit-gnuradio] r6034 - gnuradio/branches/developers/matt/u2f/control_lib
Date: Thu, 19 Jul 2007 18:06:14 -0600 (MDT)

Author: matt
Date: 2007-07-19 18:06:14 -0600 (Thu, 19 Jul 2007)
New Revision: 6034

Modified:
   gnuradio/branches/developers/matt/u2f/control_lib/shortfifo.v
Log:
fixed subtle bug


Modified: gnuradio/branches/developers/matt/u2f/control_lib/shortfifo.v
===================================================================
--- gnuradio/branches/developers/matt/u2f/control_lib/shortfifo.v       
2007-07-20 00:05:34 UTC (rev 6033)
+++ gnuradio/branches/developers/matt/u2f/control_lib/shortfifo.v       
2007-07-20 00:06:14 UTC (rev 6034)
@@ -34,11 +34,11 @@
        else
         a <= a - 1;
      else if(write & ~read)
-       begin
-         a <= a + 1;
-         empty <= 0;
-       end
+       if(empty)
+        empty <= 0;
+       else
+        a <= a + 1;
    
    assign full = (a == 15);
-   
+   // FIXME will wrap if you write into a full fifo
 endmodule // shortfifo





reply via email to

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