From: Sebastien Bourdeauducq Date: Mon, 18 Mar 2013 08:52:43 +0000 (+0100) Subject: fhdl/tools/value_bits_sign: support not X-Git-Tag: 24jan2021_ls180~2099^2~636 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e95d2f47791f1b5accdb883536a098d079b37541;p=litex.git fhdl/tools/value_bits_sign: support not --- diff --git a/migen/fhdl/tools.py b/migen/fhdl/tools.py index 1dd1ba57..07e06b87 100644 --- a/migen/fhdl/tools.py +++ b/migen/fhdl/tools.py @@ -152,6 +152,8 @@ def value_bits_sign(v): elif v.op == "<" or v.op == "<=" or v.op == "==" or v.op == "!=" \ or v.op == ">" or v.op == ">=": return 1, False + elif v.op == "~": + return obs[0] else: raise TypeError elif isinstance(v, _Slice):