[myhdl-list] __dict__ on signals?
Brought to you by:
jandecaluwe
From: Sébastien B. <seb...@mi...> - 2011-09-11 21:09:16
|
Hi, why isn't it possible to use __dict__ on signal objects? How to get equivalent functionality? Thanks, Sébastien >>> from myhdl import * >>> >>> s = Signal(intbv(0)[5:]) >>> >>> print s._max 32 >>> print s.__dict__["_max"] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/lekernel/TE/myhdl/myhdl/_Signal.py", line 465, in __getattr__ return getattr(self._val, attr) AttributeError: 'intbv' object has no attribute '__dict__' |