File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ def __init__(self, **kwargs):
438438 self ._ports = {}
439439 self ._bound = False
440440 for name , typ in kwargs .items ():
441- self ._add (name , typ )
441+ self .add (name , typ )
442442
443443 @property
444444 def ports (self ):
@@ -498,7 +498,7 @@ def __iadd__(self, other: 'IO') -> 'IO':
498498 self ._ports .update (other ._ports )
499499 return self
500500
501- def _add (self , name , typ ):
501+ def add (self , name , typ ):
502502 if self ._bound :
503503 raise RuntimeError ("Can not add to a bound IO" )
504504 # Definition port.
@@ -565,7 +565,7 @@ def make_interface(self):
565565 return InterfaceKind (name , (_DeclareSingletonInstanceInterface ,), dct )
566566
567567 def _add (self , name , typ ):
568- super ()._add (name , typ )
568+ super ().add (name , typ )
569569 # Instance port.
570570 inst_ref = LazyInstRef (name = name )
571571 inst_port = _make_port (typ , inst_ref , flip = False )
You can’t perform that action at this time.
0 commit comments