Brian Taylor
4a904cdf18
Add drive 0/1 for $d_lo/$d_hi.
4 years ago
Holger Vogt
e47049f31a
Add STATIC_VAR_TABLE locdata
Add CALLBACK cm_d_pwm_callback
Reserve memory for x, y arrays only once during INIT
3 years ago
Holger Vogt
f1165052ad
We are developing towards ngspice-39
3 years ago
Holger Vogt
14f42f805d
Add info on new function ngCM_Input_Path
3 years ago
Holger Vogt
eb70d81dab
Add function
char* ngCM_Input_Path(const char* path);
to shared ngspice API
to send file path for code model input files (e.g. dsource).
Such path cannot be extracted automatically when netlist has
been sent by ngSpice_Circ
3 years ago
Holger Vogt
4b15632f9b
Function ngSpice_Circ() may receive empty lines.
Skip these lines while setting the netlist.
3 years ago
Holger Vogt
97ee2d8047
Fix typo
3 years ago
holger
7eafd48cc0
Add udevices.h to makefile.am for 'make dist'
3 years ago
Holger Vogt
a6c28e44ff
Add info on shared library
3 years ago
Holger Vogt
638a09b718
Make doxygen documentation complete as an example.
4 years ago
Holger Vogt
70f38ec25f
Update for doxygen: add function names to \brief
4 years ago
Holger Vogt
b6d2a50e42
Update to comments for doxygen
4 years ago
Holger Vogt
3288d5ac99
Test for doxygen documentation
4 years ago
Holger Vogt
ed6f802948
Add a guard on parameter 'position', limit to
1e-9 to 0.999999999
FIXME: the given parameter limits from ifspec.ifs are not recognized.
4 years ago
Holger Vogt
2d8ea17d65
Update on author
4 years ago
Holger Vogt
61d23b99ff
Patch required to allow compiling at Fedora with -Werror=format-security
Provided by Mamoru Tasaka
4 years ago
Holger Vogt
7fa5c7ad87
Typo
4 years ago
Holger Vogt
27ba1e39df
Small correction to previous commit.
4 years ago
Holger Vogt
06d349ff06
Add a limit of 0.999 to bipolar parameters mje, mjc, and mjs.
The bipolar model is restricted to values < 1.
Fixes bug 583
4 years ago
Holger Vogt
5bc1660773
prepare ngspice-38
4 years ago
Holger Vogt
e2defea752
The derivative of pow shall use the new pow function as well,
when compat mode LT is selected.
4 years ago
Giles Atkinson
01c4a5dff2
Fix memory leak reported by Brian Taylor.
4 years ago
Giles Atkinson
9801d06795
Fix XSPICE's node prefix '~' when PSPICE compatability is used.
4 years ago
Holger Vogt
d7485d7136
Fix typo
4 years ago
Holger Vogt
edab163192
If compatmode is lt, change the pow(x,y) and x**y functions:
If x < 0, output only if y is integer number, otherwise output 0
4 years ago
Holger Vogt
933b1fdb2b
Add some comment
4 years ago
Brian Taylor
150839dd1a
Remove VisualC compile warnings.
4 years ago
Holger Vogt
7f486febe9
Search for .spiceinit (or spice.rc) firstly in a user defined directory,
when the directory path is set in the environmental variable
SPICE_USERINIT_DIR.
If not found then search in the current directory, then in HOME, then
in USERPROFILE.
4 years ago
Holger Vogt
2547115eeb
Prevent Visual Studio compiler warnings
4 years ago
Giles Atkinson
e67261be29
Fix a crash that sometimes occurs on Linux when interrupting from
the terminal a simulation that was started directly from the command
line. A gdb backtrace showed rl_cleanup_after_signal() calling
fwrite() with a NULL file pointer.
4 years ago
Holger Vogt
ffc09208bf
send error message to stderr, not to stdout
4 years ago
Holger Vogt
9166f202a6
Streamline the simple diode model.
4 years ago
Holger Vogt
ec6a902fb9
Fix a bug in simple diode, when ilimit is set, but not epsilon.
Make model more similar to LTSPICE
Add an example
4 years ago
Holger Vogt
7bb581b1b3
Remove parameter noiseless in simple diode model.
The model is noiseless anyway.
4 years ago
Brian Taylor
266d944745
Remove unnecessary hierarchical level check.
4 years ago
Brian Taylor
bd00738a49
Fix memory leaks in ff/latch code.
4 years ago
Brian Taylor
e2652d813d
If ps_udevice_msgs >= 2, print complete line of unsupported PSpice instance. For debugging purposes.
4 years ago
Giles Atkinson
c704854b3c
Fix bug reported by Anant Devi in user discussion 22/9/22.
A function call, vi(v) was misparsed as the special token i(vsource)
for the current in a voltage source.
4 years ago
Giles Atkinson
d9952575dd
Correct the digital state resolution table, that was previously asymmetric.
An equivalent change is mentioned in the SPICE OPUS change history.
4 years ago
Giles Atkinson
372d9b2c87
Add bidirectional digital/analog bridge.
4 years ago
Giles Atkinson
e80b724460
Add two functions to the Code Model Library: cm_get_node_name()
makes circuit node names available to diagnostics, while
cm_probe_node() is needed for a bidirectional A/D bridge.
4 years ago
Giles Atkinson
8cc9d8522f
Fix bug #602 "Warning message trying to linearize a transient analysis vector"
by changing the way "ngspice -a" (autorun option) works. The inserted code
now checks whether a simulation has already run by examining $curplot
before forcing "run". Also at most one simulation is forced to run.
4 years ago
Giles Atkinson
06131d8107
Rewrite code with Visual Studio complaints.
4 years ago
Holger Vogt
56d07aab31
Transfer i(xx) to xxx#branch only when i is the first
character of the token or preceeded by a space.
4 years ago
Holger Vogt
92ba8ac88e
Just to notify that this might need a better solution
4 years ago
Holger Vogt
f832380dc9
FIXME: This is a hack to re-enable 'make check'
Do not print warning if in batch mode.
4 years ago
Holger Vogt
98763c0add
Note: ix: dc value used for op instead of transient time=0 value
Former warning message or note only issued when dc value and
value at transient time=0 differ.
4 years ago
Holger Vogt
7483f6224d
Note: vs: dc value used for op instead of transient time=0 value
Former warning message or note only issued when dc value and
value at transient time=0 differ.
4 years ago
Holger Vogt
6037450952
Warning message, when 'run' is called without job
(tran, op, ac etc.) is defined.
4 years ago
Holger Vogt
3af627db44
Change error messages to warning messages, because simulator moves on
and command is ignored.
Make messages more verbose (which command?).
4 years ago