Re: [myhdl-list] intbv.saturate, intbv.wrap
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2008-06-28 17:57:12
|
Thomas Traber wrote: > 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? Why can't you use modulo operations ('%') Jan -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Kaboutermansstraat 97, B-3000 Leuven, Belgium From Python to silicon: http://myhdl.jandecaluwe.com |