Holger Vogt
7c38699cd7
Add missing function nghash_delete_special(),
developed for branch gc-local
5 years ago
Holger Vogt
b9afd2bd16
add missing headers
5 years ago
Holger Vogt
684e940fc9
add cplhash.c to compile
5 years ago
Holger Vogt
2f5a00f0a5
hash functions for cpl garbage collector
5 years ago
Holger Vogt
063665c374
Fix a bug in optran code:
devname will be used in the list of instances
4 years ago
Holger Vogt
01ed224896
A check to avoid multiple entries for the same node into the .save list
Scan the data base dbs (list of saves) before a new entry is generated.
4 years ago
Holger Vogt
bde0639bc4
save within subcircuit
enable V(a,b) as v(a) v(b)
4 years ago
Holger Vogt
e90b3e711b
F.-request 85: save currents in subcircuits
Separate handling .ic/.nodeset and .save .
Add i(Vxx) to address translation.
Vxx#branch is not supported.
4 years ago
Holger Vogt
bd0113ea9a
Feature request 85: Enable .save within subcircuits
inp.c: Add .save to wl_first only after subcircuit expansion
subckt.c: treat .save like .ic
4 years ago
Holger Vogt
f9b743aa2a
remove compiler warnings
5 years ago
Holger Vogt
55d0657380
README.optran: optran is now standard.
5 years ago
Holger Vogt
7ce476c0ad
Make optran standrad by calling com_optran during ngspice initialization.
5 years ago
Holger Vogt
36dd77f63e
if step size in optran command is set to 0,
optran is deselected.
5 years ago
Holger Vogt
1eb15de584
remove optran command from spinit
5 years ago
Holger Vogt
d6038ea43c
Redo the transformation vswitch -> pswitch
Parsing takes default values into account, when
parameter is missing.
S vswitch --> pswitch code model
S_ST vswitch (with hysreresis) --> SW switch
S iswitch --> aswitch code model
S_ST iswitch (with hysreresis) --> CSW switch
Use string handling for replacements: allow parameter
equations in .model lines.
5 years ago
Holger Vogt
bbccb4b63e
Improved error message:
when argument out of range, name the term
5 years ago
Holger Vogt
c895ca33f7
Pswitch: Fix a bug in resistance calculation when cntl_on < cntl_off
Correct setting of parens
5 years ago
Holger Vogt
37ef831bc9
Updated links
5 years ago
Holger Vogt
70e4d2157e
New names for the (experimental) ramp-time capacitor and inductor code models
5 years ago
Holger Vogt
eee639d98d
Rename the capacitor and inductor code models to capacitoric and inductoric
8e4db9109 ("adms bsimbulk and bsimcmg implementation based on work from Robert Larice", 2020-12-17)
changed inptypelk.c, line 37 from strcmp to strcasecmp.
Thus Capacitor (model for C) and code model capacitor are no longer
distinguished. Model parsing for the code models fails.
These code models are used very infrequently, thus renaming them
is a valid fix.
5 years ago
Holger Vogt
6b5bc9bcd8
There is no f (femto or Farad) in a resistor line
5 years ago
Holger Vogt
a87b237bff
is_a_modelname() to detect a model 1N4148, if compt LT is set.
Rewrite is_a_modelname(), when LT is set: only check element lines
beginning with r and c for RKM notation of a number.
So don't use a RKM number (e.g. 4k7) for naming a resistor model.
5 years ago
Holger Vogt
eb7b1fc1e7
Some typos
5 years ago
Holger Vogt
57d812afa8
Compiling for macOS
New compile scripts for ngspice executable and shared library,
using gcc-11 from Homebrew.
All relevant options are included (readline, openmp, X11 graphics etc.)
5 years ago
Holger Vogt
34c227815d
RKM for C: Revert reading f, it is again femto
Examples files include expected results
5 years ago
Holger Vogt
7f981569d9
Update to RKM if ngbehavior=lt is set:
Reading C and R values follow the RKM convention with 2 exceptions:
Upper case and lower case letters are not distinguished.
Letters m, M denote milli (1e-3), letters Meg or meg denote 1e6.
5 years ago
Holger Vogt
6f6f2b8996
Remove double assigment to s[1]
Assignment Is either done in the loop or by *y = '\0';
5 years ago
Holger Vogt
daa3609e58
Enable RKM notation for R and C, when ngbehavior LT is selected.
Add 2 evaluation functions specific for R and C respectively.
R has code letters L, R, K, M, G, T enabled. M here is Meg!
C has code letters p, n, u or µ, m, F. F here is unity, femto is
not available, m is still milli!
Two examples files show all cases.
5 years ago
Holger Vogt
df5e7e36f6
When checking for µ, truncated the line, when shifted.
Enable R470, when newcompat LT is selected.
5 years ago
Holger Vogt
3dcc36c1c3
ngspice input deck may contain special characters like µ (mu).
Detect mu for ANSI and UTF-8 and translate it to u.
5 years ago
Holger Vogt
4ce4f52938
XSPICE d_source: prevent a crash when the input file is not found
5 years ago
Holger Vogt
d4c559421e
prevent crash if info.node_table has not been defined,
caused by some preceding error.
5 years ago
Holger Vogt
93f904fb0b
Make 'speedcheck' also available in batch mode simulation.
5 years ago
Holger Vogt
5d116d1fb9
command listing: add option r (runable)
listing r > $inputdir/mycirc_runable.cir
will save the expanded netlist without line numbers,
ready to be sourced again and run in ngspice.
5 years ago
Keno Fischer
174f3d9cf9
Add missing rule for ngicon.rc
5 years ago
Brian Taylor
36313d59f3
Use the current point number as the single digit index for Cider 2D ascii save files. This conforms to the normal usage with other types of ascii rawfile. The numd parser table entry for ic.file now has the correct IF_STRING type.
5 years ago
Holger Vogt
3cf6857cfc
Fix bug #557
Revise memory allocation for different analysis types
5 years ago
Holger Vogt
601287e949
Check V and I lines for dc and ac.
Allow ac without parameters, a default is set to ac ( 1 0 )
5 years ago
Brian Taylor
81df6ed772
Retaining the mixed case of Cider quoted string valued parameters. Limit searches for ic.file to D*, M*, and Q* device instantiation lines. Cider model (numos, numd, nbjt) detection is limited to .model lines. Continuation lines which do contain these tokens are not checked, but this should rarely happen. All of the examples/cider circuits meet these assumptions. Memory errors have been removed.
5 years ago
Holger Vogt
3599c189b6
re-enable lower-casing of tokens beginning with 'cd',
except for command 'cd' which is usually followed by a space.
5 years ago
Holger Vogt
0266bd5894
make PTparse error message more verbose:
include point in a line where parsing failed.
5 years ago
Holger Vogt
0817d86f33
No oscillation: Add a starting pulse
5 years ago
Brian Taylor
abad190b38
Don't search for ic.file within comments.
5 years ago
Brian Taylor
b3a99f0c6c
Do not use non-portable strcasestr.
5 years ago
Brian Taylor
663a79dea8
Fix NAN error in numd2 area report and crashes when a doping file is missing. Update examples/cider so that the test circuits all run; add case sensitivity tests for rootfile and ic.file parameter strings enclosed in a single pair of double quotes.
5 years ago
Holger Vogt
68c5eb2d6b
Add resistance sweep error message for failing optran
5 years ago
Holger Vogt
8708b6651b
Optran may throw an error message while in temp sweep
and optran fails: message added (in addition prevent a crash)
5 years ago
Holger Vogt
04a902ddf7
add potran to spinit d
5 years ago
Holger Vogt
1b3e192bfd
errno needs to be nulled in Linux.
Its previous value will be returned after checking.
5 years ago
Holger Vogt
e84c210876
'Option interp' and command 'stop' have been incompatible.
Allow both in a run.
Issue note (however not checked) that stop time data have to fit
the inpolated times.
5 years ago