From e95d2f47791f1b5accdb883536a098d079b37541 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 18 Mar 2013 09:52:43 +0100 Subject: [PATCH] fhdl/tools/value_bits_sign: support not --- migen/fhdl/tools.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.30.2