Skip to content
Permalink
Browse files
sram: fix WE signal
  • Loading branch information
Sebastien Bourdeauducq committed Feb 3, 2012
1 parent 8a2646a commit b5cb1083ab809671b5c89f98aad7d8faea132e07
Showing with 1 addition and 1 deletion.
  1. +1 −1 milkymist/sram/__init__.py
@@ -9,7 +9,7 @@ def __init__(self, depth):
def get_fragment(self):
# generate write enable signal
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)]
# split address
nbits = bits_for(self.depth-1)

0 comments on commit b5cb108

Please sign in to comment.