From a20688f777e360e60a78e90d011538d02ca9887b Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 13 Dec 2013 00:02:50 +0100 Subject: [PATCH] fhdl/simplify/FullMemoryWE: fix WE slice for multi-port mems --- migen/fhdl/simplify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migen/fhdl/simplify.py b/migen/fhdl/simplify.py index 5876b013..b84b5cc9 100644 --- a/migen/fhdl/simplify.py +++ b/migen/fhdl/simplify.py @@ -27,7 +27,7 @@ class FullMemoryWE(ModuleDecorator): newport = _MemoryPort(adr=port.adr, dat_r=port.dat_r[i*global_granularity:(i+1)*global_granularity] if port.dat_r is not None else None, - we=port.we[i*port_granularity//global_granularity] if port.we is not None else None, + we=port.we[i*global_granularity//port_granularity] if port.we is not None else None, dat_w=port.dat_w[i*global_granularity:(i+1)*global_granularity] if port.dat_w is not None else None, async_read=port.async_read, -- 2.30.2