diff --git a/myhdl/_Signal.py b/myhdl/_Signal.py index 6f91bb87..a0fabbc6 100644 --- a/myhdl/_Signal.py +++ b/myhdl/_Signal.py @@ -451,6 +451,9 @@ class _Signal(object): def __hex__(self): return hex(self._val) + + def __index__(self): + return int(self._val) # comparison