So "they" have buggered SPICE some.. Back in the good old DOS daze, there was a command .STEP which one could recalc with specified parameters changed in an arbitrary manner; each STEP value of a given item being set to specified values (which could be randomly chosen). *poof* cannot do that anymore. And what the heck happened to .ALTER ??
This command causes an analysis to be repeatedly performed while stepping the temperature, a model parameter, a global parameter, or an independent source. Steps may be linear, logarithmic, or specified as a list of values.
Example: .step oct v1 1 20 5
Step independent voltage source V1 from 1 to 20 logarithmically with 5 points per octave.
Example: .step I1 10u 100u 10u
Step independent current source I1 from 10u to 100u in step increments of 10u.
Example: .step param RLOAD LIST 5 10 15
Perform the simulation three times with global parameter Rload being
5, 10 and 15.
Example: .step NPN 2N2222(VAF) 50 100 25
Step NPN model parameter VAF from 50 to 100 in steps of 25.
Example: .step temp -55 125 10
Step the temperature from -55°C to 125°C in 10-degree step. Step sweeps may be nested up to three levels deep.
.ALTER is specific to HSpice, and re-runs the simulation with changes that can include .LIB variations. I force that capability by concatenating the .CIR file upon itself, then manually editing the changes. PITA, but it works.
Maybe Mike could add .ALTER to LTspice.
I'm almost a convert. That feature could pull me closer to being a proselytizer ;-) ...Jim Thompson
--
| James E.Thompson, CTO | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
That is NOT what .STEP used to do; it is that difference that i am ranting about. Quote from old DOS SPICE manual: "old" .STEP syntax: .STEP variable value1 [value2...(up to 20)] Examples: .STEP Vdd 3V 5V 6V .SEP RLOAD 50 100 200 .STEP IBIAS 1mA 2Ma 10mA This statement causes the simulation to be repeated for all of the specified values of the parameter (similar to the .TEMP card). If there are .ALTER or .TEMP cards in the input file thei will be done for each parameter calue.
.ALTER would "repeat simulations" for each change. ...Jim Thompson
--
| James E.Thompson, CTO | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
It occurs to me that you also have the syntax wrong. The above should be...
.STEP Vdd LIST 3V 5V 6V .STEP PARAM RLOAD LIST 50 100 200 .STEP IBIAS LIST 1mA 2mA 10mA
LTspice may allow the second example without the "PARAM" as LTspice periodically does things different than standard.
Note: Incremental stepping would be
.STEP LIN Vdd 3V 5V 1V
-or-
.DC LIN Vdd 3V 5V 1V
...Jim Thompson
--
| James E.Thompson, CTO | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
.ALTER would be awfully handy if, as I have to do, need to run simulations over process corners, temperature AND voltage variations.
I'll see if my son can't come up with a post-processor to massage the .CIR file before running, to emulate .ALTER ...Jim Thompson
-- | James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at
formatting link
| 1962 | I love to cook with wine. Sometimes I even put it in the food.
Edit the concatenated file to have the includes properly numbered.
Just occurred to me that this will only work repetitively with simulators that create separate .CIR and .NET files, like PSpice. Otherwise you'd have to redo the .CIR file every time.
In PSpice just off-name the concatenated .CIR file, then save-as the proper name after you make changes in the schematic (netlist).
A bit cumbersome, but maybe not so much... even with .ALTER you have to type out all the variations, so typing into separate files is the only issue.
Wonder why I'm posting on Christmas day? We're celebrating tomorrow so that each family can do their own thing, then drive to Oni and Opa's house for a all-family event. ...Jim Thompson
--
| James E.Thompson, CTO | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
PSpice and occasional use of LTspice ...Jim Thompson
--
| James E.Thompson, CTO | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
Nowhere have you said what flavor of "Spice" you are using??
There are ways to parameterize, using tables and/or equations, to get multiple items changing value as desired.
But you seem more interested in being argumentative than learning. ...Jim Thompson
--
| James E.Thompson, CTO | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
DOS version of WHAT? Berkeley? 2G6? 3F3? Some private compilation?
I found a copy of the 3F3 manual. Nary a mention of .STEP ...Jim Thompson
--
| James E.Thompson, CTO | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
I've been using Spice for a very long time, started on a VAX780, with Spice compiled in Fortran, then on DOS (PSpice, with hand-written netlists :-) ...Jim Thompson
--
| James E.Thompson, CTO | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
I think Baer is just a troll. Nothing he ever posts ends up making sense. ...Jim Thompson
-- | James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at
formatting link
| 1962 | I love to cook with wine. Sometimes I even put it in the food.
TopSPICE, Mixed-Mode Circuit Simulator by Penzar Development, Rev 2.6 (C) 1993, PO Box 10358, Canoga Park CA 91309 (818)594-0363. The address and phone number _might_ have changed during the intervening few days.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.