From b5cb1083ab809671b5c89f98aad7d8faea132e07 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 3 Feb 2012 10:38:17 +0100 Subject: [PATCH] sram: fix WE signal --- milkymist/sram/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2