diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index fa97b793d..f0ab2de87 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -109,6 +109,9 @@ class Value: def eq(self, r): return _Assign(self, r) + + def __hash__(self): + return id(self) class _Operator(Value): def __init__(self, op, operands): @@ -168,9 +171,6 @@ class Signal(Value): def __len__(self): return self.bv.width - def __hash__(self): - return id(self) - def __repr__(self): return ""