Back to Forums
5 posts / 0 new
Last post
#1 Mar 13, 2017
firius2010
Offline
Last seen: 7 years 8 months ago
Joined: 2017-03-13 23:39

Adding parameters to Optimizer

Good afternoon, I'm trying to learn how to use the optimizer advanced analysis in PSPICE for this propose, I sketch a tipical SC MOS amplifier using a MBREAKN mosfet transistor I edited the PSPICE model to included for example a different VT0, and my idea is For example use the OPTIMIZER to optimize this parameter but when I try to include this parameter in optimizer I can not find it, so my question is:

 

The parameters added in a pspice model of a component can be optimized and how do I add this to the optimizer window? In the help I read that for example the Iss of a diode can be optimized so I suppose that it is also possible for example whith W L of a transistor.

 

thank you very much.

Tue, 2017-03-14 02:59
alok
Offline
Last seen: 1 year 8 months ago
Joined: 2016-05-10 23:49

For optimizing a SPICE model parameter - you need to first declare this model parameter as variable. It will then start showing up in Optimizable paramater list. Below is an example of NMOS model with few parameters(CBD, RDS, VTO) declared as variable

.model power_Mbreakn NMOS W=1 L=1u LEVEL=3 CBD={CBD_V} RDS={RDS_V} TT=1n VTO={VTO_V}
+  RD=0.1 RS=10E-3 RG=0.5 CGSO=1E-9 CGDO=100E-12

Simplest way to do this is by doing Edit model and modifying these parameter in text view.

You also need to declare the variables (CBD_V,  RDS_V, VTO_V) as GLOBAL parameters in your circuit/schematic.

Then these parameters should show up in optimizable paramater list as PARAM and you can set the range for these and Optimzation engine would be able to tweak these in range depending upon the optimization goal and impact of these parameters on the goal.

Tue, 2017-03-14 11:44
firius2010
Offline
Last seen: 7 years 8 months ago
Joined: 2017-03-13 23:39

Many thanks, with your indications I could add the parameter to the optimizer and do some tests, I did not know how to define global variables then I search and found this link: http://m.eet.com/media/1179065 I say it in case anyone sees the Question can solve it also like me, I think I will be entering more often to the forum, thank you very much

Thu, 2023-11-30 02:00
jackbeauchamp
Offline
Last seen: 11 months 3 weeks ago
Joined: 2023-11-30 01:58

To add a parameter from a component's model to the optimizer window, you need to follow these steps:

Open the component's model file in the text editor within smash karts PSPICE.
Locate the parameter you want to optimize. For example, if you want to optimize the VT0 parameter of the MBREAKN MOSFET, find the line of the model that defines VT0.
Add ".option OPT=VarName" to the end of the line, where "VarName" is the name you want to assign to the parameter for optimization.
Save the model file.
Now that you have added the parameter to the model, you can proceed to include it in the optimizer window by following these steps:

Open the optimizer window in PSPICE.
Click on the "Design Variables" tab.
Click the "Add" button to add a new variable.
In the "Name" field, enter the same name you assigned to the parameter in the model file.
Specify the optimization range and other properties for the variable as needed.
Click "OK" to add the variable to the optimizer window.
By adding the parameter to the model and including it in the optimizer window, you can now optimize its value using the PSPICE optimizer. Remember to set the optimization goals and constraints appropriately before running the optimization.

Tue, 2024-09-10 10:14
jhon set
Offline
Last seen: 1 week 6 days ago
Joined: 2022-09-12 11:46

Collaborations with health experts: Partner with doctors, naturopaths, and wellness influencers to promote your products and offer expert-backed guidance. visit this site

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