-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpiceGenTcl.tcl
46 lines (41 loc) · 2.02 KB
/
SpiceGenTcl.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
# .|'''.| || ..|'''.| |''||''| '||'
# ||.. ' ... ... ... .... .... .|' ' .... .. ... || .... ||
# ''|||. ||' || || .| '' .|...|| || .... .|...|| || || || .| '' ||
# . '|| || | || || || '|. || || || || || || ||
# |'....|' ||...' .||. '|...' '|...' ''|...'| '|...' .||. ||. .||. '|...' .||.
# ||
# ''''
# SpiceGenTcl.tcl
# Main file of SpiceGenTcl package
#
# Copyright (c) 2024 George Yashin, [email protected]
#
# MIT License
# See the file "LICENSE.txt" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
package require Tcl 9.0-
package require textutil::split
package require csv
namespace import ::tcl::mathop::*
package provide SpiceGenTcl 0.60
interp alias {} dget {} dict get
interp alias {} @ {} lindex
interp alias {} = {} expr
interp alias {} dexist {} dict exists
interp alias {} dcreate {} dict create
interp alias {} dset {} dict set
set dir [file dirname [file normalize [info script]]]
set libDir "${dir}/lib"
lappend auto_path $libDir
set sourceDir "${dir}/src"
source [file join $libDir argparse argparse.tcl]
source [file join $sourceDir generalClasses.tcl]
source [file join $sourceDir specElementsClassesCommon.tcl]
source [file join $sourceDir ngspice specElementsClassesNgspice.tcl]
source [file join $sourceDir ngspice specAnalysesClassesNgspice.tcl]
source [file join $sourceDir ngspice specModelsClassesNgspice.tcl]
source [file join $sourceDir ngspice specSimulatorClassesNgspice.tcl]
source [file join $sourceDir xyce specAnalysesClassesXyce.tcl]
source [file join $sourceDir xyce specElementsClassesXyce.tcl]
source [file join $sourceDir xyce specModelsClassesXyce.tcl]
source [file join $sourceDir xyce specSimulatorClassesXyce.tcl]