commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r8717 - usrp2/trunk/fpga/control_lib


From: matt
Subject: [Commit-gnuradio] r8717 - usrp2/trunk/fpga/control_lib
Date: Wed, 25 Jun 2008 23:06:41 -0600 (MDT)

Author: matt
Date: 2008-06-25 23:06:38 -0600 (Wed, 25 Jun 2008)
New Revision: 8717

Modified:
   usrp2/trunk/fpga/control_lib/shortfifo.v
Log:
now reports how much space left as well as how full it is


Modified: usrp2/trunk/fpga/control_lib/shortfifo.v
===================================================================
--- usrp2/trunk/fpga/control_lib/shortfifo.v    2008-06-26 00:31:43 UTC (rev 
8716)
+++ usrp2/trunk/fpga/control_lib/shortfifo.v    2008-06-26 05:06:38 UTC (rev 
8717)
@@ -9,7 +9,8 @@
      input clear,
      output reg full,
      output reg empty,
-     output [3:0] space);
+     output [3:0] space,
+     output [3:0] occupied);
    
    reg [3:0]     a;
    genvar        i;
@@ -57,5 +58,6 @@
    // NOTE will fail if you write into a full fifo or read from an empty one
 
    assign space = full ? 0 : empty ? 15 : 15-a;
+   assign occupied = empty ? 0 : full ? 15 : a+1;
    
 endmodule // shortfifo





reply via email to

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