• 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. How do I associate a PSpice Model to non PSpice Model resistor...

Stats

  • State Not Answered
  • Replies 4
  • Subscribers 27
  • Views 16096
  • Members are here 0
More Content

How do I associate a PSpice Model to non PSpice Model resistor?

Bogga
Bogga over 5 years ago

Hi,

The company where I work use OrCAD for schematic design but not for simulation, for that people use LTSpice. This seems silly to me since OrCAD should be able to do it.

At the moment I am verifying function on already manufactured PCBs and to assist in understanding function I wanted to simulate parts of the schematic using the Test Bench.

This seems like it should be straight forward but since the components do not have PSpice models connected to them I thought I could assiciate a pspice model to each component. To start I only selected a single resistor in the test bench and tryed to associate a pspice model to it. The analog.lib file from which I have simulated resistors from before does not work. How do I choose a regular resistor which I can simulate?

Thanks!

  • Sign in to reply
  • Cancel
Parents
  • oldmouldy
    0 oldmouldy over 5 years ago

    If you look in the analog.lib file with a text editor, you will see that this LIB file, unlike others, is just a "placeholder" to support the netlisting process. The "fundamental" SPICE models in Capture / PSpice just use the PSpice Template property value for modelling those components. Note that the PSpice Template property value contains Pin Names from the part graphics and these will need to match your schematic part for the mapping to work.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Bogga
    0 Bogga over 5 years ago in reply to oldmouldy

    Ok thank you. I had a look at R from analog.lib and in the PSpiceTemplate it has the following code:

    • R^@REFDES %1 %2 ?TOLERANCE|R^@REFDES| @VALUE TC=@TC1,@TC2 ?TOLERANCE|\n.model R^@REFDES RES R=1 DEV=@TOLERANCE% TC1=@TC1 TC2=@TC2|

    To make it easier for me to do a single modification to a resistor I skipped out what I understand to be temperature coefficients, TC1 & TC2 and I am able to simulate using the part if I only use the following code:

    • R^@REFDES %1 %2 ?TOLERANCE|R^@REFDES| @VALUE ?TOLERANCE|\n.model R^@REFDES RES R=1 DEV=@TOLERANCE%|

    The part now get s a resistance value and a tolerance.

    I can make due with selecting many components, adding a new property named PSpiceTemplate and then pasting that code to be able to make a simple simulation. This does not seem like a good way of doing it to me though since I would like to be able to simulate using temperature coefficients at some point in the future. It would therfore be better to refer to a simulation file instead since that's how I would be doing it for IC's and other components.

    I understand that different resistors would have different coefficients, but then I could just refer to a different simulation file.

    Is there a way for me to do write files like that? 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • oldmouldy
    0 oldmouldy over 5 years ago in reply to Bogga

    Take a look at the "breakout" library. You could copy / paste the Rbreak (and others that you might need from the analog library) to your own library and then associate the component(s) with those parts instead. For example:

    .model Rdefault RES R=1 ; no temperature coeff

    .model R10uCoeff RES R=1 TC1=10u ; 10ppm linear coeff

    And so on. Then you should be able to Associate parts in the schematics with those libraries (I haven't checked that out) Just check that you then have the Implementation Type as PSpice Model, the Implementation as the Model name and the PSpiceTemplate properties set to couple the schematic part and the underlying model.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Bogga
    0 Bogga over 5 years ago in reply to oldmouldy

    Great thank you very much!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Bogga
    0 Bogga over 5 years ago in reply to oldmouldy

    Great thank you very much!

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