diff options
author | Ian Buckley <ianb@server2.(none)> | 2010-08-19 17:30:31 -0700 |
---|---|---|
committer | Ian Buckley <ianb@server2.(none)> | 2010-08-19 17:30:31 -0700 |
commit | 620d22dc6ad3ca1d9343eb7535ec2e0694be36b1 (patch) | |
tree | d6783903093e58b80389631ffac65d4005f57e7e /usrp2/extramfifo | |
parent | 0e8a978c90c5793374861f29f72517f0070e596a (diff) | |
download | uhd-620d22dc6ad3ca1d9343eb7535ec2e0694be36b1.tar.gz uhd-620d22dc6ad3ca1d9343eb7535ec2e0694be36b1.tar.bz2 uhd-620d22dc6ad3ca1d9343eb7535ec2e0694be36b1.zip |
Added capacity to the module pinout
Diffstat (limited to 'usrp2/extramfifo')
-rw-r--r-- | usrp2/extramfifo/nobl_fifo.v | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usrp2/extramfifo/nobl_fifo.v b/usrp2/extramfifo/nobl_fifo.v index 19f5fb84e..cec2a5c4b 100644 --- a/usrp2/extramfifo/nobl_fifo.v +++ b/usrp2/extramfifo/nobl_fifo.v @@ -24,10 +24,11 @@ module nobl_fifo output reg space_avail, output [WIDTH-1:0] read_data, input read_strobe, // Triggers a read, result in approximately 6 cycles. - output data_avail // Qulaifys read data available this cycle on read_data. + output data_avail, // Qulaifys read data available this cycle on read_data. + output reg [FIFO_DEPTH-1:0] capacity ); - reg [FIFO_DEPTH-1:0] capacity; + //reg [FIFO_DEPTH-1:0] capacity; reg [FIFO_DEPTH-1:0] wr_pointer; reg [FIFO_DEPTH-1:0] rd_pointer; wire [RAM_DEPTH-1:0] address; @@ -43,7 +44,7 @@ module nobl_fifo always @(posedge clk) if (rst) begin - capacity <= 1 << (FIFO_DEPTH-1); + capacity <= (1 << FIFO_DEPTH) - 1; wr_pointer <= 0; rd_pointer <= 0; space_avail <= 0; |