Skip to content

Commit

Permalink
Merge pull request #246 from phanrahan/fix_I_in_rename
Browse files Browse the repository at this point in the history
Preserve origPortRename After Qualifying Direction
  • Loading branch information
leonardt committed Aug 10, 2018
2 parents ba5ecb8 + c0a575b commit 96d700a
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 96d700a

Please sign in to comment.