The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design >> Mixed-Signal Design >> Generating a digital sine-wave
https://designers-guide.org/forum/YaBB.pl?num=1238840444

Message started by mowiehowie on Apr 4th, 2009, 3:20am

Title: Generating a digital sine-wave
Post by mowiehowie on Apr 4th, 2009, 3:20am

Hello

I am testing a DAC design on Cadence and until now the digital inputs are given by a vector file.
I wanna test the THD, so I need to generate a digital sine-wave.
How could it be done?

Thank you.

Title: Re: Generating a digital sine-wave
Post by ywguo on Apr 4th, 2009, 7:09am

Hi,

Put a sine-wave voltage source in the schematic, and quantize the sine wave using an ideal ADC, say ADC in ahdlLib.


Yawei

Title: Re: Generating a digital sine-wave
Post by Mahavir on Apr 4th, 2009, 2:19pm

I am also working on similar stuff.

You can write a verilog code of memory that stores say 100 samples (memory size will be 100 X 8) of sine wave ( you can use matlab ) and import it in spectre as module.

Hope, this will be useful.

Title: Re: Generating a digital sine-wave
Post by loose-electron on Apr 5th, 2009, 5:15pm

And if you are pressed for memory, do the numbers for one quarter of the sine wave, and handle the sequencing of the output to reconstruct the whole waveform (pointer counts up 1/4 cycle, down 1/4 cycle, up 1/4 cycle with polarity reversal, down 1/4 cycle with polarity reversal)

You get the idea.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.