diff options
author | Matt Ettus <matt@ettus.com> | 2010-07-19 13:33:32 -0700 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2010-07-19 13:33:32 -0700 |
commit | ed11f715c45ad129600e20849254e3899407002a (patch) | |
tree | 7adeb2a8b8ae84a409d09683327abc3107332c23 /usrp2/control_lib | |
parent | eddfcda0a2c84edd4818836e812c6a95ea44cb99 (diff) | |
download | uhd-ed11f715c45ad129600e20849254e3899407002a.tar.gz uhd-ed11f715c45ad129600e20849254e3899407002a.tar.bz2 uhd-ed11f715c45ad129600e20849254e3899407002a.zip |
proper selection of bank of ram for instruction, since the address
has already incremented by the time the data is returned
Diffstat (limited to 'usrp2/control_lib')
-rw-r--r-- | usrp2/control_lib/bootram.v | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usrp2/control_lib/bootram.v b/usrp2/control_lib/bootram.v index 5e527de90..668012504 100644 --- a/usrp2/control_lib/bootram.v +++ b/usrp2/control_lib/bootram.v @@ -21,8 +21,12 @@ module bootram wire [31:0] DOB0, DOB1, DOB2, DOB3; wire ENB0, ENB1, ENB2, ENB3; wire [3:0] WEB; + + reg [1:0] delayed_if_bank; + always @(posedge clk) + delayed_if_bank <= if_adr[12:11]; - assign if_data = if_adr[12] ? (if_adr[11] ? DOA3 : DOA2) : (if_adr[11] ? DOA1 : DOA0); + assign if_data = delayed_if_bank[1] ? (delayed_if_bank[0] ? DOA3 : DOA2) : (delayed_if_bank[0] ? 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) |