• 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. Spectre setting for comparator-based PWM

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 14932
  • 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

Spectre setting for comparator-based PWM

greatqs
greatqs over 10 years ago

All,

I'm simulating a circuit with sinusoid being open-loop PWM modulated (natural sampled). Theoretically, the open-loop PWM modulation should be linear (no direct in-band signal harmonics). However, when I did the Spectre simulation with sweeping the reltol parameter, I found the distortion after anti-aliasing filtered and FFT is very big ( < 80dB) highly dependent on reltol with significant numerical noise floor. The THD gets flat (~140dB) until I set 'reltol' to some ridiculous value (method=gear2only, errpreset=conservative, reltol=1e-9).

I suspect this relates to Spectre time step algorithm to handle sharp zero-crossing points with good enough time step "accuracy" as I observed "numerical" jitter before in some frequency divider design which can be workaround by time step algorithm (i.e. LVLTIM) in other simulator.

Does anyone has experience on this and could share some lights?

Thanks,

QS

 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Shawn,

    No need to apologise - I'm very glad that you provide help to others on the forums. We all (including me) have things we can learn now and again!

    Note that the primary reason I use maxstep with oscillators is to help ensure enough points for the oscillator to actually start properly. I would probably use the PSS or HB analysis to analyse oscillators with sufficient accuracy (shooting PSS also controls maxstep in the shooting interval, but that is mainly to ensure spectral accuracy at high harmonics of the PSS fundamental). I don't normally use maxstep to control accuracy of the oscillator though - I'd use the accuracy parameters for that. But hey, your mileage may vary ;-)

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Shawn,

    No need to apologise - I'm very glad that you provide help to others on the forums. We all (including me) have things we can learn now and again!

    Note that the primary reason I use maxstep with oscillators is to help ensure enough points for the oscillator to actually start properly. I would probably use the PSS or HB analysis to analyse oscillators with sufficient accuracy (shooting PSS also controls maxstep in the shooting interval, but that is mainly to ensure spectral accuracy at high harmonics of the PSS fundamental). I don't normally use maxstep to control accuracy of the oscillator though - I'd use the accuracy parameters for that. But hey, your mileage may vary ;-)

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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