SuperSpice .subckt and variable

Guest
I want my subcircuit to have variable/parameter/value. Something like
every resistor has resistance.. So, when I draw schematics, its very
easy to change resistor value and each and every resistor can have
different value. I want that same thing for my .subckt and not to have
to make different model for every possible value.

for eg. this is what i got and it works real nice:

..SUBCKT KP_XN _ssi_pin0 2
* _SS_Symbol [C:\Program
Files\AnaSoft\SuperSpice\System\SchematicBlocks.ssm] [2PinBlock]
B1 _ssi_pin0 2 I=13.5/V(_ssi_pin0,2)
..ENDS


but I wish for something like this:

..SUBCKT KP_XN _ssi_pin0 2
* _SS_Symbol [C:\Program
Files\AnaSoft\SuperSpice\System\SchematicBlocks.ssm] [2PinBlock]
B1 _ssi_pin0 2 I=a/V(_ssi_pin0,2)
..ENDS


and to be able to change value of a when drawing schematics the same
way I change value of ordinary resistor.
Is it possible?

TIA
 
On 24 Mar 2005 00:40:37 -0800, orangeKDS@mail.ru wrote:

I want my subcircuit to have variable/parameter/value. Something like
every resistor has resistance.. So, when I draw schematics, its very
easy to change resistor value and each and every resistor can have
different value. I want that same thing for my .subckt and not to have
to make different model for every possible value.

for eg. this is what i got and it works real nice:

.SUBCKT KP_XN _ssi_pin0 2
* _SS_Symbol [C:\Program
Files\AnaSoft\SuperSpice\System\SchematicBlocks.ssm] [2PinBlock]
B1 _ssi_pin0 2 I=13.5/V(_ssi_pin0,2)
.ENDS


but I wish for something like this:

.SUBCKT KP_XN _ssi_pin0 2
* _SS_Symbol [C:\Program
Files\AnaSoft\SuperSpice\System\SchematicBlocks.ssm] [2PinBlock]
B1 _ssi_pin0 2 I=a/V(_ssi_pin0,2)
.ENDS


and to be able to change value of a when drawing schematics the same
way I change value of ordinary resistor.
Is it possible?

TIA
Yes. But I'm not all that conversive in "B" notation, so I'll leave
it to Kevin or another SS user to do the details.

In PSpice you would declare

..param a = <value>

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.
 

Welcome to EDABoard.com

Sponsor

Back
Top