Back to Forums
6 posts / 0 new
Last post
#1 Feb 1, 2021
eddoh
Offline
Last seen: 3 years 9 months ago
Joined: 2021-02-01 05:48

How create AA enableb new symbols in library

Sorry guys,

newcomer here.

I am trying to create new symbols in my personal library to perform AA simulation and at the same time specify secific parameters for that kind of device (example: chip resistors on different sizes - like 0603 0805 and so on- each with their power rating etc.

What I tried is saving a copy of  the R symbol from the ANALOG.OLG library, which is AA enabled, and renaming it to, say R_0603.

It looks like if I rename it, AA does not show the simulated component.

I think it has to do with the PspiceTemplate property value, which I read being 

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|

I have worked out a broad understanding of this (I cannot understand the part RES R=1 though)

How should I modify this?
Or is there an alternative to create sumbols simuylating resistors and being AA enable?
Thanks

Mon, 2021-02-01 08:13
dshikhar
Offline
Last seen: 2 years 7 months ago
Joined: 2021-01-21 05:38

Hi,

Before you can use a part symbol from an existing OLB, you need to know the type of simulation model attached with the source part. If the original part symbol is attached to a device characteristic curves-based PSpice model, you only need to modify the implementation property. In case the original part symbol is attached to a template-based PSpice model, you will need to add the IMPLEMENTATION and the PSPICETEMPLATE property to the copied model.

It is recommended that unless you are very comfortable with different types of simulation models supported by PSpice, you should avoid situations where PSPICETEMPLATE property needs to be changed. You can either create symbols using the Model Editor or if you want to copy a symbol, select a symbol of same type and change the IMPLEMENTATION property.

Hope this helps.

Thanks

Mon, 2021-02-01 08:37
eddoh
Offline
Last seen: 3 years 9 months ago
Joined: 2021-02-01 05:48

Thanks

not doing nothing really daring here - just trying to define two different type of resistors (each with their smoke params and Tol and TC1 and TC2) so that depending on the results of the AA analysis I can replace the component without having to specify manually the parameters and footprint once again.

As far as I understand, PSPICETEMPLATE is defining a plain 

Rxx pin1 pin2  ResValue  TC=tc1val,tc2val         if TOLERANCE is not defined

If TOLERANCE is defined

Rxx pin1 pin2 modelRes ResValue  TC=tc1val,tc2val 

.model modelRes RES R=1 DEV=tolVal% TC1=tc1val TC2=tc2val 

 

instead. All of this should work regardless of the schematic name - I wrote here to understand if there is something else to fix in the schematic, as this sounds weird to me

Mon, 2021-02-01 08:54
dshikhar
Offline
Last seen: 2 years 7 months ago
Joined: 2021-01-21 05:38

Yes, your understanding about PSPICETEMPLATE value is correct.

From your explanation, looks like you are not seeing the renamed part in AA because you havent' configured your my.olb in simulation setting dialog box.

PSpice will search the model only in the libraries that are configured for the project. Model libraries will be searched in the same sequence as listed in the Library Files list box in the Libraries tab of the simulation setting dialog box. Since my.olb is a custom library, you might have to add this in the Library Files list box.

Thanks

Mon, 2021-02-01 09:21 (Reply to #5)
eddoh
Offline
Last seen: 3 years 9 months ago
Joined: 2021-02-01 05:48

Thanks,

the lib is properly configured.
I'll make the example a bit clearer: here is a part of the schematics in my library: Screenshot-2021-02-01-151021

R is a direct copy from ANALOG.OLB, R1 is again a direct copy from ANALOG.OLB, just renamed
In a test circuit, I insert an instance of R (here with refdes R2) and of R1 (here with refdes R3). I run the simulation which runs smoothly

Screenshot-2021-02-01-151634

But when I switch to AA, R3 does not show up - that's the issue

Screenshot-2021-02-01-152004

Wed, 2021-06-02 05:51
ampPSpice
ampPSpice's picture
Offline
Last seen: 1 year 4 months ago
Joined: 2016-05-31 06:52

Hi Eddoh,

Please verify that you have

  1. Placed the VARIABLES part from Place - PSpice Component - Search
  2. a property on R3 called TOL_ON_OFF = TRUE

 

NB, try comparing properties between the working resistor and R3 (select both and push Ctrl + E on keyboard)
Notice any differences between the two columns?

 

Br,

Anders

Download PSpice and try it for free! Download Free Trial
Cadence