Jump to content

How does SystemC-AMS solve state space equations?

Recommended Posts

Basically the question stated in the title, I'm particularly interested in:

  • Does the solver make smaller steps internally than the TDF module time step?
  • If so: are these steps fixed (like 1/100th of the TDF module time step) or variable?
  • Is there a way to find out how many steps the solver actually did?
  • What kind of solver algorithm is used?

If anyone has an answer to one of these questions or can point me to a document that answers them, please tell me. I was not able to find this information in the LRM or through Google.

Link to comment
Share on other sites

The solution of state-space equations is an implementation detail and not covered by the SystemC AMS 2.0 LRM. However, the SystemC AMS 2.0 LRM defines the semantics for the solution of the state-space equation system and how you can obtain solutions with a pace smaller than the TDF time step and redo a solution step (cf. to the discussion of the tstep parameter in clause


Regarding your points, the answers depend on the used implementation of SystemC AMS 2.0. I will assume that you use Fraunhofer SystemC-AMS:

  • An implementation may do smaller time steps than the TDF module time step.
  • The linear ODE/DAE solver is for its internal time stepping constrained only to not make a step bigger than the TDF module time step or the explicitly passed tstep value.
  • I'm not aware that an instance of sca_tdf::sca_ss can output statistics about its internal time stepping.
  • As far as I know, Fraunhofer SystemC-AMS uses the Euler and trapezoidal integration methods.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...