Commit Graph

8886 Commits

Author SHA1 Message Date
Holger Vogt 5f61fe303b Now standard while compiling (no need to be added to ./configure):
non-debug, osdi, xspice, readline, klu, openmp
Still needs to be enabled explicitely:
cider (by --enable-cider)
./compile_linux-new.sh tested with Ubuntu 24.04LTS

More testing is needed (switch off the now standard options)!
2024-05-04 15:18:13 +02:00
Holger Vogt 67829d634b Don't delete sourceinfo as it may lead to a crash upon 'quit'.
Needs further investigation.
2024-05-01 10:10:42 +02:00
Holger Vogt db6427edf8 Reload sourceinfo when changing the current circuit. 2024-05-01 10:10:42 +02:00
Holger Vogt 55f7d3fcef Save the wordlist sourceinfo to the current circuit.
Remove sourceinfo only upon 'quit'.
2024-05-01 10:10:42 +02:00
Holger Vogt 87a601395d Add a fcn wl_delete to free the wordlist, but not its wl_word contents. 2024-05-01 10:10:42 +02:00
Holger Vogt 279fe0afcf Add (enhanced) patch by Giles Atkinson
Add controlled_exit() to errors when parsing functions.
Add verbose error messages, including line number and
name of the source file.

.lib file handlinmg with its recursive structure probably needs
testing and improvements.

More error messages may need this update.
2024-05-01 10:10:42 +02:00
Holger Vogt 8d539aa9ba Add linum_orig and linesource to commented out *include line 2024-05-01 10:10:42 +02:00
Holger Vogt 43772de1f9 Add linenum_orig and linesource info to newly generated
U device lines.
2024-05-01 10:10:41 +02:00
Holger Vogt 9c21a1fe9e Add char *lineinfo to parameters of fcn insert_new_line 2024-05-01 10:10:41 +02:00
Holger Vogt 55aee45955 New parameter char *linesource for fcn insert_new_line
Make Fcn inp_read in inpcom.c static
2024-05-01 10:10:41 +02:00
Holger Vogt cca34330f8 Add file_name to fcn inp_read
Add wordlist sourceinfo to store input sources
path/file, internal, etc.)
debug_out.txt adds line info (var. sourcelineinfo)
Add sourcelineinfo to wordlist sourceinfo and to each new line.
When adding lines due to compatibility handling, use existing
linenum_orig and linesource.
2024-05-01 10:10:41 +02:00
Holger Vogt 7348627c5e Add the original line source information to the new line. 2024-05-01 10:10:41 +02:00
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