[ng-spice-devel] Netlist format extension
If a jobs worth doing ......
What I'm going to propose now is more complicated, but
here goes anyway.
Suppose we make the device line -
\name ( n1 n2 .... nN ) modelname param=val ... param=val
but we also allow -
\name ( term1@n1 term2@n2 .... termn@nN ) modelname param=val ... param=val
The both forms allow the name and the modelname to be
unambiguously decided, independant of the actual device
type. In order to specify a device type without a model,
(like using a resistor without a model) then modelname
would be the actual devicetype name.
The first form allows defaulting of terminals at the end
of the list, and the second form allows defaulting of any
terminals, simply by omitting them. The model could contain
default net names for each type.
To make it device independant, the () and the = need to be
there, to make the modelname clear.
What about -
\name n1,n2, ... ,nN modelname param=val ... param=val
where terminals at the end of the list can just be omitted
to be defaulted, and other terminals can be defaulted by
putting nothing between the ,'s, e.g. -
\name n1,,n3, ... ,nN modelname param=val ... param=val
Any opinions ?
Cheers,
Alan
Partial thread listing: