From d4a61a2633e818d3918dbddfd7fe5da2c5d6dacd Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 5 Apr 2020 02:00:06 +0000 Subject: [PATCH] hdl.mem: fix source location of ReadPort.en. --- nmigen/hdl/mem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/hdl/mem.py b/nmigen/hdl/mem.py index 235cbd2..d34c5f0 100644 --- a/nmigen/hdl/mem.py +++ b/nmigen/hdl/mem.py @@ -106,7 +106,7 @@ class ReadPort(Elaboratable): name="{}_r_data".format(memory.name), src_loc_at=1 + src_loc_at) if self.domain != "comb" and not transparent: self.en = Signal(name="{}_r_en".format(memory.name), reset=1, - src_loc_at=2 + src_loc_at) + src_loc_at=1 + src_loc_at) else: self.en = Const(1) -- 2.30.2