Forum Discussion
7 Replies
- Altera_Forum
Honored Contributor
You just need LUT and multiplier(s) to scale down your target (filter coefficients, fft output ...etc). It is normally pre-applied but if you want to apply it in vhdl code then you need to think of it as a set of scale factors. You need to decide how many taps you want and how to apply them (e.g. fully parallel).
To get 31 hamming set in Matlab: w = hamming(31); then scale up, round and insert in a LUT to be applied to target. - Altera_Forum
Honored Contributor
thank u very much for ur reply,but sir if i generate sine-cosine lut and multiplier then call it as a function in main hamming window code then will it be possible to generate vhdl code for hamming window?:confused:
2) sir i don't know how scale a program from matlab to vhdl. can plz give some link of referencec? thnaking you again.........:) - Altera_Forum
Honored Contributor
Hi,
I never said sin/cos LUT but LUT for your hamming figures. It will help to know what actually you are upto when referring to hamming window. A window is just a set of scale factors that usually goes up then comes down. It is used to modify filter response by scaling coeffs accordingly. It is also used to scale signals e.g. fft signal. Matlab can give you values for various windows in the range 0~ 1. You need to decide how many taps you want. To scale your figures onto 16 bits(16,14): winscaled = round(win*2^14/max(win)); after multiplication discard 14 LSBs from result. - Altera_Forum
Honored Contributor
sir can u plz tell me how do i implement logarithm in vhdl???:confused:
- Altera_Forum
Honored Contributor
how cani write vhdl code for bartlett window? is the procedure is same as hamming?? plz help.:cry:
- Altera_Forum
Honored Contributor
All window types are same in principle i.e. scale factors for various signal stages. As long as they are same length then you can just replace the values of window.
- Altera_Forum
Honored Contributor
@kaz sir,
thank u sir for your information.