• 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. PCB Design
  3. Pspice Model editor commands and capabilities.

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 165
  • Views 16259
  • Members are here 0
More Content
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

Pspice Model editor commands and capabilities.

AndyK1
AndyK1 over 12 years ago

Hello,

My name is Andy and I am currently working as an intern. At my jobsite, we have OrCad 16.5 avalible to us. I am trying to use the model editor for pspice to create parts that will have the actual worst case data behind them.

As an example, a milspec resistor may have %1 tolerance on its own, but this number increases with respect to the enviroment, how hot it is, radiation, life time of the part etc.. When everything is said and done, this number maybe 1.82%. I want to create a part that would have the proper part name and the tolerance on it so when a reliability engineer wants to run worst case analysis on pspice, he or she can directly pick the part from the library and place it on the circuit. I am also planning on automating the system of generating these parts and do it for thousands of different parts. The parts range from simple resistors all the way to transistors, even some stuff that has their own sub circuits like an LM117 voltage regulator.

My question is what type of commands am I allowed to use inside the model editor? I will be more than likely creating these files by exporting excel data in to text. Can I use functions? Are there ways of doing mathmetical calculations inside the model such as " dev=(R1*.01)%" or use Value statement etc..

Where can I get a hold of the complete valid command list for pspice models and subcircuits?

I may need to used add,subtract, exponent,min(),max(),log type functions. Can pspice models handle these functions?

  • Cancel
  • oldmouldy
    oldmouldy over 12 years ago

    Take a look at the pspcref.pdf, in the doc\pspcref directory of the installation, this is the reference for the PSpice models and model syntax.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AndyK1
    AndyK1 over 12 years ago
    I am looking at the Pspice model of an LM117 Voltage regulator and I cannot decipher these lines of code. That document that you linked does not have any explanation on the  EFB, EB and EP type devices.

    ESC 11 OUT VALUE(5.646-0.1125*V(6,5)*V(13,5)

    EFB 12 OUT VALUE {7.886-0.3727*V(13,5)+0.005097*V(13,5)*V(13,5)-0.02*V(13,5)*V(6,5)} . E

    EB 7 OUT 8 OUT 7.691

    EP 9 OUT 4 OUT 100
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • oldmouldy
    oldmouldy over 12 years ago
    Only the first character counts for a PSpice model, look at Analog Parts in the reference, these are all E parts, voltage controlled voltage sources.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AndyK1
    AndyK1 over 12 years ago

    Thank you that did work. What is going on with the E models with only 2 parameters and the "Value" statement? 

    Does that calculate the voltage that should appear between those two nodes, instead of physically connecting them to a source?

    Is this the only place to use Value? Actually what does the Value statement do?  

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Alok Tripathi
    Alok Tripathi over 12 years ago

    refer the following syntax

    ESQROOT 5 0 VALUE = {5V*SQRT(V(3,2))}

    This statement in circuit file would simulate a voltage source between node 5 and ground (0), whose value is function of voltage between Node 3 and 2 [V(3,2)] (5 times value of voltage between node 3 and 2.

    HTH

    • Cancel
    • Vote Up 0 Vote Down
    • 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