As you know, I am building the new digital parts library based on XSPICE parts.
Low level gates like 2 ip NAND and JK Flip Flops are no problem.
Higher level functions like 4 bit binary and Decade counters can be built from these low level gates but it would be good (less memory hungry!) if we could use the XSPICE State Machine to build them instead.
<http://ngspice.sourceforge.net/docs/ngspice-manual.pdf#subsection.12.4.18>
The problem is that each State Machine needs a definition file but I do not think we have a way to upload and read (or write) a user file.
This is also a problem because it means that we can not use things like the File Source:
<http://ngspice.sourceforge.net/docs/ngspice-manual.pdf#subsection.12.2.8>
and we do not have a nice way to include files for things like user libraries or defining lots of parameters that may be common to many circuits or models.
This makes many of our models much bigger than they need to be because each one has to have all the parameters in.
If the common parameters could be stored in separate files then it would be much easier to change parameters in many models at once.
A good example here is the new logic devices library. The first set of devices are based on CMOS 4000 series logic and all have the same logic family parameters.
To create a new logic family, the family parameters in each model have to be edited. If they were in a separate file that was read (.lib or .inc) by each model then only that one parameter file would need to change to createa new logic family.