Holger Vogt
7f0dc4b39f
Allow delay of 0, as requested by Infineon model of the 2EDNY52X
2024-05-01 10:10:41 +02:00
Holger Vogt
35a7e49ac8
Do not add line number 0, but the number of the original
...
.probe command to linenum_orig.
2024-05-01 10:10:41 +02:00
Holger Vogt
88418eca56
Add an additional funtion parameter 'filename' to fcn inp_readall
...
to transfer not only the folder, but also the file name of the
current input
2024-05-01 10:10:40 +02:00
Holger Vogt
a095048e63
Add 'linesource', to contain the path/file of the origin of the line.
2024-05-01 10:10:40 +02:00
Holger Vogt
50ce5bbff4
while copying a deck, copy the new infos
2024-05-01 10:10:40 +02:00
Giles Atkinson
69fd0296a4
Prevent lines beginning '#' in .include files from being treated
...
as device lines.
2024-05-01 10:06:19 +02:00
Giles Atkinson
aed347c95a
Fix an error in cfbe1afa21 that causes a crash in d_cosim.
2024-05-01 10:06:13 +02:00
dwarning
342f1c926f
diode: add alternative bangap calculation for tlev=2
2024-04-30 17:23:20 +02:00
dwarning
20a04fccdd
diode: add model parameter xw for mask and etching effect (level=3)
2024-04-30 16:32:52 +02:00
dwarning
ca8d150872
diode: add aliases for breakdown voltage
2024-04-29 20:39:43 +02:00
Pat Deegan
25c7795a89
level 3 note on breakdown voltage params
2024-04-29 11:00:47 -04:00
Pat Deegan
80209f0215
Diode Model Parameters, Level 3, support for diode breakdown voltage synonyms, as used in sky130 PDK
2024-04-29 10:47:13 -04:00
dwarning
393d1d4435
change CR/LF to LF
2024-04-24 10:38:26 +02:00
dwarning
33fb5f20d9
vbic: rm obsolete regression test
2024-04-24 10:35:44 +02:00
Holger Vogt
b056b647af
Stop ngspice in case of pwl errors, avoid crash.
2024-04-24 10:24:46 +02:00
Holger Vogt
3694dddd64
Revert "Define the members of the struct in the correct sequence."
...
This reverts commit ce8bce7947 .
2024-04-23 11:33:34 +02:00
Holger Vogt
b62636f690
Merge branch 'pre-master-43' of ssh://git.code.sf.net/p/ngspice/ngspice into pre-master-43
2024-04-21 15:59:55 +02:00
Holger Vogt
af84450d11
Add environmental variable NGSPICE_OSDI_DIR. It may contain
...
a path for *.osdi files (compiled Verilog-A models). The search
sequence for a *.osdi file now is:
Absolute path (if any)
Linux home directory ~/
Path in NGSPICE_OSDI_DIR
Path of netlist loaded
Path of executable ngspice.exe
Path of 'Current working directory'
2024-04-21 15:58:45 +02:00
dwarning
4dc2360494
Support op-pt values by Geoffrey Coram
2024-04-18 21:07:14 +02:00
Holger Vogt
4e058f8cb2
allow compiling with CIDER deselected
2024-04-08 23:05:26 +02:00
Holger Vogt
9230c915be
avoid crash when compiled with lto
2024-04-07 21:39:20 +02:00
Holger Vogt
08c0f97999
optran 0 0 0 0 0 uic may be used to load initial conditions
...
(.ic=xxx statements) without staring an op iteration.
2024-04-07 21:36:59 +02:00
Holger Vogt
89d35fb34b
no lower casing for file input paths
2024-04-07 12:12:10 +02:00
Holger Vogt
2ade3bd581
Merge branch 'pre-master-43' of ssh://git.code.sf.net/p/ngspice/ngspice into pre-master-43
2024-04-05 10:34:11 +02:00
Holger Vogt
2b32899667
correct the link to the license text.
2024-04-05 10:33:49 +02:00
dwarning
22869b6e39
use limexp to prevent NaN with extreme exponents
2024-04-04 16:19:35 +02:00
dwarning
f40285c2a2
format
2024-04-04 16:03:53 +02:00
Giles Atkinson
6ea61d58c7
Fix a compilation error when using compile_macos_clang.sh and update
...
it to enable similar features to compile_linux.sh.
2024-04-03 17:22:59 +02:00
Giles Atkinson
cfbe1afa21
Suppress some warnings from MSVC.
2024-04-03 17:22:53 +02:00
Giles Atkinson
bfeb845222
Tidy d_process/ifspec.ifs so that it works after changes in
...
mif_inp2.c and writ_ifs.c to enforce "Null_Allowed".
2024-04-03 17:22:39 +02:00
Giles Atkinson
8347e59667
Make the 'Null_Allowed' option for XSPICE code model parameters
...
behave as reasonably expected and as described in the manual.
Previously a missing (null) value was always accepted if the ifsspec.ifs
file contained a default value, and several of the the included
code models worked that way. Where there was a useful default,
"no" has channged to "yes". Some models with a look-up table defined
by two parameters had such defaults that did nothing useful. Thay have
been given useful vector defaults. These changes should not affect
previously-working netlists.
2024-04-03 17:22:32 +02:00
Giles Atkinson
df71478cbc
Change CMPP-related struct Mif_Parse_Value to a union
...
as C99 allows initialisation of any member. Also correct a comment
in miftypes.h.
2024-04-03 17:22:23 +02:00
Giles Atkinson
7ff4ad0b32
Support use of vector defaults for XSPICE vector parameters.
...
This answers Feature Request 60 - "Array as default value for parameter".
2024-04-03 17:22:14 +02:00
Giles Atkinson
f37a292c82
Use the correct type of hash table for device and model names.
...
This fixes unpredictable failures of commands like "print @some_device".
2024-04-03 17:22:04 +02:00
Giles Atkinson
cb69d8b96b
Change the code that makes variables from device/model parameters
...
(spiceif.c) and vectors from variables (vectors.c) so that
array and string-valued parameters and the resulting variables
are handled correctly. Fix a memory leak in converting
array parameters; that requires a change in cplask.c so that
CPL devices behave the same way as others. Add a "device" variant of
the Compose command so that generated vectors are available in scripts.
2024-04-03 17:21:57 +02:00
Brian Taylor
02172448e7
Fix scan_gates to consider correctly gates with an inverted output. Refactor the checks in infix_to_postfix for invalid postfix expressions.
2024-04-03 17:13:07 +02:00
Brian Taylor
048dcb3bf1
Go back to before previous merge.
2024-04-03 17:12:57 +02:00
Brian Taylor
db4476d22b
Remove unnecessary #include.
2024-04-03 17:12:50 +02:00
Brian Taylor
367cdf5708
Add variable ps_scan_gates_optimize (default 1). If < 1, then turn off the optimizations in scan_gates.
2024-04-03 17:12:43 +02:00
Holger Vogt
8ec50d05ff
Guard reading and executing spinit by variable no_spinit.
2024-04-03 17:06:26 +02:00
Holger Vogt
51ab1499ba
Add a new exported function ngSpice_nospinit() to set
...
variable no_spinit.
2024-04-03 17:05:37 +02:00
Holger Vogt
38c989dda9
Unify all spinit sources
2024-04-03 17:04:23 +02:00
Holger Vogt
5359592a74
Unify the function interface, avoid lto-type-mismatch
2024-04-03 16:59:16 +02:00
Brian Taylor
c3fa6328a1
Fix bug in the LOGICEXP scan_gates optimizer. Some gates with an inverting output were generated with bad logic which gave incorrect simulation results.
2024-03-29 17:29:49 +01:00
Holger Vogt
415d94bee0
Bug 665: enable compiling the code models with link time optimization.
...
Fix provided by Giles Atkinson.
Still the build of ngspice fails (tested with Cygwin) at the linking stage.
2024-03-29 17:27:43 +01:00
Holger Vogt
ce8bce7947
Define the members of the struct in the correct sequence.
2024-03-29 17:23:59 +01:00
Holger Vogt
cac87d9dd0
Improve response to error: reporting the error when
...
detecting an expression, not simply move on with a
wrong meas result.
2024-03-29 17:21:38 +01:00
Holger Vogt
e561249e9b
fix a bug in the ={par({...})} function.
...
The replacement did not happen correctly.
2024-03-29 17:19:48 +01:00
Holger Vogt
ee39b2600b
Add a evaluation function which truly removes also the
...
scale factor from the token when gobble=0 before
moving on.
2024-03-29 17:16:41 +01:00
Holger Vogt
bfb7798f97
measure example with expression evaluation
2024-03-29 17:12:40 +01:00