forked from ngspice/ngspice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.tcl
100 lines (74 loc) · 4.75 KB
/
README.tcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
*********************************************************************************
*Copied and written by Stefan Jones (stefan.jones@multigig.com) at Multigig Ltd *
*Code based on and copied from ScriptEDA *
*(http://embedded.eecs.berkeley.edu/Alumni/pinhong/scriptEDA/) *
*Copyright (C) 2001 Author Pinhong Chen *
* *
*This program is free software; you can redistribute it and/or *
*modify it under the terms of the GNU Lesser General Public License *
*as published by the Free Software Foundation; either version 2 *
*of the License, or (at your option) any later version. *
* *
*This program is distributed in the hope that it will be useful, *
*but WITHOUT ANY WARRANTY; without even the implied warranty of *
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
*GNU Lesser General Public License for more details. *
* *
*You should have received a copy of the GNU Lesser General Public License *
*along with this program; if not, write to the Free Software *
*Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.*
*********************************************************************************
WARNING!
The text in this document has been prepared in 2006 and is partially outdated.
It is provided here only for reference and may provide some (historical)
information.
Welcome to tclspice README_tcl
This file acompanies ngspice sources starting with ngspice-rework-18. It
describes what tclspice is, its installation, and points to resources that will
help you to start with it. It also contains usefull datas to keep informed,
get help, or get involved in the project.
Enjoy
Lionel (saintel@users.sourceforge.net)
What is tclspice:
tclspice is a variant of ngspice. It share 95% of its code (approx). The
different between plain NGspice and tclspice is the type of binary it produces,
and the way to access it. NGspice is a standalone program that you can execute
and which can either automatically process a spice directives script. It can
also propose you a command line interface.
tclspice is a tcl package name. It is based on libspice shared library. This
library is specifically designed to be loaded in tcl interpreters such as tclsh
or wish. Then all spice directives are available as tcl functions. libspice also
feature some new commands that are usefull for the integration into the tcl
environment.
tclspice differs from ngspice by its printf (bundled to tcl printf), malloc (tcl
malloc), data handling and plotting (BLT toolkit extensions to tcl/tk).
Installing:
Tclspice relies on three packages that are not included in ngspice:
tcl : the tcl command interpreter, for interpretion of user scipt
tk : the graphical extension of tcl, to represent data graphically and for GUIs
blt : BLT toolkit gives number handling and plotting features to tcl/tk
The latest configuration is (not much tested):
tclspice-27
tcl 8.4
tk 8.4
blt 2.4
Tclspice is built and installed the same way as ngspice. Then, after reading this
paragraph, the information you lack will probably be in README file in this directory.
There is a configuration flag to set in order to compile tclspice library rather than
plain ngspice, that is a standalone program. This flag is --with-tcl. It accepts an
argument the path to tclConfig.sh
If you don't provide any argument, configure script will try to find it automatically.
./configure --enable-xspice --disable-cider --disable-xgraph --enable-numparam --with-readline=no --enable-adms=no --with-tcl
If its does not, then it will propose you some possible locations.
can't find Tcl configuration script "tclConfig.sh"
Should you add --with-tcl=/usr/lib/tcl8.4/tclConfig.sh to ./configure arguments?
If it does not, check that tcl8.4 is installed, and manually specify the path.
./configure --enable-xspice --disable-cider --disable-xgraph --enable-numparam --with-readline=no --enable-adms=non --with-tcl=/usr/lib/tcl8.4
Tclspice is not compatible with ngspice graphical code. Then when building tclspice,
--no-x is automatically configured.
Support and help :
First of all (but last recourse), mail me at saintel@users.sourceforge.net
For any kind of information on tclspice:
http://ngspice.sourceforge.net/tclspice.html
It gives plenty of information. There is an index of good resources that you can
read to get into tclspice quickly and proficently.