)
except: raise Exception, 'Could not resolve source for virtual source port %s'%vsp
-class Port(_Port):
+##possible port types
+TYPES = ['complex', 'float', 'int', 'short', 'byte', 'msg', '']
- ##possible port types
- TYPES = ['complex', 'float', 'int', 'short', 'byte', 'msg']
+class Port(_Port):
- def __init__(self, block, n, dir):
+ def __init__(self, block, n, dir, **kwargs):
"""
Make a new port from nested data.
@param block the parent element
block=block,
n=n,
dir=dir,
+ types=TYPES,
)
self._nports = n.find('nports') or ''
self._vlen = n.find('vlen') or ''