return sig.name
def list_signals(node):
- if isinstance(node, Constant):
+ if node is None:
+ return set()
+ elif isinstance(node, Constant):
return set()
elif isinstance(node, Signal):
return {node}
raise TypeError
def list_targets(node):
- if isinstance(node, Signal):
+ if node is None:
+ return set()
+ elif isinstance(node, Signal):
return {node}
elif isinstance(node, _Slice):
return list_targets(node.value)
(_AT_BLOCKING, _AT_NONBLOCKING, _AT_SIGNAL) = range(3)
def _printnode(ns, at, level, node):
- if isinstance(node, _Assign):
+ if node is None:
+ return ""
+ elif isinstance(node, _Assign):
if at == _AT_BLOCKING:
assignment = " = "
elif at == _AT_NONBLOCKING: