Mail Archives: geda-user/2014/01/28/22:10:08
On Jan 28, 2014, at 3:10 PM, al davis wrote:
> On Tuesday 28 January 2014, Vladimir Zhbanov wrote:
>> Currently, spice-sdb doesn't permit adding parameters to
>> subcircuit components with the refdes X?.
>
> When spice-sdb was written, neither gnucap nor ngspice supported
> subcircuit parameters. Now they both do.
It goes deeper than that. The approach spice-sdb takes to device parameters is to have a separate scheme function for each device that allows parameters. That function "knows" the names of the parameters, and therefore can determine which symbol attributes represent parameters.
This obviously isn't going to work well for parameterized subcircuits. It also doesn't work well for basic devices, since different SPICE dialects accept different parameters. For example, spice-sdb accepts parameters area=, l=, w=, and temp= for a resistor. But recent ngspice releases also accept ac=, m=, scale=, dtemp=, tc1=, tc2=, and noisy=, and do not accept area=.
The only reasonable way to navigate this is to put the user in control. This is a reason why spice-noqsi uses a spice-prototype= attribute to define how a symbol instance and its attributes are to be translated into SPICE code. Defaults for specific device= attributes imitate the old spice-sdb behavior.
John Doty Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com
- Raw text -