diff options
author | Ian Buckley <ianb@server2.(none)> | 2010-09-01 00:45:40 -0700 |
---|---|---|
committer | Ian Buckley <ianb@server2.(none)> | 2010-09-01 00:45:40 -0700 |
commit | 09c0420f9068187e5e4146254c7ea769b9c69186 (patch) | |
tree | 4e7a367e73e9f923f94c305abfcba760a3cd47f4 /usrp2/extramfifo/nobl_fifo.v | |
parent | f18bf439ad1456452532285eedd131c54065213c (diff) | |
parent | 596fc8d80ed2200f6d4bb597cb7185b63cf0be77 (diff) | |
download | uhd-09c0420f9068187e5e4146254c7ea769b9c69186.tar.gz uhd-09c0420f9068187e5e4146254c7ea769b9c69186.tar.bz2 uhd-09c0420f9068187e5e4146254c7ea769b9c69186.zip |
Merge branch 'efifo_merge' of git@ettus.sourcerepo.com:ettus/fpgapriv into efifo_merge
Diffstat (limited to 'usrp2/extramfifo/nobl_fifo.v')
-rw-r--r-- | usrp2/extramfifo/nobl_fifo.v | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usrp2/extramfifo/nobl_fifo.v b/usrp2/extramfifo/nobl_fifo.v index 62229e6c2..4c009d980 100644 --- a/usrp2/extramfifo/nobl_fifo.v +++ b/usrp2/extramfifo/nobl_fifo.v @@ -47,7 +47,7 @@ module nobl_fifo capacity <= (1 << FIFO_DEPTH) - 1; wr_pointer <= 0; rd_pointer <= 0; - space_avail <= 0; + space_avail <= 1; data_avail_int <= 0; end else @@ -56,7 +56,7 @@ module nobl_fifo // Capacity is already zero; Capacity is 1 and write is asserted (lookahead); both read and write are asserted (collision) space_avail <= ~((capacity == 0) || (read&&write) || ((capacity == 1) && write) ); // Capacity has 1 cycle delay so look ahead here for corner case of read of last item in FIFO. - data_avail_int <= ~((capacity == ((1 << FIFO_DEPTH)-1)) || ((capacity == ((1 << FIFO_DEPTH)-2)) && read) ); + data_avail_int <= ~((capacity == ((1 << FIFO_DEPTH)-1)) || ((capacity == ((1 << FIFO_DEPTH)-2)) && (~write && read)) ); wr_pointer <= wr_pointer + write; rd_pointer <= rd_pointer + (~write && read); capacity <= capacity - write + (~write && read) ; |