Sign in

username:

password:



Not a member?

Search fpgadsp



Search tips

Subscribe to fpgadsp



Sponsor

Evaluate multicore with Texas Instruments:
Low-cost evaluation module & free software development kit available NOW.

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | DSP & FPGA | THD+N Asin (wt)

For engineers implementing DSP functions on FPGAs. This is a NEW Group that has just been created. It should take a few weeks before the group is big enough to become active. Please join!

  

Post a new Thread

THD+N Asin (wt) - jaso...@gmail.com - Dec 18 6:40:14 2009

Hi.  I generated 1 sine wave(24bit output[23:0]).  In order to control the
amplitude, the output multiply with a ratio(fixed point multiplier).  for fix
point multiplication, 

verilog declaration
sin [23:-10]//zero pad
ratio [0:-10]
result_mult [24:-20]

Asin <= result[23:0]

After the simulation, i realised that the THD+N is 74(-80db to -6)(the THD+N of
sine wave without multiplier is infinity).

May i know what is the problem to cause this?  How to reduce this?

Besides, why the result_mult have to be [24:-20] instead of [23:-20]? if use
[23:-20]. the result_mult always 2 times less than the correct one.

thanks a lot

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of fpgadsp -- send a blank email to fpgadsp-subscribe@yahoogroups.com )