return "<Signal " + (self.backtrace[-1][0] or "anonymous") + " at " + hex(id(self)) + ">"
@classmethod
- def like(cls, other):
+ def like(cls, other, **kwargs):
"""Create Signal based on another.
Parameters
See `migen.fhdl.bitcontainer.value_bits_sign`() for details.
"""
from migen.fhdl.bitcontainer import value_bits_sign
- return cls(value_bits_sign(other))
+ return cls(bits_sign=value_bits_sign(other), **kwargs)
class ClockSignal(Value):
"""Clock signal for a given clock domain