• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. The resolution of sin wave

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 125
  • Views 19457
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

The resolution of sin wave

Medya
Medya over 13 years ago

 Hi

I do fft(using dft with N=1024 and set the input freq=100M*17/1024 ,strobperiode=10ns and simulation time>10240ns) on the output of the sin wave,and see that the noise floor is about -100db i repeat it for variuos step(strobperiode) and simtime but the noise floor doesn't vary more,I'm so confused that how can test the high resulotion adc with this low resolution wave,is the way to solve this problem

thanks

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    If I simulate this simple netlist:

    //
    v1 (sinout 0) vsource type=sine freq=100M*17/1024 ampl=1
    r1 (sinout 0) resistor r=1M

    tran tran stop=10240n strobeperiod=10n

    Then I get the attached picture (which as you can see has very low numerical noise floor). If you're simulating a more complicated circuit, it may be the simulator accuracy that is limiting you - have you set errpreset on the tran analysis? Have you set reltol? Without knowing quite what you're doing, it's hard to be sure.

    Andrew.

    • dft.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Medya
    Medya over 13 years ago

    Hi I simulate a simple switchcap circuit (transmition gate with a cap and sin source)and when I take  fft from the input side I obtain this,but i dont set any other options like you say.

    • pic.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago
    OK. Probably not enough detail to be able to help then. Maybe you should go to customer support at http://support.cadence.com and then an AE can work through this with you, maybe taking a closer look at your circuit and sim setup.

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Medya
    Medya over 13 years ago

    Hi again,I simulate the circuit that you were simulated it,but my FFT dont chang,what is the difference????can yuo tel me what is the other options value that you set in your simple simulation?thanks a lot.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago
    So, which version of the simulator are you using (this should show up in the spectre ouput)? Which version of Virtuoso are you using? (Help->About in the CIW).

    Can you post the actual netlist you simulated and the actual calculator DFT expression you used?

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Medya
    Medya over 13 years ago

    The spectre version is 5.10.41_usr6.081308 and virtuoso ADE is 5.10.41_usr6.127.29.here are the input and netlist files of the simulation.

    thanks.

    sim.zip
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    First of all, that's a rather old version of the simulator. When using IC5141, you should really use spectre from the MMSIM stream (e.g. MMSIM10.1 or MMSIM11.1) because spectre in IC5141 was superseded by spectre in MMSIM in late 2004, and has had no significant changes - over the last few years it has had no changes at all - even in the latest hotfix of IC5141 it's from December 2008.

    I simulated using a slightly later version of spectre (5.10.41.121508 - so 4 months newer), and plotted the results in the latest version of IC5141 ( 5.10.41.500.6.151 - which dates from November 2011), and I see the same results as I did in IC615/MMSIM11.1. See the attached plot (from wavescan) - I get the same results with the older AWD calculator/waveform tool.

    As I asked before, how did you plot the FFT results? You mentioned in another post that you were generating a csv (how?) and so I'm wondering if you were doing the FFT in some other tool (Matlab, maybe?)

    Regards,

    Andrew.

    • dft5141.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    By the way, I've just noticed your screen grab from your switch cap circuit (I didn't see that yesterday because I was only replying via email from a hand-held device). I'm wondering whether you've just not given enough time for the circuit to settle and hence you have not got a true period - maybe you need to give it longer and then take the last 10240ns for the FFT.

    That wouldn't explain why you don't get good results with the simple sine-source only though.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Medya
    Medya over 13 years ago

    Thank you alot Andrew,

    finally i have to run the fft analysis(.csv from tran output) with matlab code that i tested it before,(I use the table option in graph window for extracting .csv), but when  the .csv data is used for calculating  sfdr and sndr I noticed that the noise floor was very large,so I used the dft function for comparing and know what was the exact noise floor for ideal sin in this circuit but the results wondered me.then use simple circuit(that you used),in this case the result dont like to yours,too.Now, I dont know waht is the problem ,Is it from simulator or from mistake in doing fft with wrong number of samples?what is your idea?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    But you've still not said precisely what you're doing when you get the erroneous results (from the simple sine wave case)...

    As I said before, the best bet would be to log a service request for this.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information