Re: [ng-spice] [ng-spice-devel] a bit more
On Thu, 3 Feb 2000, Francesco Doni wrote:
> We should maintain only one development tree.
>
> Please Stephen, help us with your editing pass at the letter text,
> its your mother tongue and you are welcome.
OK, I will try to spend some time with the text this weekend.
> Kev, who is relocated to Silicon Valley, offered a "local" help.
My new day job takes me to the Valley periodicly now too, but
unfortunately all of my university contacts out there are at Stanford and
not Berkeley.
> Now, a bit more on the technical ideas I've posted to
> the develop mailing list.
To sumarize, it sounds like you are talking about a sort of "interpreted"
models in addition to compiled models. In the commercial spices, one can
usually do somthing of this sort using subcircuits that contain various
predefined models (resistors, etc) and dependent voltage or current
sources that are controlled by arbitrary arithmetic expressions involving
constants and voltage/current measurements at other nodes. I don't
think a new language is necessary to implement your idea.
Implementing these expression-controlled sources in a compatible way would
be a start. For greater utility, two enhancements come to mind.
1. The ability to map a model name or mosfet model-level-numer into such
a subcircuit. I think this could be mostly an internal syntactic
transformation. It would let you continue to use for
example "m" mosfet elements while implementing the model as a
subcircuit.
2. table-lookup and other programming-language-like functions alongside
the traditional built-in arithmetic operations.
3. APIs and utilities to ease the pain of transforming such
subcircuit+arithmetic based models into C for compilation.
Steve
--
Steve Tell | tell@cs.unc.edu | http://www.cs.unc.edu/~tell | KF4ZPF
On Leave from UNC working at Chip2Chip, Inc.
Partial thread listing:
- Re: [ng-spice] [ng-spice-devel] a bit more, (continued)
Letter to Prof. Vincentelli Draft 2,
Paolo Nenzi
LNg-spice fix,
Paolo Nenzi
NG SPICE REWORK 6,
Paolo Nenzi