Re: [myhdl-list] intbv.saturate, intbv.wrap
Brought to you by:
jandecaluwe
From: Thomas T. <tho...@de...> - 2008-06-28 16:59:06
|
Picking up an rather old issue again: In the discussion about the missing wrap around behaviour of intbv I wrote: > I agree with Tom. There is not much use of wrap around in a DSP > application. I have to withdraw this statement. Just wanted to implement a CIC filter. For that the wrapping behaviour is definitely needed. I tried to modifiy myhdl. But, as Jan mentioned last year, this is not an easy task. As there is no need to modify the conversion code I thought subclassing would help, but I didn't get it to work - yet. So, the only short time workaround is to use "__verilog__" and "__debug__". Any suggestions? BTW: __slot__ (without __dict__) in _Signal.py and _intbv.py could be a considered good to prevent different behaviour of myhdl code and converted code. But I would suggest to allow new attributes and raising a warning at conversion time if there is something different. |