aboutsummaryrefslogtreecommitdiffstats
path: root/usrp2/extramfifo
diff options
context:
space:
mode:
authorIan Buckley <ianb@server2.(none)>2010-08-19 17:28:07 -0700
committerMatt Ettus <matt@ettus.com>2010-11-11 12:06:12 -0800
commit9bfab308d55c2b253f1ec9f0c998ee9920e0468f (patch)
tree0e7c845f6995582209c1427f3ac13dea2f78241e /usrp2/extramfifo
parentd4b6fa72eb3fec872a41dea136a5845d3c6ff1ec (diff)
downloaduhd-9bfab308d55c2b253f1ec9f0c998ee9920e0468f.tar.gz
uhd-9bfab308d55c2b253f1ec9f0c998ee9920e0468f.tar.bz2
uhd-9bfab308d55c2b253f1ec9f0c998ee9920e0468f.zip
Added a bunch of debug signals.
Diffstat (limited to 'usrp2/extramfifo')
-rw-r--r--usrp2/extramfifo/ext_fifo.v14
-rw-r--r--usrp2/extramfifo/ext_fifo_tb.cmd1
2 files changed, 12 insertions, 3 deletions
diff --git a/usrp2/extramfifo/ext_fifo.v b/usrp2/extramfifo/ext_fifo.v
index c6a64fc65..b17fde10b 100644
--- a/usrp2/extramfifo/ext_fifo.v
+++ b/usrp2/extramfifo/ext_fifo.v
@@ -37,7 +37,8 @@ module ext_fifo
output dst_rdy_o, // not FULL
output [INT_WIDTH-1:0] dataout,
output src_rdy_o, // not EMPTY
- input dst_rdy_i // READ
+ input dst_rdy_i, // READ
+ output reg [31:0] debug
);
wire [EXT_WIDTH-1:0] write_data;
@@ -46,7 +47,8 @@ module ext_fifo
wire almost_full2, full2, empty2;
wire [INT_WIDTH-1:0] data_to_fifo;
wire [INT_WIDTH-1:0] data_from_fifo;
-
+ wire [FIFO_DEPTH-1:0] capacity;
+
// FIFO buffers data from UDP engine into external FIFO clock domain.
fifo_xlnx_512x36_2clk_36to18 fifo_xlnx_512x36_2clk_36to18_i1 (
@@ -88,7 +90,8 @@ module ext_fifo
.space_avail(space_avail),
.read_data(read_data),
.read_strobe(~almost_full2),
- .data_avail(data_avail)
+ .data_avail(data_avail),
+ .capacity(capacity)
);
`endif // !`ifdef NO_EXT_FIFO
@@ -107,5 +110,10 @@ module ext_fifo
.empty(empty2));
assign src_rdy_o = ~empty2;
+ always @ (posedge int_clk)
+ debug[31:16] = {12'h0,empty2,full1,dst_rdy_i,src_rdy_i };
+
+ always @ (posedge ext_clk)
+ debug[15:0] = {3'h0,empty1,space_avail,data_avail,full2,almost_full2,capacity[7:0] };
endmodule // ext_fifo
diff --git a/usrp2/extramfifo/ext_fifo_tb.cmd b/usrp2/extramfifo/ext_fifo_tb.cmd
index b0ab830dc..521f88f21 100644
--- a/usrp2/extramfifo/ext_fifo_tb.cmd
+++ b/usrp2/extramfifo/ext_fifo_tb.cmd
@@ -1,6 +1,7 @@
/opt/Xilinx/12.1/ISE_DS/ISE/verilog/src/glbl.v
-y .
-y ../coregen/
+-y ../fifo
-y ../models
-y /home/ianb/usrp-fpga/usrp2/sdr_lib
-y /home/ianb/usrp-fpga/usrp2/control_lib