[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r9091 - usrp2/trunk/fpga/control_lib
From: |
matt |
Subject: |
[Commit-gnuradio] r9091 - usrp2/trunk/fpga/control_lib |
Date: |
Thu, 31 Jul 2008 20:15:00 -0600 (MDT) |
Author: matt
Date: 2008-07-31 20:15:00 -0600 (Thu, 31 Jul 2008)
New Revision: 9091
Modified:
usrp2/trunk/fpga/control_lib/shortfifo.v
Log:
more accurate full/empty counts, which leads to it being 1 bit wider
Modified: usrp2/trunk/fpga/control_lib/shortfifo.v
===================================================================
--- usrp2/trunk/fpga/control_lib/shortfifo.v 2008-08-01 02:09:38 UTC (rev
9090)
+++ usrp2/trunk/fpga/control_lib/shortfifo.v 2008-08-01 02:15:00 UTC (rev
9091)
@@ -9,8 +9,8 @@
input clear,
output reg full,
output reg empty,
- output [3:0] space,
- output [3:0] occupied);
+ output [4:0] space,
+ output [4:0] occupied);
reg [3:0] a;
genvar i;
@@ -57,7 +57,7 @@
// 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;
+ assign space = full ? 0 : empty ? 16 : 15-a;
+ assign occupied = empty ? 0 : full ? 16 : a+1;
endmodule // shortfifo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r9091 - usrp2/trunk/fpga/control_lib,
matt <=