Home
  • Products
  • Solutions
  • Support
  • Company

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  • Products
  • Solutions
  • Support
  • Company
Community PCB Design & IC Packaging (Allegro X) PSpice How to use variable in pspice model editor?

Stats

  • State Suggested Answer
  • Replies 1
  • Answers 1
  • Subscribers 26
  • Views 4211
  • Members are here 0
More Content

How to use variable in pspice model editor?

YunYeong Choi
YunYeong Choi over 1 year ago

Hello. I'm using pspice model editor. I know that the Pspice model editor can change the model parameter through the model test. I want to set my own variables in the model test and put it into the model parameter.

For example, I want to define EG using two variables (a, b).

a = 3*4

b = a-10

EG = b-0.2

 Although I can combine two variables into one like EG = {{{a}-10}-0.2}, I want to define variables more than two.

  • Sign in to reply
  • Cancel
Parents
  • TechiEE12
    0 TechiEE12 over 1 year ago

    Hello

    Yes you can define multiple variables and use them in a single expression. It is my understanding you want the simulator to read the values of params from the model definition and no param is defined on canvas or device property in the schematic.

    Here is a working sample of a subckt definition that I tried at my end. You may need to modify your syntax.

    Hope this helps.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • TechiEE12
    0 TechiEE12 over 1 year ago

    Hello

    Yes you can define multiple variables and use them in a single expression. It is my understanding you want the simulator to read the values of params from the model definition and no param is defined on canvas or device property in the schematic.

    Here is a working sample of a subckt definition that I tried at my end. You may need to modify your syntax.

    Hope this helps.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
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