Skip to content

Commit

Permalink
ensuring that port's origPortRename preserved after qualifying direction
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Durst committed Aug 9, 2018
1 parent d394740 commit c0a575b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magma/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ def __init__(self, inst=None, defn=None):
elif defn: ref = DefnRef(defn, name)
else: ref = AnonRef(name)

port = port.qualify(direction)
qualified_port = port.qualify(direction)
if hasattr(port, "origPortName"):
ref.name = port.origPortName

args[name] = port(name=ref)
args[name] = qualified_port(name=ref)

self.ports = args

Expand Down

0 comments on commit c0a575b

Please sign in to comment.