• 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. PSpice
  3. Using SMSTP(x, r) for Smoother and Faster Simulations in...

Stats

  • Replies 0
  • Subscribers 27
  • Views 440
  • Members are here 0
More Content

Using SMSTP(x, r) for Smoother and Faster Simulations in Allegro PSpice

IshaS
IshaS 3 months ago

Hello everyone,

If you're using traditional step functions (like STP or Heaviside) in PSpice, you’ve probably seen issues such as sharp discontinuities, tiny timesteps, slow simulations, and convergence problems.

To overcome these limitations, Allegro PSpice introduces the SMSTP(x, r) function, which is defined as:

SMSTP(x,r)=0.5+0.5⋅tanh(r⋅x)

This gives a smooth transition from 0 → 1, and the parameter r lets you control the steepness.
Higher r = sharper but still smooth transition.

Advantages of SMSTP in Allegro PSpice:

  • Simulator-Friendly: It reduces the need for tiny timesteps, thus speeding up simulations.
  • Improved Convergence: Smooth transitions help solvers reach solutions more reliably.
  • Tunable Behavior: The r parameter controls the steepness and domain of the transition, as shown below:
    • r = 2 transition over domain > [-1, 1]
    • r = 4 domain > [-0.5, 0.5]
    • Higher r values > sharper transitions within narrower domains

 

Hope this helps anyone working on switching or behavioral models! If needed, I can share example plots or circuit snippets.

Happy Learning!!

  • Cancel
  • Sign in to reply
Cadence Guidelines

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.

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

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