Closed kdotom closed 1 year ago
This is just an ngspice Syntax error. Please see the netlist below with a working example how to use your model:
OSDI Example
V1 in 0 DC 0
R2 out 0 1k
* best syntax:
.model testmodule_model testmodule
+ x=1e9
* works too:
*.model testmodule_model testmodule x=1e9
* does not work:
*.model testmodule_model testmodule(x={5})
N1 0 out in testmodule_model
.control
pre_osdi model.osdi
*op
dc V1 0 2 0.01;
plot v(out)
.endc
.end
Confirmed. Thanks!
The model compiles, but when I attempt to set the parameters in SPICE, the OSDI model uses the default value as opposed to the value entered in spice.
e.g. for the following module
with a spice specification of
The simulation result still uses x=0.
Am I missing something or should this work?