From fee228a09f55bc91a9c5e900b35520e1456a62d6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 25 Apr 2013 13:30:05 +0200 Subject: [PATCH] fhdl/specials/memory: do not write address register for async reads --- migen/fhdl/specials.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/migen/fhdl/specials.py b/migen/fhdl/specials.py index 842cb55e..59ef7303 100644 --- a/migen/fhdl/specials.py +++ b/migen/fhdl/specials.py @@ -258,11 +258,11 @@ class Memory(Special): elif port.mode == NO_CHANGE: rd = "\tif (!" + gn(port.we) + ")\n" \ + "\t\t" + bassign - if port.re is None: - r += rd - else: - r += "\tif (" + gn(port.re) + ")\n" - r += "\t" + rd.replace("\n\t", "\n\t\t") + if port.re is None: + r += rd + else: + r += "\tif (" + gn(port.re) + ")\n" + r += "\t" + rd.replace("\n\t", "\n\t\t") r += "end\n\n" for port in memory.ports: -- 2.30.2