Re: [myhdl-list] intbv.saturate, intbv.wrap
Brought to you by:
jandecaluwe
From: Christopher L. F. <cf...@uc...> - 2008-07-19 13:06:29
|
I started (WIP) a wiki page for this, it is more convenient for outlining code and displaying plots than the newsgroup, http://myhdl.jandecaluwe.com/doku.php/projects:gcicexample?do=backlink . Example is intended to illustrate parameterizable modules in MyHDL and designing the CIC for max gain (no integrator overflows). Which requires more resources (bits and delay elements in the comb) but works good for higher order and no overflows. On Jul 10, 2008, at 8:35 AM, Blubaugh, David A. wrote: > > Chris, > > > Please tell us as to when you have finally generated Verilog or VHDL > source code. This sounds truly interesting to have NUMPY integrated > with the MyHDL environment. > > > > David > > > > > > > > -----Original Message----- > From: myh...@li... > [mailto:myh...@li...] On Behalf Of > Christopher L. Felton > Sent: Thursday, July 10, 2008 8:36 AM > To: General discussions on MyHDL > Subject: Re: [myhdl-list] intbv.saturate, intbv.wrap > > Attached is an example of the CIC filter without using 2's compliment > wrapping or modulus. Adjusted the bitwidth for the maximum gain. The > plot attached is of the frequency response of the filter, green is > averaged input spectrum and the blue is the averaged output spectrum. > You can see that after scaling the response is expected for a D=5 > (comb > delay = 5) cic filter. Only simulation thus far, haven't converted to > Verilog or VHDL. > > Note, Because the comb filter is before the integrator (to help > control > infinite gain of the integrator, hence no wrap) cannot take > advantage of > inserting the decimation before the comb filter to reduced storage (# > registers) for the comb. this could be a draw backs (depending on how > you look at it). > > > Also, for this implementation I had to "hack" the MyHDL space. This > is > a complete hack (just temporary to do what I wanted to do). Also > attached are the diff's that I had to make to allow the numpy types in > the generator (?). > > > This e-mail transmission contains information that is confidential > and may be > privileged. It is intended only for the addressee(s) named above. If > you receive > this e-mail in error, please do not read, copy or disseminate it in > any manner. > If you are not the intended recipient, any disclosure, copying, > distribution or > use of the contents of this information is prohibited. Please reply > to the > message immediately by informing the sender that the message was > misdirected. > After replying, please erase it from your computer system. Your > assistance in > correcting this error is appreciated. > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list |