Holger Vogt
|
42e99ec66c
|
safeguard against crash if instance lines are incomplete
|
2019-11-30 11:33:04 +01:00 |
Holger Vogt
|
03c5870034
|
in ps compatibility mode: translate t_measured to tnom
|
2019-10-05 13:16:25 +02:00 |
Holger Vogt
|
552d587deb
|
readability
|
2019-09-28 16:21:44 +02:00 |
Holger Vogt
|
976c949c86
|
avoid false warnings of model not found
|
2019-09-28 16:21:36 +02:00 |
Holger Vogt
|
aa726c9864
|
Make ...search_identifier safe against NULL arguments
Otherwise strstr will fail
|
2019-09-14 11:30:20 +02:00 |
Holger Vogt
|
0071ad8569
|
If a subcircuit is defined more than once,
only read the first one, rename the others und thus discard them.
|
2019-09-14 11:28:32 +02:00 |
Holger Vogt
|
972785095f
|
Avoid crash, and send error message when r,l,c
instance lines does not have enough tokens.
|
2019-09-14 11:28:07 +02:00 |
Holger Vogt
|
f9deefe326
|
Skip '\r' when reading lines from a file
|
2019-09-14 11:27:23 +02:00 |
Holger Vogt
|
8fc1b70e93
|
Bug #424 now lower-casing whenh following the redirection token >
Re-order the code for defining exceptions for not lower casing
|
2019-09-14 11:27:13 +02:00 |
Holger Vogt
|
cdc8d3d054
|
new_title may contain a \r, remove it
|
2019-09-14 11:26:52 +02:00 |
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.
|
2019-09-14 11:25:07 +02:00 |
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.
|
2019-09-14 11:23:40 +02:00 |
Holger Vogt
|
6669cbc17c
|
add function inp_rem_unused_models().
checking for unused models now also removes models
that are out of scope.
|
2019-09-14 11:23:24 +02:00 |
rlar
|
9e729bc8ee
|
bug fix, avoid segfault when instantiating a unknown subcircuit
|
2019-09-14 11:22:52 +02:00 |
rlar
|
e2b3dffcff
|
drop bogus_find_subckt, use a proper scoped search
|
2019-09-14 11:22:39 +02:00 |
rlar
|
96bb0dd941
|
inpcom.c, introduce inp_add_levels(), add scope to decks
|
2019-09-14 11:22:24 +02:00 |
Holger Vogt
|
d901665517
|
enable 'res' as valid resistor model identifier
|
2019-09-14 11:21:53 +02:00 |
Holger Vogt
|
1adc3e559c
|
inp_get_elem_ident(): enable VDMOS devices as identifier m
|
2019-09-14 11:21:16 +02:00 |
Holger Vogt
|
7f95e9d40c
|
inp_get_elem_ident
model type as input, element identifier as output
|
2019-09-14 11:20:48 +02:00 |
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.
|
2019-08-18 10:52:21 +02:00 |
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.
|
2019-08-18 10:51:57 +02:00 |
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.
|
2019-08-13 23:33:37 +02:00 |
Holger Vogt
|
aad247621e
|
raise warning only when params are on the .subckt line
|
2019-08-13 23:32:26 +02:00 |
Holger Vogt
|
01742eefef
|
The PSPICE area token for a device instance may be not only a number,
but also a parametrized token like {tok}
|
2019-08-13 23:32:16 +02:00 |
Holger Vogt
|
9a904cb952
|
prevent crash upon wrong user input
|
2019-08-13 23:31:14 +02:00 |
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.
|
2019-08-13 23:29:41 +02:00 |
Holger Vogt
|
e6a05bda7d
|
remove the token mfg=nfgname from each .model statement
|
2019-08-13 23:17:31 +02:00 |
Holger Vogt
|
61039c2736
|
add a new function gettok_model to consider {...} expressions
in VDMOS .model statements
|
2019-08-13 23:17:14 +02:00 |
Holger Vogt
|
ad5ad8270f
|
correct the temperature replacement in ps
TEMPER is in degrees °C
|
2019-08-13 23:17:02 +02:00 |
Holger Vogt
|
5b21caae98
|
correct the command name to 'setcs'
|
2019-08-13 22:51:48 +02:00 |
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.
|
2019-08-13 22:51:36 +02:00 |
Holger Vogt
|
db13f66519
|
typo
|
2018-12-17 23:07:34 +01:00 |
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
|
2018-12-17 23:04:13 +01:00 |
Holger Vogt
|
16978f8bf6
|
inpcom.c, add alternative noise flag 'noise=1'
|
2018-12-17 23:03:48 +01:00 |
Holger Vogt
|
d2d2178407
|
inpcom.c, remove compiler warnings about
potentially uninitialized local variables and
assignment within conditional expression
|
2018-12-17 23:02:48 +01:00 |
Holger Vogt
|
ee843a4c2c
|
remove memory leak in noise selection for behavioral r
|
2018-12-17 23:02:27 +01:00 |
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) .
|
2018-12-17 23:02:03 +01:00 |
Holger Vogt
|
72110dc65d
|
noise caculation in behavioral resistors is switched on
by the instance flag 'noisy=1'. Default is a noiseless resistor.
|
2018-12-17 23:01:15 +01:00 |
Holger Vogt
|
9fb2aac952
|
inpcom.c, skip nois calculation of behavioral resistor
by adding instance parameter noisy=0
|
2018-11-18 16:07:58 +01:00 |
Holger Vogt
|
163f569eb2
|
Make the new nodes for current measurement i(xxx) unique
by adding a serial number.
|
2018-11-18 16:06:42 +01:00 |
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.
|
2018-11-18 16:06:33 +01:00 |
Holger Vogt
|
639bfc6280
|
no lower case after redirection sign > for command 'asciiplot'
|
2018-11-18 15:55:43 +01:00 |
Holger Vogt
|
7a1218cc0e
|
fix ouput redirection for 'print' command
|
2018-11-18 15:55:29 +01:00 |
Holger Vogt
|
157aaee6f1
|
Bug #332, reported by M. Hendriks
Add a warning if statements .control ... .endc are misplaced or missing
|
2018-11-18 15:53:30 +01:00 |
Holger Vogt
|
530cac53c5
|
bug 337: keep '-' as sign of number following tc1, tc2
|
2018-11-18 15:52:56 +01:00 |
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
|
2018-11-18 15:52:47 +01:00 |
Holger Vogt
|
113060473e
|
bug 337: replace atof by INPevaluate to allow ngspice numbers
in tc1 or tc2 tokens.
|
2018-11-18 15:52:24 +01:00 |
Holger Vogt
|
41fbc0bb1d
|
inpcom.c, command gnuplot: no lower case in xlabel, ylabel, title
|
2018-11-18 15:49:18 +01:00 |
Holger Vogt
|
9ab153ddc2
|
Exclude from model search all lines beginning
with a character contained in this list: *vibefghkt
|
2018-11-18 15:47:24 +01:00 |
Holger Vogt
|
277842f948
|
update to model search function
|
2018-11-18 15:47:04 +01:00 |