Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sram: fix WE signal
  • Loading branch information
Sebastien Bourdeauducq committed Feb 3, 2012
1 parent 8a2646a commit b5cb108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion milkymist/sram/__init__.py
Expand Up @@ -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)
Expand Down

0 comments on commit b5cb108

Please sign in to comment.