summaryrefslogtreecommitdiffstats
path: root/usrp2/control_lib
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-07-14 09:36:33 -0700
committerNick Foster <nick@nerdnetworks.org>2010-07-14 09:36:33 -0700
commit2e1222cc4228307ff762ff114b773956ef1937f3 (patch)
tree15d6fc325f07b6400c71b5b3231de18d1bdc0723 /usrp2/control_lib
parent3ac97f05c32942ba06a88c39f5d16edd51ae6658 (diff)
parenteddfcda0a2c84edd4818836e812c6a95ea44cb99 (diff)
downloaduhd-2e1222cc4228307ff762ff114b773956ef1937f3.tar.gz
uhd-2e1222cc4228307ff762ff114b773956ef1937f3.tar.bz2
uhd-2e1222cc4228307ff762ff114b773956ef1937f3.zip
Merge branch 'u2p' of ettus.sourcerepo.com:ettus/fpgapriv into u2p
Diffstat (limited to 'usrp2/control_lib')
-rw-r--r--usrp2/control_lib/bootram.v12
1 files changed, 6 insertions, 6 deletions
diff --git a/usrp2/control_lib/bootram.v b/usrp2/control_lib/bootram.v
index 648ccc9ed..5e527de90 100644
--- a/usrp2/control_lib/bootram.v
+++ b/usrp2/control_lib/bootram.v
@@ -5,7 +5,7 @@
// Spartan-3A Xilinx HDL Libraries Guide, version 10.1.1
module bootram
- (input clk,
+ (input clk, input reset,
input [12:0] if_adr,
output [31:0] if_data,
@@ -23,14 +23,14 @@ module bootram
wire [3:0] WEB;
assign if_data = if_adr[12] ? (if_adr[11] ? DOA3 : DOA2) : (if_adr[11] ? DOA1 : DOA0);
- assign dwb_dat_o = dwb_adr_i[12] ? (dwb_adr_i[11] ? DOA3 : DOA2) : (dwb_adr_i[11] ? DOA1 : DOA0);
+ assign dwb_dat_o = dwb_adr_i[12] ? (dwb_adr_i[11] ? DOB3 : DOB2) : (dwb_adr_i[11] ? DOB1 : DOB0);
always @(posedge clk)
- if(dwb_stb_i & ~dwb_ack_o)
- dwb_ack_o <= 1;
- else
+ if(reset)
dwb_ack_o <= 0;
-
+ else
+ dwb_ack_o <= dwb_stb_i & ~dwb_ack_o;
+
assign ENB0 = dwb_stb_i & (dwb_adr_i[12:11] == 2'b00);
assign ENB1 = dwb_stb_i & (dwb_adr_i[12:11] == 2'b01);
assign ENB2 = dwb_stb_i & (dwb_adr_i[12:11] == 2'b10);