Holger Vogt
7787268118
Enable psa, ltpsa compatibility mode
8 years ago
Holger Vogt
b0d79630a4
New variable no_auto_gnd
'set no_auto_gnd' in spinit or .spiceinit will preclude
ngspice to automatically replace 'gnd' by global '0'
8 years ago
Holger Vogt
b3db3c7fd9
Don't modify 'working' address, insert new item (functions etc)
only after ther first line.
8 years ago
Holger Vogt
3930e27501
New compatibility modes (set ngbehavior=??): PS LT LTPS PSA LTA LTPSA
PS: PSPICE comp. in .include files., LT: LTSPICE comp. in .include files.
LTPS: both, PSA: PSPICE comp. in complete input deck,
LTA and LTPSA: comp. in complete input deck for LT or both.
Add functions uplim, dnlim, uplim_tanh, dnlim_tanh.
Replace
D1 A K SDMOD
.MODEL SDMOD D (Roff=1000 Ron=0.7 Rrev=0.2 Vfwd=1 Vrev=10 Revepsilon=0.2 Epsilon=0.2 Ilimit=7 Revilimit=7)
by
ad1 a k asmod
.model asmod sidiode(Roff=1000 Ron=0.7 Rrev=0.2 Vfwd=1 Vrev=10 Revepsilon=0.2 Epsilon=0.2 Ilimit=7 Revilimit=7)
8 years ago
Holger Vogt
e7bcc09bb0
remove memory leak: delete duplicate .param lines
8 years ago
Holger Vogt
2b50ca7271
command 'print': preserve case for filenames after redirection '>'
8 years ago
dwarning
561fdd805c
rm unused variables
8 years ago
Holger Vogt
6ed10583f2
plug small memory leaks
8 years ago
Holger Vogt
19596f0f42
add search in current directory
Patch provided by Uros Platise
https://sourceforge.net/p/ngspice/ngspice/merge-requests/4/
8 years ago
Holger Vogt
7c90004921
add Inp_Path to sourcepath variable
Patch provided by Uros Platise
https://sourceforge.net/p/ngspice/ngspice/merge-requests/4/
8 years ago
Holger Vogt
f354f36121
replace 'magic numbers' by defines, thus setting several char arrays
safeguard these arrays against overflow
set numbers of parameters to 10000
8 years ago
Holger Vogt
0c94ab948b
treat ( ) , like spaces, that is ignore them during
switch parameter conversion
8 years ago
Holger Vogt
10c6c5c38b
Convert .param lines containing 'agauss' and others
into .func (xxx1() 'agauss()', replace all xxx1 entries
by function xxx1().
After subcircuit expansion, replace agauss and others
in B-Line by their suitable values.
8 years ago
Holger Vogt
8fbcb16a57
add fourth parameter to cp_getvar(), in functions missing so far
8 years ago
Holger Vogt
09c876550f
prevent string overflow by adding the string length
to the cp_getvar parameters. Used only with CP_STRING
8 years ago
Holger Vogt
8930690cd2
plug a small memory leak
8 years ago
Holger Vogt
824ac4fbc9
make functions static or add function prototypes
8 years ago
Holger Vogt
b07ae3123e
use only internal memory functions,
replace strdup by copy
8 years ago
Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
free->tfree, malloc->tmalloc, realloc->trealloc
8 years ago
Holger Vogt
a2b52b588e
a space is required between tokens that have got {}
8 years ago
Holger Vogt
92dd6e48d0
make up description comment for pspice_compat()
8 years ago
Holger Vogt
1d9ab3eb5c
PSÜICE compatibility:
R n1 n2 val TC=xx1,xx2 --> R n1 n2 val TC1=xx1 TC2=xx2
8 years ago
Holger Vogt
22b7fa77b5
fix a bug with switches, when no subcircuit is involved
8 years ago
Holger Vogt
2f56feea4a
do not lower-case command 'set sourcepath = XXX'
8 years ago
Holger Vogt
2e0b8b3e34
plug a small memory leak
8 years ago
Holger Vogt
a40ba9ec4e
add a comment
8 years ago
Holger Vogt
ae81481229
white spaces
8 years ago
Holger Vogt
7b6cd86a62
re-write vswitch transformation code:
first scan: check for each .model with vswitch
second scan: check for switch instances
(s lines) using the models
8 years ago
Holger Vogt
f9b11cd619
update to function pspice_compat(), concerning the VSWITCH replacement
only one .model replacement even for several s instances
firstly search in subcircuit at same level, then in top level
8 years ago
Holger Vogt
0cb71b21bb
move ngspice_compat_mode(void) to inpcom.c and make it static
8 years ago
h_vogt
e47ab87385
inpcom.c, multiplier 'm' in subcircuits: exclude all devices not supporting multiplier 'm'
9 years ago
h_vogt
2ece845f59
inpcom.c, responding to bug report 275 by Dominique Michel: commands plot, hardcopy: no lower case letters in tokens following xlabel, ylabel, title
10 years ago
Holger Vogt
5b18732af2
plug some memory leaks
8 years ago
Holger Vogt
a191697bd6
safeguard opening of file for debug output:
may be not allowed if caller is not started
in admin mode.
8 years ago
Holger Vogt
57156e16f6
remove tiny memory leaks in inp_compat()
8 years ago
Holger Vogt
5f5eacc48e
move skipping white spaces to fcn create_circbyline() now ' .end' is acknowledged
8 years ago
rlar
55b2a0218e
noise for behavioural resistor
9 years ago
Holger Vogt
65181ff5c3
enable token 'table' to occur at any place in e source line
8 years ago
Holger Vogt
ffb3800e34
Bug fix: B source pwl lines don't get special handling,
but standard numparam handling of {} tokens
8 years ago
Holger Vogt
c879294a8b
add comment
8 years ago
Holger Vogt
53bac06d11
.model replacement in ako (a kind of) model descriptions
in first level .subckt and top level only
8 years ago
Holger Vogt
d9dbde0593
replace the E source TABLE function by a B source pwl
(used by ST OpAmps and comparators)
8 years ago
Holger Vogt
10c69b8d05
replace S1 D S DG GND SWN by
a1 %v(DG) %gd(D S) swa
8 years ago
Holger Vogt
f25a307886
get the area factor for diodes and bipolar devices
8 years ago
Holger Vogt
9d8148edae
replace T_ABS by temp and T_REL_GLOBAL by dtemp in .model cards
8 years ago
Holger Vogt
13ca544d15
replace & with && and | with || and *# with * #
8 years ago
Holger Vogt
ae9cc17aff
add predefined parameters TEMP, VT after each subckt call
8 years ago
Holger Vogt
77814b8618
add predefined params TEMP, VT, GMIN to beginning of deck
add funcs limit, pwr, pwrs, stp, if, int
8 years ago
Holger Vogt
5ace7ff1fd
exclude simple e and h sources from getting a series voltage source
by undoing the name conversion
8 years ago
Holger Vogt
cfa473ad96
don't print NULL (deallocated lines)
8 years ago