summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-02-23 17:40:39 +0000
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-02-23 17:40:39 +0000
commit9bbb4213a9d3c212b8a911e9aa13069bf6c37d1f (patch)
tree5c1cc3f6d02bc3026f8179fec7eb302ef1ef4881
parent0d55613e54c60ef90cbd28fc83a837f02060c19d (diff)
downloaduhd-9bbb4213a9d3c212b8a911e9aa13069bf6c37d1f.tar.gz
uhd-9bbb4213a9d3c212b8a911e9aa13069bf6c37d1f.tar.bz2
uhd-9bbb4213a9d3c212b8a911e9aa13069bf6c37d1f.zip
support for unmodified dbsrx boards
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10482 221aa14e-8319-0410-a670-987f0aec2ac5
-rwxr-xr-xtop/u2_core/u2_core.v10
1 files changed, 9 insertions, 1 deletions
diff --git a/top/u2_core/u2_core.v b/top/u2_core/u2_core.v
index 09fd6e7e5..9653ff10d 100755
--- a/top/u2_core/u2_core.v
+++ b/top/u2_core/u2_core.v
@@ -375,10 +375,18 @@ module u2_core
assign s3_rty = 1'b0;
// GPIOs -- Slave #4
+ reg [4:0] dbsrx_ctr;
+ reg dbsrx_clk;
+ always @(posedge dsp_clk)
+ if(dsp_rst) dbsrx_ctr <= 0;
+ else if(dbsrx_ctr == 24) dbsrx_ctr <= 0;
+ else dbsrx_ctr <= dbsrx_ctr + 1;
+ always @(posedge dsp_clk) dbsrx_clk <= (dbsrx_ctr == 24);
+
nsgpio nsgpio(.clk_i(wb_clk),.rst_i(wb_rst),
.cyc_i(s4_cyc),.stb_i(s4_stb),.adr_i(s4_adr[3:0]),.we_i(s4_we),
.dat_i(s4_dat_o),.dat_o(s4_dat_i),.ack_o(s4_ack),
- .atr(atr_lines),.debug_0(debug_gpio_0),.debug_1(debug_gpio_1),
+ .atr(atr_lines),.debug_0(debug_gpio_0),.debug_1({debug_gpio_1[31:1],dbsrx_clk}),
.gpio( {io_tx,io_rx} ) );
assign s4_err = 1'b0;
assign s4_rty = 1'b0;