The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 18th, 2024, 1:25pm
Pages: 1
Send Topic Print
Generating a digital sine-wave (Read 2984 times)
mowiehowie
Junior Member
**
Offline



Posts: 26

Generating a digital sine-wave
Apr 04th, 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.
Back to top
 
 
View Profile   IP Logged
ywguo
Community Fellow
*****
Offline



Posts: 943
Shanghai, PRC
Re: Generating a digital sine-wave
Reply #1 - 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
Back to top
 
 
View Profile   IP Logged
Mahavir
New Member
*
Offline



Posts: 8
India
Re: Generating a digital sine-wave
Reply #2 - 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.
Back to top
 
 
View Profile WWW Mahavir   IP Logged
loose-electron
Senior Fellow
******
Offline

Best Design Tool =
Capable Designers

Posts: 1638
San Diego California
Re: Generating a digital sine-wave
Reply #3 - 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.
Back to top
 
 

Jerry Twomey
www.effectiveelectrons.com
Read My Electronic Design Column Here
Contract IC-PCB-System Design - Analog, Mixed Signal, RF & Medical
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.