Holger Vogt
cbab726d69
use memcpy instead of strncpy to copy an exact amount of characters
remove unused function header
6 years ago
Holger Vogt
c520a9a4b9
if lt(a) comp mode is set, replace 'noiseless' by 'noisy=0' in resistors
6 years ago
Holger Vogt
572daed2ec
Remove '.backanno' if LT campatibility mode is set
6 years ago
Holger Vogt
f5ebea5e9f
use internally predefined pow() function
6 years ago
Holger Vogt
4c80a1ab7d
fix a bug, use ciprefix instaed of cieq, cieq led to
always FALSE if statement
6 years ago
Holger Vogt
84ff135e5b
syntax check for vdmos instances with 'thermal' flag
6 years ago
Holger Vogt
9e8e50cb57
Fix a bug raised by Sambeet in
[Ngspice-users] Problems with xspice limiter block:
Don't treat .model limit_comp limit(gain... as a function
if PSPICE compatibility is set.
6 years ago
dwarning
edc5b5a4d4
VDMOS prevent fault if thermal switch is given but thermal nodes are not
6 years ago
dwarning
e9abecc8c7
change vdmos flag to thermal, not to confuse with b4soi
6 years ago
dwarning
3686dbfb78
filter only mos instances with thermal switch
6 years ago
dwarning
791f18053f
change vdmos flag to thermal, not to confuse with b4soi
6 years ago
Holger Vogt
71ad2903ff
plug a memory leak in inpcom.c vdmos code
6 years ago
Holger Vogt
7f085144a9
remove all the remains of quote() and strip() that had been
used to modify the eigths bit of a character or string.
The functions had been switched off some time ago.
We now need all bits of a char for extended ascii or utf8
6 years ago
Holger Vogt
38bb89663d
replace old_x11 by HAVE_LIBXFT defined in configure
6 years ago
h_vogt
7c3a305d43
add wide char for string i/o under Windows
add utf-8 systax check
9 years ago
Jim Monte
a53cd3a3e9
fixed path created by ngdirname in Windows. Also added const to parameters whose arguments do not change and fixed some potential buffer overruns.
6 years ago
Holger Vogt
ec1d655289
In VDMOS device, if instance parameter tnodeout is set,
check for exactly five nodes
6 years ago
dwarning
0362d63094
update vdmos with self-heating network and tj and tcase terminal
6 years ago
Holger Vogt
b699c7fad8
add the PSPICE vswitch S_ST variant,
which resolves to the classical ngspice sw switch
6 years ago
Holger Vogt
0c74820821
enable PSPICE compatible ~(~v(9)&v(8))
6 years ago
Jim Monte
2f3b9d0f2d
Used Win32 function PathIsRelativeA() to identify an absolute path instead of checking the string since the system function may handle more cases (network shares, etc.). Also reviewed formatting that was done on inpcom.c by a code beautifier in an earlier commit. Nearly all of it was an improvement, but a few cases were reverted back to closer to the original form. One particular instance was comments where a list of steps was given one per line.
6 years ago
Holger Vogt
ee5f4cfc29
Replace B source pwl by XSPICE PWL Controlled Source
that has smooth rounded and differentiable corners.
This is used in the replacem,ent operation evaluating
Exxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2)
6 years ago
Holger Vogt
b76fbf99fe
Replace B source pwl by XSPICE PWL Controlled Source
that has smooth rounded and differentiable corners.
Microchip or On-Semi OpAmps that needed gmin and source
stepping for operating point calculation now converge
without, others like MCP6001 that generally refused
to converge are o.k. now. Reason is the heavily used
Gxxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2)
from the OpAmp models.
6 years ago
Holger Vogt
42e99ec66c
safeguard against crash if instance lines are incomplete
7 years ago
Holger Vogt
03c5870034
in ps compatibility mode: translate t_measured to tnom
7 years ago
Holger Vogt
552d587deb
readability
7 years ago
Holger Vogt
976c949c86
avoid false warnings of model not found
7 years ago
Holger Vogt
aa726c9864
Make ...search_identifier safe against NULL arguments
Otherwise strstr will fail
7 years ago
Holger Vogt
0071ad8569
If a subcircuit is defined more than once,
only read the first one, rename the others und thus discard them.
7 years ago
Holger Vogt
972785095f
Avoid crash, and send error message when r,l,c
instance lines does not have enough tokens.
7 years ago
Holger Vogt
f9deefe326
Skip '\r' when reading lines from a file
7 years ago
Holger Vogt
8fc1b70e93
Bug #424 now lower-casing whenh following the redirection token >
Re-order the code for defining exceptions for not lower casing
7 years ago
Holger Vogt
cdc8d3d054
new_title may contain a \r, remove it
7 years ago
Holger Vogt
9543a5644c
Improve handling of non-printable characters (esp. for Linux)
If there is an isolated non-printable character leading the line,
convert it to *.
In fact there are some, e.g. in device lib TL072.301 from TI.
7 years ago
Holger Vogt
4cf2b5e5ce
remove commenting out unused .model lines
from comment_out_unused_subckt_models().
This now handled by inp_rem_unused_models()
taking appropriate scoping into account.
7 years ago
Holger Vogt
6669cbc17c
add function inp_rem_unused_models().
checking for unused models now also removes models
that are out of scope.
7 years ago
rlar
9e729bc8ee
bug fix, avoid segfault when instantiating a unknown subcircuit
7 years ago
rlar
e2b3dffcff
drop bogus_find_subckt, use a proper scoped search
7 years ago
rlar
96bb0dd941
inpcom.c, introduce inp_add_levels(), add scope to decks
9 years ago
Holger Vogt
d901665517
enable 'res' as valid resistor model identifier
7 years ago
Holger Vogt
1adc3e559c
inp_get_elem_ident(): enable VDMOS devices as identifier m
7 years ago
Holger Vogt
7f95e9d40c
inp_get_elem_ident
model type as input, element identifier as output
7 years ago
Holger Vogt
5a45fdbebb
Skip name and node if searching for 'tc' in an
R, L, or C line. Thus a node name 'tc' would be allowed.
7 years ago
Holger Vogt
6a1b6ced18
Enable tc conversion also for L and C
Even is PSPICE manual does not mention this,
device model makers are using this option.
7 years ago
Holger Vogt
f1cf4103c0
If the comaptibility mode is PS, LTPS or LTPSA, '$' is treated as a valid
character, not a s end-of-line comment delimiter, except for that it is
located at the beginning of a line.
7 years ago
Holger Vogt
aad247621e
raise warning only when params are on the .subckt line
7 years ago
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