Holger Vogt
f1fdb5b2a7
fix current measurement by i(xxx) in B sources: first step,
allow spaces before 'i(' token.
Current measurement for devices in series connection
is still not possible.
7 years ago
Holger Vogt
639bfc6280
no lower case after redirection sign > for command 'asciiplot'
8 years ago
Holger Vogt
7a1218cc0e
fix ouput redirection for 'print' command
8 years ago
Holger Vogt
157aaee6f1
Bug #332 , reported by M. Hendriks
Add a warning if statements .control ... .endc are misplaced or missing
8 years ago
Holger Vogt
530cac53c5
bug 337: keep '-' as sign of number following tc1, tc2
8 years ago
Holger Vogt
8d89202161
keep sign together with number when preparing B source pwl (and others)
Seems to be optional, B Source handles numbers with offset sign
8 years ago
Holger Vogt
113060473e
bug 337: replace atof by INPevaluate to allow ngspice numbers
in tc1 or tc2 tokens.
8 years ago
Holger Vogt
41fbc0bb1d
inpcom.c, command gnuplot: no lower case in xlabel, ylabel, title
8 years ago
Holger Vogt
9ab153ddc2
Exclude from model search all lines beginning
with a character contained in this list: *vibefghkt
8 years ago
Holger Vogt
277842f948
update to model search function
8 years ago
Holger Vogt
78ab9c477b
Update to the model name search function:
A model name is any token not being a true ngspice number,
except for tokens with some prohibited front characters
{*^@\\\' .
8 years ago
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