Commit Graph

8451 Commits

Author SHA1 Message Date
Holger Vogt ddd0effd27 Set brackets to remove gcc compiler warning 2023-08-12 23:57:38 +02:00
Giles Atkinson 62b7247087 Remove duplicate definition of variable idp, as compiler may warn. 2023-08-12 18:14:40 +01:00
Holger Vogt 0db8d3b956 Reemove needless code, check for '}0',
don't do anything here if not true m=something
2023-08-12 14:55:48 +02:00
Holger Vogt 2f369d5435 Remove gcc compiler warning: remove needless code 2023-08-12 14:19:29 +02:00
Holger Vogt c33bcafb34 Remove buggy if clause, add safeguards against buggy input 2023-08-12 13:55:51 +02:00
Holger Vogt 550f563e0d Remove gcc compiler warnings 2023-08-12 12:30:47 +02:00
Holger Vogt 51e8f4311e Activate callback, remove memory leak 2023-08-12 12:25:35 +02:00
Giles Atkinson 5638008a7f Complete version of intertial delay for d_tristate. The State and
Strength members are treated independently and combined in the output.
2023-08-09 08:28:40 +01:00
Giles Atkinson c02de13e10 Fix an infinite loop bug that may be seen with "stop whan a>b" or
"stop when a<>b".
2023-08-08 11:59:51 +01:00
Brian Taylor 7840547408 Add support for PSpice DLYLINE. 2023-08-06 12:25:25 +02:00
Holger Vogt b4c1138a4f Transformer examples, (three different methods)
Single primary and secondary windings

More to come (multiple ports, core saturation)
2023-08-05 23:40:45 +02:00
Giles Atkinson f1cd9c2596 Fix a crash when trying to auto-bridge a real-valued event node
and improve an error message.
2023-08-05 13:52:44 +01:00
dwarning 93443b988e decrease iteration count for low base biasing 2023-08-04 21:45:12 +02:00
dwarning 2a1ecefc28 better low Ic range covering 2023-08-04 21:45:12 +02:00
Holger Vogt aecf5cdcba Fix comment on old-style .lib 2023-08-04 20:11:39 +02:00
dwarning 0b6a937537 no need for extra run 2023-08-04 15:00:36 +02:00
Brian Taylor ea685d3c64 For d0_eff, d0_gff timing models specify the 1.0e-12 minimum Xspice delay valuesrather than defaulting to 1ns. 2023-08-04 11:29:20 +02:00
Holger Vogt 4246b31126 Revert "Marcel Hendrix's fix for Bug #324 -"
This reverts commit d3a8634afe.
2023-07-30 16:01:15 +02:00
Holger Vogt f548e8400a eprvcd [-a] [-t timescale] node node ...
timescale is now given by minimum 1fs, maximum 1s.
2023-07-30 14:44:07 +02:00
Holger Vogt adea3dca5e 'current time' instead of 'actual time' 2023-07-30 14:42:09 +02:00
Holger Vogt f4711676a5 better visibility 2023-07-30 08:41:54 +02:00
Holger Vogt 7e91a23804 Remove vs2022 linker warning (ctx potentially uninitialized) 2023-07-30 08:40:57 +02:00
Holger Vogt b6585c8e14 replace exp10() by pow(10, ...),
exp10 not available in VS2022
2023-07-30 08:39:47 +02:00
Holger Vogt 2e3af2658a fopen_with_path enable path search (directory of recent inputs or
NGSPICE_INPUT_DIR)
2023-07-30 08:37:55 +02:00
Giles Atkinson 22af06585e Add example of reading S-parameters from a Touchstone file. 2023-07-29 10:36:36 +01:00
Giles Atkinson e0f618b5db Add a comment to say that LT/PSPICE compatability is needed. 2023-07-29 09:42:06 +01:00
Giles Atkinson c61543a4f3 Fix Bug #629 - "XSPICE d_osc failures". The old code has been completely
replaced by a new design that is faster, more reliable and does not
usually insert analog breakpoints.
2023-07-29 09:41:13 +01:00
Giles Atkinson 54b8171c53 Add code in ivars.c to look for a SPICE_ROOT environment variable
that gives the location of the ngspice installation.  That allows
binaries to be installed in a different directory to the one
compiled in.  The spinit startup file is made location-independent
by passing a variable giving the location of loadable modules,
so this fixes Bug #615 -
"spinit contains arch dependent paths, but is installed as noarch DATA".
2023-07-29 09:37:57 +01:00
Giles Atkinson bead3e3249 Add an option for parameters to the xfer code model to be provided
in a Touchstone-format file instead of as a model parameter.
The change to mif_inp2.c allows the "table" parameter to be omitted.
2023-07-29 09:34:12 +01:00
Giles Atkinson d3a8634afe Marcel Hendrix's fix for Bug #324 -
Difference between file and line input for '];'
2023-07-29 09:30:51 +01:00
Giles Atkinson e9386155a6 Add support for including analog node changes in VCD file output,
and an option to explicitly set the VCD timestep.  Correct the
output value for high-impedance nodes.
2023-07-29 09:16:01 +01:00
Brian Taylor 8f3c83f776 Example for 7490a Pspice subckt. This exercises jkff, logicexp, and pindly conversions to XSPICE. 2023-07-25 17:32:26 +02:00
Holger Vogt c9548c10c9 Prevent crash when number of parameter dependencies increases beyond
limit. Raise the limit from 100 to 200.
2023-07-25 15:18:02 +02:00
Holger Vogt a5535d18d0 re-enable rcheck debug output with WINGUI 2023-07-25 15:16:33 +02:00
Holger Vogt d1187e9a34 Add variable "csnumprec" to allow setting the precision of vectors
and variables as arguments to functions listet in manual chapter 17.5.
Default is 6, as has been standard up to now.
2023-07-24 14:18:05 +02:00
Holger Vogt 9a6d950159 Make status report (MS Windows only) a little smarter. 2023-07-22 17:10:30 +02:00
Holger Vogt 7027a49663 Add an option nginfo to enable a status report during simulation
(currently available only with MS Windows GUI version).
2023-07-22 16:03:34 +02:00
Holger Vogt f46f481942 Remove compiler warnings (VS2022) 2023-07-22 10:30:37 +02:00
Brian Taylor 752c4936c0 Prevent crashes in udevices.c when malformed U* instances are present. This would happen with incorrectly written U* gates, ff, latches which do not conform to the PSpice specs. Instead, ERROR messages are output which, hopefully, will help a user to debug their subckt. 2023-07-22 10:19:27 +02:00
Giles Atkinson 3f3c4dc6aa Allow netlist lines to grow during parameter substitution,
removing a 25-character limit on the size of string parameters.
2023-07-21 08:47:10 +02:00
Giles Atkinson 1876e59aaf Fix the NAND and NOR variants of XSPICE code model multi_input_pwl
and add an example of its use with the E-source NAND variant.
2023-07-21 08:47:04 +02:00
Giles Atkinson 53b1bf1800 Fix Bug 584 - "XSPICE dac_bridge model shows incorrect output timing."
Remove reliance on exact breakpoint timing and tidy code.
2023-07-21 08:46:54 +02:00
Holger Vogt ef38b54d3c Change message from Circuit2 to Parse 2023-07-21 08:40:26 +02:00
Brian Taylor 50b9a55392 Simplify expression nesting depth. 2023-07-11 09:48:16 +02:00
Brian Taylor 1e58692e6d The channel data needs to be freed for some 2D Cider devices. This shows up with some of the examples/cider/parallel circuits. 2023-07-11 09:48:10 +02:00
Holger Vogt c6edbe44db Move extern declaration to the top, out of any function.
Thus remove VC2022 compiler warnings.
2023-07-04 12:07:41 +02:00
Brian Taylor f3b83fd4e4 Tidy up sp_shutdown with Cider. 2023-07-04 11:46:40 +02:00
Brian Taylor b63f6e7905 When Cider models are present, a normal batch mode sp_shutdown (for example, ngspice -b cmosinv.cir) will call com_quit(NULL). This cleans up so that valgrind will find no leaks in Cider devices after sp_shutdown. To disable this feature, set the environment variable CIDER_COM_QUIT="OFF". Even though it really does not matter that Cider memory is cleared just before exit, it makes it cleaner for valgrind checks. 2023-07-04 11:46:35 +02:00
Holger Vogt 486b74f728 Prevent a crash if p==NULL (due to buggy input) 2023-07-04 11:45:27 +02:00
dwarning 4c4a9c78ec ifft: in case input array is smaller then output array - fill in the rest with zero to prevent uninitialzed plot variables 2023-07-03 10:07:32 +02:00