diff options
author | Matt Ettus <matt@ettus.com> | 2010-07-13 20:24:25 -0700 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2010-07-13 20:24:25 -0700 |
commit | ee7208f5ea0e3105c1a45d37cc7709a665dc07b2 (patch) | |
tree | 8308f58069e51adeeebfd43156d15bed521b0089 /usrp2/control_lib/bootram.v | |
parent | 703c20be608b2a15ab68a6c15514facdeac527cc (diff) | |
download | uhd-ee7208f5ea0e3105c1a45d37cc7709a665dc07b2.tar.gz uhd-ee7208f5ea0e3105c1a45d37cc7709a665dc07b2.tar.bz2 uhd-ee7208f5ea0e3105c1a45d37cc7709a665dc07b2.zip |
attach the correct data port
Diffstat (limited to 'usrp2/control_lib/bootram.v')
-rw-r--r-- | usrp2/control_lib/bootram.v | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usrp2/control_lib/bootram.v b/usrp2/control_lib/bootram.v index 648ccc9ed..00c604f20 100644 --- a/usrp2/control_lib/bootram.v +++ b/usrp2/control_lib/bootram.v @@ -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); |