hdl.mem: fix source location of ReadPort.en.
authorwhitequark <whitequark@whitequark.org>
Sun, 5 Apr 2020 02:00:06 +0000 (02:00 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 5 Apr 2020 02:00:06 +0000 (02:00 +0000)
nmigen/hdl/mem.py

index 235cbd2bf7438e96bfea8a0d23b513cffc9c6d0e..d34c5f02e7bdc1e06a253ee28ab14ebdb7be1ff3 100644 (file)
@@ -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)