mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
sram: fix WE signal
This commit is contained in:
parent
8a2646a549
commit
b5cb1083ab
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class SRAM:
|
||||||
def get_fragment(self):
|
def get_fragment(self):
|
||||||
# generate write enable signal
|
# generate write enable signal
|
||||||
we = Signal(BV(4))
|
we = Signal(BV(4))
|
||||||
comb = [we[i].eq(self.bus.cyc_i & self.bus.stb_i & self.bus.sel_i[3-i])
|
comb = [we[i].eq(self.bus.cyc_i & self.bus.stb_i & self.bus.we_i & self.bus.sel_i[3-i])
|
||||||
for i in range(4)]
|
for i in range(4)]
|
||||||
# split address
|
# split address
|
||||||
nbits = bits_for(self.depth-1)
|
nbits = bits_for(self.depth-1)
|
||||||
|
|
Loading…
Reference in a new issue