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



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

Reply via email to