From: whitequark Date: Sun, 5 Apr 2020 02:00:06 +0000 (+0000) Subject: hdl.mem: fix source location of ReadPort.en. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4a61a2633e818d3918dbddfd7fe5da2c5d6dacd;p=nmigen.git hdl.mem: fix source location of ReadPort.en. --- 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)