Skip to content

Commit

Permalink
Set default renamed_ports arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Aug 15, 2018
1 parent 55465b5 commit 6c3addf
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 @@ -172,7 +172,7 @@ def isclocked(self):
# e.g. Interface('I0', In(Bit)(), 'I1', In(Bit)(), 'O', Out(Bit)())
#
class Interface(_Interface):
def __init__(self, decl, renamed_ports):
def __init__(self, decl, renamed_ports={}):

directions, names, ports = parse(decl, renamed_ports)

Expand Down Expand Up @@ -204,7 +204,7 @@ def __init__(self, decl, renamed_ports):
# interface = Interface()
#
class _DeclareInterface(_Interface):
def __init__(self, renamed_ports, inst=None, defn=None):
def __init__(self, renamed_ports={}, inst=None, defn=None):

# parse the class Interface declaration
directions, names, ports = parse(self.Decl, renamed_ports)
Expand Down

0 comments on commit 6c3addf

Please sign in to comment.