11 from __future__
import print_function
16 from .entity
import Entity
17 from .signal_base
import SignalBase
22 return self.getName().split(
":")[-1]
25 setattr(SignalBase,
"name", property(sig_short_name))
41 return self.
sig.name +
" = " + str(self.
sig.value)
47 self.
sig.recompute(iter)
51 self.
sig.recompute(self.
sig.time + iter)
59 setattr(SignalBase,
"m", property(PrettySignalPrint))
64 return self.name +
" = " + str(self.value)
73 sig.recompute(sig.time + iter)
77 setattr(SignalBase,
"__repr__", sigRepr)
78 setattr(SignalBase,
"__call__", sigCall)
79 setattr(SignalBase,
"__add__", sigTimeIncr)
100 setattr(SignalBase,
"deps", property(SignalDepPrint))
102 setattr(Entity,
"sigs", property(Entity.displaySignals))
103 setattr(Entity,
"__repr__", Entity.__str__)
111 def __init__(self, f):
116 if isinstance(res, str):
121 def __call__(self, *arg):
122 return self.functor(*arg)
def __call__(self, depth)
def sigTimeIncr(sig, iter)
def optionalparentheses(f)