Re: [myhdl-list] intbv.saturate, intbv.wrap
Brought to you by:
jandecaluwe
From: Blubaugh, D. A. <dbl...@be...> - 2008-07-10 13:35:58
|
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. |