aboutsummaryrefslogtreecommitdiffstats
path: root/usrp2/extramfifo/ext_fifo.v
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2010-11-11 18:44:43 -0800
committerMatt Ettus <matt@ettus.com>2010-11-11 18:44:43 -0800
commit12c8995014a625aab9a7614d9b146876fbf81268 (patch)
tree83b24f392cd8e886d0d7a20f7972affd5d37b9b1 /usrp2/extramfifo/ext_fifo.v
parent7fd21927c3c5d8d95eed7ff66ed1a060c9affad2 (diff)
downloaduhd-12c8995014a625aab9a7614d9b146876fbf81268.tar.gz
uhd-12c8995014a625aab9a7614d9b146876fbf81268.tar.bz2
uhd-12c8995014a625aab9a7614d9b146876fbf81268.zip
fifo randomizer for emi
Diffstat (limited to 'usrp2/extramfifo/ext_fifo.v')
-rw-r--r--usrp2/extramfifo/ext_fifo.v11
1 files changed, 9 insertions, 2 deletions
diff --git a/usrp2/extramfifo/ext_fifo.v b/usrp2/extramfifo/ext_fifo.v
index daf7140bc..80f82fc63 100644
--- a/usrp2/extramfifo/ext_fifo.v
+++ b/usrp2/extramfifo/ext_fifo.v
@@ -45,7 +45,7 @@ module ext_fifo
wire [EXT_WIDTH-1:0] write_data;
wire [EXT_WIDTH-1:0] read_data;
wire full1, empty1;
- wire almost_full2, full2, empty2;
+ wire almost_full2, almost_full2_spread, full2, empty2;
wire [FIFO_DEPTH-1:0] capacity;
wire space_avail;
wire data_avail;
@@ -83,7 +83,7 @@ module ext_fifo
.write_strobe(~empty1 ),
.space_avail(space_avail),
.read_data(read_data),
- .read_strobe(~almost_full2),
+ .read_strobe(~almost_full2_spread),
.data_avail(data_avail),
.capacity(capacity)
);
@@ -148,6 +148,13 @@ module ext_fifo
endgenerate
+ refill_randomizer #(.BITS(7))
+ refill_randomizer_i1 (
+ .clk(ext_clk),
+ .rst(rst),
+ .full_in(almost_full2),
+ .full_out(almost_full2_spread)
+ );
// always @ (posedge int_clk)
// debug[31:28] <= {empty2,full1,dst_rdy_i,src_rdy_i };