Quantcast
Channel: Cadence PCB Design Forum
Viewing all articles
Browse latest Browse all 5525

Using Parameters in Pspice models

$
0
0

Is this possible? As an example I set R1VAL to 10 using a parameter block. Then I edit the model of an Rbreak resistor and type

.model Rbreak RES R={2*5} dev=1%

I set the value of the resistor to  {R1val*10} and it behaves like 1k 1% resistor. No problems up to here. 

The problems starts when I try to use the R1val parameter in the dev statement. My goal is to be able to set up parameters that can be changed which would in turn effect the dev values for the resistors. This is to be able to quickly simulate different mission enviroments with different amounts of radiation and temperature.

So here is what I try, I type dev={R1val*2} and then run worst case analysis and the resistor does not behave like a %20 resistor. Even when I take the "math" away and just use dev={R1val}, it does not look like a %10 resistor. One of the worst case lines actually go down below zero and show negative voltage at a node that needs to be somewhere around 5V.

On top of all this, if I use too small of a value for R1val such as 1 or 2 and then use dev={R1val}, simulation gets aborted due to " can't divide by zero" error.

I have no idea what is going on, can some one help?

 

Andy.   


Viewing all articles
Browse latest Browse all 5525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>