Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 Command allowing model substitution

open
nobody
5
2002-02-27
2002-02-27
Anonymous
No

Hello,

I believe a good feature to include in ngspice would be a command that allows model substitution
through the command line. This is useful when running a lot of simulations where you only change
which models are used. This way you would not have to text edit the netlist at all. For example, if
you have several components/models you want to compare which are pin-pin compatible (say
similar products from different manufacturers). Then you can make several input files which call
the commands you use when running your simulation, one file per component you wish to simulate.
This is much easier than text editing a netlist file everytime you want to try a different
component/model somewhere.

The command should search through the entire netlist file, replacing one model filename with
another. Basically it can be described as a search and replace, which can be run through the
ngspice command line. An example syntax is like this:

replacemod <original> with <new>

If <orginal> is not found within the netlist file, ngspice should display a warning saying <original>
was not found. This would let the user know that there is a mistake.

Please inform me if you believe this is a feasible addition for the next release. If you have any
further questions about this feature, or need clarification about something, feel free to ask. Thank
you for your time!

Jared

Discussion

  • Jared R. Jones
    Jared R. Jones
    2002-03-01

    Logged In: YES
    user_id=163243

    I apologize I had not logged in when I posted this message.
    My email is jared.jones@psualum.com

     
  • Logged In: NO

    Just use perl!