Howdy,

I've been playing with gschem, gnetlist, ngspice, and gnucap, and I would like to find a way to pass extra parameters to a .subckt.

eg. I would like to have a symbol with some attribs like this:

refdes          X3
model-name      POT
model           VALUE=10k SET=0.5
file            ../spice_models/pot.mod

and have gnetlist spit out a line like this:

XU3 10 9 0 POT VALUE=10k SET=0.5

and pot.mod could be something like:

.SUBCKT POT 1 T 2 PARAMS: VALUE=1K SET=0.5
RT 1 T {0.999 * VALUE * (1-SET) + 0.0005 * VALUE}
RB T 2 {0.999 * VALUE * SET + 0.0005 * VALUE}
.ENDS

I've googled hither and yon, looked at gnet-spice-sdb.scm but couldn't find anything definitive. Is there some other attribute that you might put a list of parameters in?

        Thanks,
        Clif


_______________________________________________
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user

Reply via email to