mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
cores/up5ksram: optimize bus.adr decoding
This commit is contained in:
parent
bb99c4685a
commit
0eff65bb31
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class Up5kSPRAM(Module):
|
|||
wren = Signal()
|
||||
self.comb += [
|
||||
datain.eq(self.bus.dat_w[16*w:16*(w+1)]),
|
||||
If(self.bus.adr[14:16] == d,
|
||||
If(self.bus.adr[14:14+log2_int(depth_cascading)+1] == d,
|
||||
wren.eq(self.bus.we & self.bus.stb & self.bus.cyc),
|
||||
self.bus.dat_r[16*w:16*(w+1)].eq(dataout)
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue