• 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. Device and System Modeling in C/C++

Stats

  • State Not Answered
  • Replies 5
  • Subscribers 28
  • Views 3600
  • Members are here 0
More Content

Device and System Modeling in C/C++

GulDuz
GulDuz over 2 years ago

Hi,

I am interested in Device Model Interface (DMI), unfortunately I could only find these two documents

1-PSpice Device and System Modeling in C/C++ and SystemC Tutorial

2-PSpice Device Modeling Interface API Reference

which is very rare to understand DMI and used it with C/C++. Are there any other documents or videos?

Sincerely

  • Sign in to reply
  • Cancel
  • Schulz Jordan
    0 Schulz Jordan over 2 years ago

    Kindly refer this - https://www.pspice.com/resources/application-notes/device-model-interface 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • GulDuz
    0 GulDuz over 2 years ago in reply to Schulz Jordan

    Hello Jordan,

    this is almost the same as

    PSpice Device and System Modeling in C/C++ and SystemC Tutorial

    the analog part (Noise Filter using a MATLAB Block) is identical. There should be a user guide. How should a newbie learn it if it's not adequately documented? An example, PSpice Device Modeling Interface API Reference page 29

    typedef void(* pPSpiceIntegrate_t) (double &pConductance, double &pCurrent, double pCapacitance, qi_def&pSV0, qi_def &pSV1, qi_def &pSV2, int pInitFlag)

    how to use it if you don't know what these parameters are or how to use them. That must be documented, shouldn't it? I'm a bit disappointed in terms of documentation and help for students who aren't allowed to open a help case in Cadence.

    Sincerely

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Klaus Kragelund
    0 Klaus Kragelund over 2 years ago in reply to GulDuz

    Hi

    I am in a similar situation. Just started on the SystemC /DMI modelling, but very little documentation on how to use the function calls in Visual Studio.

    To begin with I just need a simple analog in and analog out device, but have no luck getting it working.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • AyushD
    0 AyushD over 2 years ago in reply to Klaus Kragelund

    Hello

    For a simple working example you can refer to the tutorial link on Cadence Support website. Check the section "Generating and Simulating a SystemC based PSpice DMI Model" in below link

    https://support.cadence.com/apex/techpubDocViewerPage?xmlName=pspsysdsnc.xml&title=PSpice%20Device%20and%20System%20Modeling%20with%20C/C++%20and%20SystemC%20Tutorial%20--%20Introduction%20to%20PSpice%20System%20Design%20-%20Prerequisites&hash=pgfId-754701&c_version=17.4-2019&path=pspSysDsnC/pspSysDsnC17.4-2019/Introduction.html#pgfId-754701

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Klaus Kragelund
    0 Klaus Kragelund over 2 years ago in reply to AyushD

    Thanks. That provided at least a little deeper insight.

    I also found this reference:

    SystemC WP_1 (uw.edu)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
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.

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

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