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
Holger Vogt
cf934bca7d
New command 'save nointernals' to suppress outputting and
saving of internal device nodes, espicially needed for PSP
OSDI model. Output file size reduction is e.g. from 20GB to 200MB.
1 year ago
Holger Vogt
338cc42dd0
PS compatibility: MOS level 5 and Bip level 2
will create an error. ngspice then bails out, as no
such models are available. Hint to use OpenVAF, OSDI.
1 year ago
Holger Vogt
d776a229e1
Create a vector thdnm from THD calculation, e.g. thd11
New vector fournosave: if set, suppress creation of
vectors thd11 and fourier, usefull when writing a raw file.
1 year 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
Giles Atkinson
d18479b45b
Always check for GUI events during simulation, if any graphs exist.
Previously this check was only made if an iplot window existed.
The 100W.sp example displayed frozen windows with X11-based plotting.
1 year ago
Holger Vogt
7cf0129254
Add a descriptive comment
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
dd07008b55
Remove ADMS related code
1 year ago
Giles Atkinson
ddd14cf84c
Do not include term.h and curses.h in terminal.c without checking that
they exist. Modern ncurses does not need curses.h to compile term.h
so that header has been removed. Also make ncurses the last choice
when looking for tputs().
1 year ago
Holger Vogt
2afd3d1ea8
Prevent a crash in case of incomplete stoks[]
1 year ago
Holger Vogt
0c2a287d3c
Allow .probe I(XU1)
For device with more than 2 nodes, and alli not set, the vcurr_xxx
nodes did contain a probe_int_ section which made them to be
not saved. While o.k. for power measurement, this was not o.k. for
measuring current.
1 year ago
Holger Vogt
1abeb1290b
Align title line to the numbers following
1 year ago
Holger Vogt
26b197df33
Allow m parameter for B source with current output
Fixes bug no. 734
1 year ago
Giles Atkinson
afb399a1f0
Fix Bug #733 -
"Pre-master-45 hangs forever on a circuit that works on older versions."
That was an infinite loop when parsing a line with just "*#",
introduced by commit fb63573b6b . Also add some comments.
1 year ago
Árpád Bűrmen
d659943d77
Per-device load timing support.
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
Giles Atkinson
2666460663
Using XFlush() instead of XSync() avoids a round trip to the X server
on each call to DevUpdate(). That speeds plotting when using XQuartz
on Macintosh and makes iplot useable there.
1 year ago
Holger Vogt
1b7c8eb2d7
Fix a crash due to buggy user input.
Improve error message.
Reported in
https://gitlab.com/kicad/code/kicad/-/issues/19439#note_2277932762
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
Giles Atkinson
d549b882df
Fix a crash that happens after an iplot window is zoomed and closed
while active.
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
8e9a115aa9
Update/remove comment(no longer valid)
1 year ago
Holger Vogt
b7092ff19b
Revert ABORTPROC to bool, where appropriate
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
Giles Atkinson
932ef50cc3
Improve two error messages: in d_cosim, report the filename given,
not the last one tried; and report attempted use of iplot or
tclplot in batch mode only once.
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
4eec6eb8e2
Fixes bug 723
New lines had been inadvertently written into the .control section.
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
Brian Taylor
6500caeba1
Now that checks on actuals and formals have been fixed for X* instances, some older PSpice libraries will not translate correctly in psa mode. This commit removes unnecessary power and ground nodes from X* instances of subcircuits where the nodes are optional. These X* instances occur within the body of another subcircuit which is being translated. MicroCap libraries that we can translate in ngspice do not have such cases. To enable the removal of the power and ground nodes, set ps_global_tmodels=1 in .spiceinit. This is not set by default since an extra pass through the circuit word list is necessary to find the subcircuits whose instances do not require power and ground node removal. Without enabling this feature, errors reporting too many parameters may be reported.
1 year ago
Holger Vogt
7d59ad2db7
Create extra name derived from node name, but with / replaced by _,
to become part of the new voltage source name: avoid names
which are not parsed correctly by the B source equation parser.
1 year ago
Holger Vogt
a45c1500a6
Remove 512 char limit of sourcepath variable.
Make attaching new path more efficient.
1 year ago
Holger Vogt
22b4f4e632
Re-enable detection of over- or underflow of number of nodes
when calling a subcircuit.
Update to commit
c12296182 ("The code in src/frontend/subckt.c has a
fixed-size structure called table at the top with a
size set to N_GLOBAL_NODES = 1005. If the number of
items passed in formal and actual exceeds 1005, then
ngspice exits immediately with an error.", 2023-03-14)
1 year ago
Holger Vogt
33ef1fc876
typos
1 year ago
Giles Atkinson
b48224e514
Improve the behaviour of ngspice when run in the background on a
Unix-like OS with job control. The progress ticker is suppressed
for a command like "ngspice some_circuit.cir &" so the terminal
remains usuable while the simulation runs.
1 year ago
Giles Atkinson
4feb0c3ccc
Remove function cp_ccon() and related code. The function modifies
the terminal driver's treatment of the control-D (EOF) and escape
keys on Unix-like OSs. But escape has no special meaning, and treating
control-D as a line terminator was probably to prevent unexpected
session exit when connected through a modem without error-correction.
Removing the function allows "ngspice netlist &" to work correctly.
The function was called during initialisation, which caused an endless
loop of job-control stops when ngspice was started as a background process.
2 years ago
Giles Atkinson
562466a3c5
Three minor code improvements. Remove a redundant test in com_measure2.c.
In vectors.c, always initialise a newly-created plot exactly once.
Improve an error message in spiceif.c.
1 year ago
Giles Atkinson
fb63573b6b
Fix processing of lines like: "*# pre_some_command ...".
1 year ago
Brian Taylor
75c2811fa9
Fix some memory leaks.
1 year ago
dwarning
3d20dc0da7
format - white spaces
1 year ago
dwarning
bf6ffd357d
Keep it simple: use only one structure and get_time function
1 year ago