Holger Vogt
01742eefef
The PSPICE area token for a device instance may be not only a number,
but also a parametrized token like {tok}
7 years ago
Holger Vogt
9a904cb952
prevent crash upon wrong user input
7 years ago
Jim Monte
1665b53b84
[PATCH #59 ] Made INP*Cat() functions more modular and efficient. Also
eliminated the possibility of a buffer overrun in INPstrCat() due to an error
in the calling funciton.
7 years ago
Holger Vogt
e6a05bda7d
remove the token mfg=nfgname from each .model statement
7 years ago
Holger Vogt
61039c2736
add a new function gettok_model to consider {...} expressions
in VDMOS .model statements
7 years ago
Holger Vogt
ad5ad8270f
correct the temperature replacement in ps
TEMPER is in degrees °C
7 years ago
Holger Vogt
5b21caae98
correct the command name to 'setcs'
7 years ago
h_vogt
a0d87048e6
command.c, inpcom.c, add command 'setcs': like command 'set',
but case sensitive, and thus keeping upper or lower case
of subsequently following variable name and other letters.
9 years ago
Holger Vogt
db13f66519
typo
7 years ago
Holger Vogt
7706889a0a
inpcom.c, fix bug no 384
do not quote fourth token in f, h lines
otherwise if dev name equals param name parsing fails
7 years ago
Holger Vogt
16978f8bf6
inpcom.c, add alternative noise flag 'noise=1'
7 years ago
Holger Vogt
d2d2178407
inpcom.c, remove compiler warnings about
potentially uninitialized local variables and
assignment within conditional expression
7 years ago
Holger Vogt
ee843a4c2c
remove memory leak in noise selection for behavioral r
7 years ago
Holger Vogt
6335c271b2
add a syntax check for the incoming netlist.
check if an .if statement is used, then skip
deleting unused models and subcircuits (may be
required when using commercial libraries) .
7 years ago
Holger Vogt
72110dc65d
noise caculation in behavioral resistors is switched on
by the instance flag 'noisy=1'. Default is a noiseless resistor.
7 years ago
Holger Vogt
9fb2aac952
inpcom.c, skip nois calculation of behavioral resistor
by adding instance parameter noisy=0
7 years ago
Holger Vogt
163f569eb2
Make the new nodes for current measurement i(xxx) unique
by adding a serial number.
7 years ago
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'
7 years ago
Holger Vogt
7a1218cc0e
fix ouput redirection for 'print' command
7 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