Closed felix-salfelder closed 3 years ago
On Sat, Sep 29, 2018 at 11:43:47PM -0700, in3otd wrote (#872):
now you got me curious: what's this loophole?
subcircuit bodies in a .lib file component models are not parsed properly. but still passed on verbatim to netlist.txt.
this is how
<Model> .Def:filename_test nin nout PARAM1="1" PARAM2="2" test:a nin nout .Def:End </Model>
gives you a component "test" in simulations.
We could document it and have it become a feature.
if this is useful to somebody, i recommend to fix it first. a component declaration such as
<Component test> <Description> some random test </Description> <Symbol> <.ID 19 -21 STH "1=PARAM1=0=foo"> <.PortSym 0 30 1 0> <.PortSym 0 -30 2 270> </Symbol> </Component>
should give an instance represented as "test:mytest nin nout PARAM=..." within netlist.txt (this does not work currently).
On Sat, Sep 29, 2018 at 11:43:47PM -0700, in3otd wrote (#872):
subcircuit bodies in a .lib file component models are not parsed properly. but still passed on verbatim to netlist.txt.
this is how
gives you a component "test" in simulations.
if this is useful to somebody, i recommend to fix it first. a component declaration such as
should give an instance represented as "test:mytest nin nout PARAM=..." within netlist.txt (this does not work currently).