• 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 14930
  • 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
  • ShawnLogan
    ShawnLogan over 10 years ago

    Dear QS,

    The amount of distortion you measure will be a function of both your time domain zero crossings accuracy as well as there record size of the FFT. I am not sure if you have done experiments to determine which is limiting your distortion.

    I might suggest that in lieu of forcing reltol to a small value, you set the value of simulation parameter maxstep to a value that will provide your desired level of time accuracy for the zero-crossings. Otherwise, the maximum integration time step is determined by TSTOP and the value of errpreset - which may cause the time step to exceed the level of accuracy you desire in the time domain simulation.

    Let me know if my thoughts are not clear to you!

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • ShawnLogan
    ShawnLogan over 10 years ago

    Dear QS,

    The amount of distortion you measure will be a function of both your time domain zero crossings accuracy as well as there record size of the FFT. I am not sure if you have done experiments to determine which is limiting your distortion.

    I might suggest that in lieu of forcing reltol to a small value, you set the value of simulation parameter maxstep to a value that will provide your desired level of time accuracy for the zero-crossings. Otherwise, the maximum integration time step is determined by TSTOP and the value of errpreset - which may cause the time step to exceed the level of accuracy you desire in the time domain simulation.

    Let me know if my thoughts are not clear to you!

    Shawn

    • 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