Commit Graph

1116 Commits

Author SHA1 Message Date
Brian Taylor e628e92bc5 Match pre-master-47 2026-04-02 12:30:02 -07:00
Brian Taylor 13a3777aec Merge branch 'pre-master-47' into bt_dev 2026-04-02 12:00:27 -07:00
Holger Vogt cd14f85cde Remove ft_skywaterpdk, replace it by variable no_auto_braces 2026-03-25 13:33:52 +01:00
Holger Vogt 35c63e1008 No quoting of potential params when comnpatmode is set to hs
and variable no_auto_braces is set.
2026-03-22 11:34:29 +01:00
Holger Vogt 16e6f21523 Revert "No quoting of potential params when comnpatmode is set to hs."
This reverts commit 1aa3fa22ff.
2026-03-22 11:08:35 +01:00
Holger Vogt 38ce7778b3 Update 2 to warning messages if osdi or code model files cannot be loaded 2026-03-20 10:57:37 +01:00
Holger Vogt 603089b29f Re-enable not setting lower case if commands from spinit or .spiceinit 2026-03-20 10:38:21 +01:00
Holger Vogt a165ab5c28 Allow Cd as a valid C reference designator for a capacitor,
i.e. lower-casing of node names,
by re-organizing the setting of lower cases in the netlist:
No lower-casing for cd only while in a .control section.
2026-03-20 10:37:42 +01:00
Holger Vogt d13cd984f4 Special treatment while spiltting multiple .param lines, if .param is a .func 2026-03-20 10:35:32 +01:00
Holger Vogt 7474cd70d0 Ignore .hdl and .biaswarn commands. 2026-03-20 10:34:45 +01:00
Holger Vogt 7d808f991e Update 2 to warning messages if osdi or code model files cannot be loaded 2026-03-10 23:24:15 +01:00
Holger Vogt a08110585f Re-enable not setting lower case if commands from spinit or .spiceinit 2026-02-24 14:17:37 +01:00
Holger Vogt 1aa3fa22ff No quoting of potential params when comnpatmode is set to hs. 2026-02-23 16:32:59 +01:00
Holger Vogt 2612104891 Allow Cd as a valid C reference designator for a capacitor,
i.e. lower-casing of node names,
by re-organizing the setting of lower cases in the netlist:
No lower-casing for cd only while in a .control section.
2026-02-23 16:30:20 +01:00
Holger Vogt 8e60d4dd0f Special treatment while spiltting multiple .param lines, if .param is a .func 2026-02-23 15:50:24 +01:00
Holger Vogt 3c570744dc Ignore .hdl and .biaswarn commands. 2026-02-23 15:43:52 +01:00
Holger Vogt afb17cb6c7 New analogue and digital device models from TI contain
the token GND in their subcircuit. Up to now ngspice has
declared GND as global and replaced it by 0.

Now, if PS is selected as compat mode, GND is not
declared as global, and is not replaced inside of a subcircuit.
2026-02-03 14:25:09 +01:00
Holger Vogt 1ef57ffc42 Add a variable 'debug-out-short' to enable a shortened debug-out.txt,
useful when large circuits are monitored, which otherwise may result
in GigaBit size of data.
2026-02-03 14:11:12 +01:00
Holger Vogt 329343a31e Fix a bug. 2026-02-03 14:09:43 +01:00
Holger Vogt 4d24b18f35 Remove all entries connected to IPC, an outdated (>30 years)
method to link ngspice to a now defunct controller (ATESSE).
2026-02-03 14:07:59 +01:00
Holger Vogt 827e6ba7fb Add perror() to fopen: more info for user. 2026-02-03 14:04:15 +01:00
Holger Vogt 5fcbe3c6df Improve error message: add source type 2026-02-03 14:02:32 +01:00
Holger Vogt f84a72d1f8 Improve error messages. Towards better locating of errors:
Remove entry to avoid false file readings.
Still to do: Return correct fline numbers, when reading large PDKs.
2026-02-03 14:02:05 +01:00
Holger Vogt c4ae3b1243 Improve on truncation when printing out the .model lines during debug-out 2026-02-03 14:00:46 +01:00
Holger Vogt e277c886ef Improve reading the source code sequence by extra comments:
While searching for 'Parsing the circuit', the sequence of major
functions is revealed.
2026-02-03 13:59:59 +01:00
Brian Taylor e694983536 Fix memory leaks in INPpas4 and get_number_terminals found using paranoia_parallel. 2026-02-03 13:58:32 +01:00
Holger Vogt 5e12a80fb4 Exxx n1 n2 nc1 nc2 TABLE = (x0, y0, x1, y1, x2, y2)
is now supported in addition to already existing
Exxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2)
2026-02-03 13:57:37 +01:00
Holger Vogt 3d0ab2db8e Enable plain expression instead of only a number for area
in bipolr device instances.
2026-02-03 13:57:04 +01:00
Holger Vogt 71a980f820 Improve detection of the number of terminals for bipolar devices.
Fixes bug no. 807.
2026-02-03 13:55:31 +01:00
Holger Vogt 82e563b1b1 New analogue and digital device models from TI contain
the token GND in their subcircuit. Up to now ngspice has
declared GND as global and replaced it by 0.

Now, if PS is selected as compat mode, GND is not
declared as global, and is not replaced inside of a subcircuit.
2026-01-23 19:50:26 +01:00
Holger Vogt 0a7ad07cc0 Add a variable 'debug-out-short' to enable a shortened debug-out.txt,
useful when large circuits are monitored, which otherwise may result
in GigaBit size of data.
2025-11-12 11:21:13 +01:00
Holger Vogt 6fc75e636c Fix a bug. 2025-10-25 15:40:37 +02:00
Holger Vogt d5ef8a3660 Remove all entries connected to IPC, an outdated (>30 years)
method to link ngspice to a now defunct controller (ATESSE).
2025-10-21 11:18:22 +02:00
Holger Vogt 83897d8474 Add perror() to fopen: more info for user. 2025-10-15 17:58:10 +02:00
Holger Vogt 236967a21e Improve error message: add source type 2025-10-06 17:30:38 +02:00
Holger Vogt 8585383654 Improve error messages. Towards better locating of errors:
Remove entry to avoid false file readings.
Still to do: Return correct fline numbers, when reading large PDKs.
2025-10-06 17:07:27 +02:00
Holger Vogt fafb8cc272 Improve on truncation when printing out the .model lines during debug-out 2025-10-04 19:59:19 +02:00
Holger Vogt cec426292f Improve reading the source code sequence by extra comments:
While searching for 'Parsing the circuit', the sequence of major
functions is revealed.
2025-10-03 15:45:47 +02:00
Brian Taylor 6619b7265e Fix memory leaks in INPpas4 and get_number_terminals found using paranoia_parallel. 2025-09-21 22:44:12 +02:00
Holger Vogt adcc1de2fb Exxx n1 n2 nc1 nc2 TABLE = (x0, y0, x1, y1, x2, y2)
is now supported in addition to already existing
Exxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2)
2025-09-19 16:54:56 +02:00
Holger Vogt aadd12965b Enable plain expression instead of only a number for area
in bipolr device instances.
2025-09-17 10:15:42 +02:00
Holger Vogt 2b1dc09caf Improve detection of the number of terminals for bipolar devices.
Fixes bug no. 807.
2025-09-16 15:08:34 +02:00
Holger Vogt aa3ab5bc25 Fixing bug 804.
Using function get_windows_canonical_path() may neglect the
ngspice file search sequence, as an absolute path is returned also
for relative input paths. ngspice however searches a file not only
relative to the current directory, as inforced by this
function, but for example also in the directory of the previous
input file.

So restrict this function to paths longer than MAX_PATH, which would fail
otherwise.
2025-09-06 17:47:21 +02:00
Holger Vogt 4693173d37 Revert "Fix a bug in the Windows Builds:"
This reverts commit ecb288138f.
2025-09-06 17:46:50 +02:00
Holger Vogt 82c620304b Fixing bug 804.
Using function get_windows_canonical_path() may neglect the
ngspice file search sequence, as an absolute path is returned also
for relative input paths. ngspice however searches a file not only
relative to the current directory, as inforced by this
function, but for example also in the directory of the previous
input file.

So restrict this function to paths longer than MAX_PATH, which would fail
otherwise.
2025-09-05 23:59:05 +02:00
Holger Vogt ecb288138f Fix a bug in the Windows Builds:
With commit
80d6e681f ("MS Windows: Get a canonical paths name: Important if path length exceeds MAX_PATH, might happen when using  PDKs", 2025-04-12)
the newly introduced function get_windows_canonical_path() does not do the
right thing when the path name is only a simple file name. Then internally
used function GetFullPathNameW() then will prepend the current directory to the
file name, which may be simply wrong.
2025-09-04 00:03:25 +02:00
Holger Vogt a2b3d7c7d2 Enhance comment. 2025-08-28 12:39:13 +02:00
Holger Vogt 7fc68c0c07 Adding .param SWSOA=1 right after the .lib entry during reading in
the libraries.
2025-08-28 12:39:01 +02:00
Holger Vogt c2f9f6d3f4 retain type=0, type=1, type=+1, or type=-1 in a .model card,
even if compatmode PS or LT are set.
2025-07-29 10:52:54 +02:00
Holger Vogt dd1690521c Fix a bug: do not read in front of string s by s[-1].
Still needs more checking: we remmove and add 'params:'?
2025-07-29 10:49:49 +02:00