Holger Vogt
d5ef8a3660
Remove all entries connected to IPC, an outdated (>30 years)
method to link ngspice to a now defunct controller (ATESSE).
5 months ago
Holger Vogt
83897d8474
Add perror() to fopen: more info for user.
5 months ago
Holger Vogt
236967a21e
Improve error message: add source type
6 months ago
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.
6 months ago
Holger Vogt
fafb8cc272
Improve on truncation when printing out the .model lines during debug-out
6 months ago
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.
6 months ago
Brian Taylor
6619b7265e
Fix memory leaks in INPpas4 and get_number_terminals found using paranoia_parallel.
6 months ago
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)
6 months ago
Holger Vogt
aadd12965b
Enable plain expression instead of only a number for area
in bipolr device instances.
6 months ago
Holger Vogt
2b1dc09caf
Improve detection of the number of terminals for bipolar devices.
Fixes bug no. 807.
6 months ago
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.
7 months ago
Holger Vogt
4693173d37
Revert "Fix a bug in the Windows Builds:"
This reverts commit ecb288138f .
7 months ago
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.
7 months ago
Holger Vogt
a2b3d7c7d2
Enhance comment.
7 months ago
Holger Vogt
7fc68c0c07
Adding .param SWSOA=1 right after the .lib entry during reading in
the libraries.
8 months ago
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.
8 months ago
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:'?
9 months ago
Holger Vogt
f73873c495
Enable expressions in a meas statement within a .control section, like
meas tran yeval2 FIND v(2) WHEN v(1)= 0.9*v(2)
10 months ago
Holger Vogt
705c0d8dc6
Prevent crash if file cannot be opened.
10 months ago
Holger Vogt
3ceb16024a
Fixes a bug introduced by
317378085 ("Tidy code in get_number_terminals(), removing unneeded copying.", 2025-02-25)
10 months ago
Brian Taylor
a7961f1a97
Fix some compiler warnings when -Wextra is added to CFLAGS.
11 months ago
Giles Atkinson
8ab446fc9c
Fix Bug #750 - "VDMOS Model Naming Rules in NGSPICE Cause Confusion."
Recognise VDMOS as a special keyword only as the third token in a
.model line. A new function, skip_token(), included in the change
allows simplification of some existing code.
1 year ago
Holger Vogt
80d6e681f2
MS Windows: Get a canonical paths name: Important if
path length exceeds MAX_PATH, might happen when using PDKs
Patch provided by kreijstal
12 months ago
Holger Vogt
43c4c49e11
re-enable adding variables (path names) to list variable "sourcepath"
12 months ago
Holger Vogt
a2dbedff4e
Improved error message, not using internal 'circbyline'
12 months ago
Giles Atkinson
629d1f5462
Fix a bug where a node name is mis-identified as the model for
an OSDI device and remove a limit on node count.
Problem was reported by user Sam in ngspice-users.
1 year ago
Giles Atkinson
b41b8a48c3
Tidy code in get_number_terminals(), removing unneeded copying.
1 year ago
Holger Vogt
ef00416ebf
Add a section without source info to the debug output.
Truncate .model lines in this section, as .model lines with
several hundred parameters may mask the relevant information.
1 year ago
Holger Vogt
26b197df33
Allow m parameter for B source with current output
Fixes bug no. 734
1 year ago
Holger Vogt
e5d4d7d63f
Add to debug-out.txt an output without source file information.
Thus cluttering the view is reduced.
1 year ago
Holger Vogt
e1bd97d8f6
If C= or Q= is omitted in the instance line of a behavioral capacitor,
select as default the C= formulation, not the Q= formula..
1 year ago
Holger Vogt
ce8480c690
Enable improved error message with nested .include.
1 year ago
Holger Vogt
c7ee676e3d
Improve the error message by hinting to the source of the error.
1 year ago
Holger Vogt
a4e443fcce
precautionary prevent passing instances which internally have got
upper case lettering. Removes a crash reported in
https://gitlab.com/kicad/code/kicad/-/issues/18648 .
1 year ago
Holger Vogt
ffde17441b
Don't quote the subcircuit name in an X line
1 year ago
Holger Vogt
1e4a6ac8b8
avoid memory leak by appending, not prepending the word
1 year ago
Holger Vogt
a6ad2470f1
Add a flag compmod to struct card.
Set compmod to 1 if netlist line is included by command 'incpslt'
Guard special newcompat.hs sections by compmod
1 year ago
Holger Vogt
8b5a046cdb
Remove again, not needed
1 year ago
Holger Vogt
deb3cd9809
Replace all BOOLEAN, BOOL, _Bool by bool
Remove all #undef bool (set in conjunction with #iclude <Windows.h>)
1 year ago
Holger Vogt
660b183ad0
Revise check for '.probe alli' and event nodes:
Bail out, don't run any sim, don't change variable
'auto_bridge'.
1 year ago
Holger Vogt
2db9533380
Enable strings as parameters across subckt boundaries
by keeping the quotes and excluding {} around the string token.
1 year ago
Holger Vogt
a45c1500a6
Remove 512 char limit of sourcepath variable.
Make attaching new path more efficient.
1 year ago
Holger Vogt
793fca6e2a
If preprocessing is skipped, we still need the number of lines in the deck.
1 year ago
Holger Vogt
d5f0c6598f
Fix commit 09685dde1
("Set lower case for variables or vectors in command 'echo'.
Tokens starting with '$' will get lower-casing.", 2024-09-07)
Don't use s as name for temporary string, as s has been set
already and is used later.
2 years ago
Holger Vogt
b62528d7e5
Set lower case for variables or vectors in command 'echo'.
Tokens starting with '$' will get lower-casing.
2 years ago
Holger Vogt
8e8716abc7
Fix warning message
2 years ago
Holger Vogt
c2c35b56a4
More on verbose error and warning messages
2 years ago
Holger Vogt
c33fd66a21
Make error messages more verbose:
add line number and source file name.
2 years ago
Holger Vogt
295be20859
Remove sourceinfo upon shared ngspice reset.
Remove memory leaks.
2 years ago
Holger Vogt
14bb63490c
Plug a memory leak
2 years ago