Hi all,

On Sonntag, 4. November 2007, Werner Hoch wrote:
> I've play with the component-library-command backend of libgeda.
> I'm posting the code later. It's currently a little bit messy ;-)

I've created a first snapshot of my current files. 
This is a snapshot for the braves and not intented for productive use.

There are some steps required to use the model library.

1. Download the archive and unpack it:
   http://www.h-renrew.de/download/spicelib-0.0.1.tar.gz

2. Read the README file or take a look into the Makefile

type "make all", it
  * downloads some models from the vendors nxp and ti (wget)
  * unpacks the model archives (zip)
  * copies the models to a different directory model_library/
  * create a html model index in the model_tests/ directory

3. connect the created libraries to gschem with the gedaparts script
You have to add a few lines to one of the configuration files.
e.g. to geda-clib.scm
------
; add a library with the command backend
; Syntax:
; (component-library-command "[listcommand]" "[getcommand]" "[name]")
;
(component-library-command
 "/home/werner/oss/geda/spicelib/scripts/gedaparts nxp_bipolar.index"
 "/home/werner/oss/geda/spicelib/scripts/gedaparts nxp_bipolar.index"
 "0_NXP bipolar transistors")
(component-library-command
 "/home/werner/oss/geda/spicelib/scripts/gedaparts nxp_diodes.index"
 "/home/werner/oss/geda/spicelib/scripts/gedaparts nxp_diodes.index"
 "0_NXP diodes")
(component-library-command
 "/home/werner/oss/geda/spicelib/scripts/gedaparts ti_opamps.index"
 "/home/werner/oss/geda/spicelib/scripts/gedaparts ti_opamps.index"
 "0_TI opamps")
------

4. (optional) run test simulations for all models
You need several programms to run the tests:
I've used ngspice17 for the diode and the opamp tests and gnucap 0.35 
for the bipolar transistor tests. 
In addition you need the python modules numpy and matplotlib.

The tests for all indexed models take about one hour on a recent 
computer and some disk space.

Let me know whether the steps worked for you. 
I'm going to improve the scripts and add some more models and libraries.

Regards
Werner


_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to