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
2022-10-17 16:03:36 +02:00
Holger Vogt
5bc1660773
prepare ngspice-38
2022-10-16 16:59:34 +02:00
Holger Vogt
74630bf570
Tiny updates
2022-10-16 10:45:23 +02:00
Holger Vogt
51fbf2fbf3
Update to the ngspice code entry points.
2022-10-16 10:38:41 +02:00
Holger Vogt
c38e6abe59
Make doxygen documentation complete as an example.
2022-10-15 16:02:07 +02:00
Holger Vogt
e2defea752
The derivative of pow shall use the new pow function as well,
...
when compat mode LT is selected.
2022-10-14 14:56:09 +02:00
Holger Vogt
f78a8b49a7
The derivative of pow shall use the new pow function as well,
...
when compat mode LT is selected.
2022-10-14 14:54:30 +02:00
Giles Atkinson
01c4a5dff2
Fix memory leak reported by Brian Taylor.
2022-10-14 13:52:34 +02:00
Giles Atkinson
9801d06795
Fix XSPICE's node prefix '~' when PSPICE compatability is used.
2022-10-14 13:52:17 +02:00
Holger Vogt
fce6a74e8a
Short description of the ngspice code organization.
2022-10-14 13:52:01 +02:00
Holger Vogt
d7485d7136
Fix typo
2022-10-14 13:51:16 +02:00
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
2022-10-14 13:50:37 +02:00
Holger Vogt
933b1fdb2b
Add some comment
2022-10-14 13:50:20 +02:00
Holger Vogt
2378302114
Update for doxygen: add function names to \brief
2022-10-12 21:49:08 +02:00
Holger Vogt
39fd21b04b
Update to comments for doxygen
2022-10-12 21:33:24 +02:00
Giles Atkinson
c396090e51
Fix memory leak reported by Brian Taylor.
2022-10-12 20:52:35 +02:00
Giles Atkinson
eb353ee2f7
Fix XSPICE's node prefix '~' when PSPICE compatability is used.
2022-10-12 20:52:15 +02:00
Holger Vogt
cb1adc4a4e
Short description of the ngspice code organization.
2022-10-12 17:22:28 +02:00
Holger Vogt
0ac52967dd
Fix typo
2022-10-12 12:52:43 +02:00
Holger Vogt
b2c4c4dac1
Test for doxygen documentation
2022-10-12 12:52:09 +02:00
Holger Vogt
540cda52ad
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
2022-10-12 12:26:12 +02:00
Holger Vogt
d24b405bfb
Add some comment
2022-10-12 12:23:36 +02:00
Brian Taylor
150839dd1a
Remove VisualC compile warnings.
2022-10-09 10:21:51 +02:00
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.
2022-10-09 10:21:39 +02:00
Holger Vogt
2547115eeb
Prevent Visual Studio compiler warnings
2022-10-09 10:21:06 +02:00
Brian Taylor
ff58fbbe56
Remove VisualC compile warnings.
2022-10-09 10:15:14 +02:00
Holger Vogt
317e5a3d99
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.
2022-10-09 10:11:23 +02:00
Holger Vogt
dcb3bf0f8b
Prevent Visual Studio compiler warnings
2022-10-08 17:20:48 +02:00
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.
2022-10-08 16:58:26 +02:00
Giles Atkinson
8775376723
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.
2022-10-08 16:55:53 +02:00
Holger Vogt
ffc09208bf
send error message to stderr, not to stdout
2022-10-08 16:51:02 +02:00
Holger Vogt
9166f202a6
Streamline the simple diode model.
2022-10-08 16:50:47 +02:00
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
2022-10-08 16:50:38 +02:00
Holger Vogt
7bb581b1b3
Remove parameter noiseless in simple diode model.
...
The model is noiseless anyway.
2022-10-08 16:50:26 +02:00
Brian Taylor
266d944745
Remove unnecessary hierarchical level check.
2022-10-08 16:50:15 +02:00
Brian Taylor
bd00738a49
Fix memory leaks in ff/latch code.
2022-10-08 16:50:03 +02:00
Brian Taylor
e2652d813d
If ps_udevice_msgs >= 2, print complete line of unsupported PSpice instance. For debugging purposes.
2022-10-08 16:49:38 +02:00
Holger Vogt
4cb6c93a1a
Add bidirectional bridge to MS project file for icm digital
2022-10-08 16:49:21 +02:00
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.
2022-10-08 16:49:02 +02:00
Giles Atkinson
b212a49982
Add some automatic bridge examples, mostly using the bidirectional bridge.
2022-10-08 16:48:36 +02:00
Giles Atkinson
d9952575dd
Correct the digital state resolution table, that was previously asymmetric.
...
An equivalent change is mentioned in the SPICE OPUS change history.
2022-10-08 16:48:20 +02:00
Giles Atkinson
372d9b2c87
Add bidirectional digital/analog bridge.
2022-10-08 16:48:11 +02:00
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.
2022-10-08 16:47:50 +02:00
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.
2022-10-08 16:47:30 +02:00
Giles Atkinson
06131d8107
Rewrite code with Visual Studio complaints.
2022-10-08 16:47:09 +02:00
Holger Vogt
56d07aab31
Transfer i(xx) to xxx#branch only when i is the first
...
character of the token or preceeded by a space.
2022-10-08 16:46:51 +02:00
Holger Vogt
92ba8ac88e
Just to notify that this might need a better solution
2022-10-08 16:46:18 +02:00
Holger Vogt
f832380dc9
FIXME: This is a hack to re-enable 'make check'
...
Do not print warning if in batch mode.
2022-10-08 16:46:01 +02:00
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.
2022-10-08 16:45:38 +02:00
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.
2022-10-08 16:45:14 +02:00