From: Sebastien Bourdeauducq Date: Fri, 3 Feb 2012 09:38:17 +0000 (+0100) Subject: sram: fix WE signal X-Git-Tag: 24jan2021_ls180~3269 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5cb1083ab809671b5c89f98aad7d8faea132e07;p=litex.git sram: fix WE signal --- diff --git a/milkymist/sram/__init__.py b/milkymist/sram/__init__.py index 756b2c51..792ae152 100644 --- a/milkymist/sram/__init__.py +++ b/milkymist/sram/__init__.py @@ -9,7 +9,7 @@ class SRAM: 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)