Configuration in ngspice

Fahim
2012-08-24
2013-06-12
  • Fahim
    Fahim
    2012-08-24

    Hi,

    I want to add library for some others software to link it with ngspice. Like we have link of xspice with ngspice.

    Could you please let me know the if there was any document created when xspice was linked with ngspice,so that I can follow the same steps.

    Regards,
    Fahim Khan

     
  • Holger Vogt
    Holger Vogt
    2012-08-25

    Fahim,

    all literature I am aware of is cited in
    http://ngspice.sourceforge.net/literature.html.

    If you want to analyse where XSPICE additions to the ngspice source code are located, just check for
    #ifdef XSPICE
    in the source files (roughly 200 entries).
    So it is not only linking in the files to found in ngspice/src/xspice.

    Regards

    Holger

     
  • Fahim
    Fahim
    2012-08-27

    Hi,

    How about adding new library in ngspice.

    Regards,
    Fahim

     
  • marcel hendrix
    marcel hendrix
    2012-08-27

    > I want to add library for some others software to link it with ngspice.
    > Like we have link of xspice with ngspice.

    What do you mean exactly?
    Circuit models can be provided through the classical SPICE mechanisms (.lib files)

    One step higher is using XSPICE to write code models. In that case you can add arbitrary existing computational software in the form of (behavioral) models.

    The ultimate would be to add something like Matlab/Simulink/Scilab/xCOS dynamically (co-simulation). Again, you can do this through XSPICE. I will contribute code models that can communicate to Simulink/xCOS using (operating system) sockets, as soon as I have some time to document them. The models let you execute Matlab code at every simulator time step.

    -marcel