From: Robert Jordens Date: Sun, 17 Aug 2014 20:56:30 +0000 (-0600) Subject: Signal.like: pass kwargs X-Git-Tag: 24jan2021_ls180~2099^2~320 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3d69913cd8d554767939fd83c10d19f637bc1ae;p=litex.git Signal.like: pass kwargs --- diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index aa33888e..3edc2860 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -275,7 +275,7 @@ class Signal(Value): return "" @classmethod - def like(cls, other): + def like(cls, other, **kwargs): """Create Signal based on another. Parameters @@ -286,7 +286,7 @@ class Signal(Value): 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