diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index 802e1cd2d..6097c2433 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -19,6 +19,9 @@ class BV: return r class Value: + def __invert__(self): + return Operator("~", [self]) + def __add__(self, other): return Operator("+", [self, other]) def __radd__(self, other):