Activity for ngspice

  • Holger Vogt committed [9007ff] on ngspice

    Enable printing outputs with engineering exponents

  • Holger Vogt committed [be9d1d] on ngspice

    Improve error message

  • Holger Vogt committed [7e2056] on ngspice

    Example for small signal noise in code model OTA

  • Holger Vogt Holger Vogt modified ticket #82

    spicious warning

  • Holger Vogt Holger Vogt posted a comment on ticket #82

    Fixed in pre-master-47 2c0aabd76 ("Remove linker warnings (VS2022)", 2026-04-25)

  • Holger Vogt Holger Vogt modified ticket #81

    spicious warning

  • Holger Vogt Holger Vogt posted a comment on ticket #81

    Fixed in pre-master-47 2c0aabd76 ("Remove linker warnings (VS2022)", 2026-04-25)

  • Holger Vogt committed [2c0aab] on ngspice

    Remove linker warnings (VS2022)

  • Paul Campbell Paul Campbell posted a comment on ticket #87

    Here's a trivial scrip if you run it with a non-debug build (built with FORTIFY_SOURCE) it will core dump. As an added bonus if you run it with a debug build it will complete without crashing but show the corruption in the VCD file Paul

  • Holger Vogt committed [1636ca] on ngspice

    Show that the external process 'gnuplot' is running (Windows only)

  • Holger Vogt committed [35b487] on ngspice

    Update to notes and error messages

  • Holger Vogt committed [b0a625] on ngspice

    Use controlled exit

  • Holger Vogt committed [c9aac1] on ngspice

    Fix a bug reported by Dmitriy, replace = by ==

  • Holger Vogt committed [bc7eb4] on ngspice

    Show equal x axes

  • Holger Vogt committed [e6e3d6] on ngspice

    Fix a bug in the SFFM current source, reported by Dmitriy.

  • Holger Vogt committed [24240d] on ngspice

    All paths return a value

  • Holger Vogt committed [665a49] on ngspice

    Fix a bug, reported by Dmitriy

  • Holger Vogt committed [597358] on ngspice

    remove linker warning.

  • Holger Vogt Holger Vogt modified ticket #87

    ngspice crashes in eprvcd (with fix)

  • Holger Vogt Holger Vogt posted a comment on ticket #87

    Fixed in git branch pre-master-47.

  • Holger Vogt Holger Vogt modified a comment on ticket #87

    I didn't bother because the code was obviously wrong :-) It's past bed time here in NZ, I'll knock a definitive one up tomorrow. But to trigger it you should do something like build ngspice without debug and do a vcd write with -a and 3 or more signals, that should trigger a crash. Paul

  • Holger Vogt committed [5490c3] on ngspice

    ngspice crashes in eprvcd with 3 or more analog parameters.

  • Holger Vogt committed [08acce] on ngspice

    Move the memory check to a place where it is called once only per plot

  • Holger Vogt committed [215dd0] on ngspice

    Status display 'shell', if shell command takes its time.

  • Holger Vogt committed [6bb89d] on ngspice

    Implement MIFnoise(), the generic noise callback for all XSPICE code

  • Holger Vogt committed [5afef4] on ngspice

    OTA (operational transconductance amplifier) code model as a

  • Holger Vogt committed [3e4df6] on ngspice

    Add ota to VC analog project

  • Holger Vogt committed [013408] on ngspice

    Implement MIFnoise(), the generic noise callback for all XSPICE code

  • Paul Campbell Paul Campbell posted a comment on ticket #87

    I didn't bother because the code was obviously wrong :-) It's past bed time here in NZ, I'll knock a definitive one up tomorrow. But to trigger it you should do something like build ngspice without debug and do a vcd write with -a and 3 or more signals, that should trigger a crash. Paul On Sat, 25 Apr 2026, 00:36 Holger Vogt, h_vogt@users.sourceforge.net wrote: Do you have a test case fro me? [support-requests:#87] https://sourceforge.net/p/ngspice/support-requests/87/ ngspice crashes in eprvcd (with...

  • Holger Vogt Holger Vogt modified ticket #84

    Loop incompatibility

  • Holger Vogt Holger Vogt posted a comment on ticket #87

    Do you have a test case fro me?

  • Holger Vogt Holger Vogt modified ticket #87

    ngspice crashes in eprvcd (with fix)

  • Holger Vogt Holger Vogt posted a comment on ticket #87

    Thanks for the patch. I will have a look.

  • Paul Campbell Paul Campbell created ticket #87

    ngspice crashes in eprvcd (with fix)

  • marcel hendrix marcel hendrix posted a comment on discussion Help

    A 5th order integration method (like PLECS is using) needs 4 initial derivatives in addition to the initial value itself. IIRC, SPICE does a number of steps (with a low order integrator) to approximate these derivatives. This approximation will be inaccurate, and anyway there is no guarantee that the values are what the user intended. However, I think it reasonable to expect that SPICE-based simulators will show the same result. With SIMPWL I know for sure that it does not need unknown derivatives....

  • dick freebird dick freebird posted a comment on discussion Help

    Might check that mutuals are sane. I have had trouble in other simulators in other times, trying to do complex couplings (without clue) and evidently there's some stuff about making sure matrices are sparse and the k values rolled up, still sub-unity (?). I just gave up trying to model bond wire k couplings. C, OK. L,OK. Anyway, different simulators might respond to the physically impossible in various ways. I'd dig there first, "why?". Then maybe run a "settling" tran job to get to a DC-stable or...

  • Keith OHara Keith OHara modified a comment on ticket #121

    It is, as are others of the BSIM* devices. It seems it was too confusing for me the first time I generated a list of non-NULL DEVconvTest pointers, but it is straightforward now, so this evening I can finish completing the patch, recheck, and repost. Edit: I've added the forgotten parallel changes, rechecked and replaced the patch in my post above to avoid confusion of similarly named patches. The patch has the intended effect, in that printfs show that the differences being tested for convergence...

  • Keith OHara Keith OHara modified a comment on ticket #121

    Attaching a completion of the repairs started in the patch already applied to pre-master-47, making the same fix in devices bjt, dio, hicum2, vbic, vdmos, (Edit: and the bsim family). I see no similar errors on other devices ( mos6, etc.). Clean make check and in my sampling through the examples, everything seems to work to me. The regression test in this patch now uses a 'dio' device instead of a user-written 'asrc' function representing a diode. Improving performance on the simulation using this...

  • Keith OHara Keith OHara posted a comment on ticket #121

    It is, as are others of the BSIM* devices. It seems it was too confusing for me the first time I generated a list of non-NULL DEVconvTest pointers, but it is straightforward now, so this evening I can finish completing the patch, recheck, and repost.

  • marcel hendrix marcel hendrix modified a comment on discussion Help

    Thanks, Felix! BTW, I tried OpenModelica and SIMBA (demo version) just now. Modelica is a monster that I can not make sense off. SIMBA gave an interesting result. The initial values are obeyed but neither the frequency nor the damping are correct. With respect to the link to Gnucap wiki: I think UIC is useful when you want to restart a simulation from a (partly) saved snapshot. I also use it to start up simulations where SPICE does not find a reasonable OP quickly enough (like for a power-factor...

  • Holger Vogt Holger Vogt posted a comment on ticket #121

    If we look at b4cvtest.c, lines 56 ff. , is this the same issue?

  • marcel hendrix marcel hendrix posted a comment on discussion Help

    Thanks, Felix! I'll ponder gnucap's documentation. BTW, I tried OpenModelica and SIMBA (demo version) just now. Modelica is a monster that I can not make sense off. SIMBA gave an interesting result. The initial values are obeyed but neither the frequency nor the damping are correct.

  • Keith OHara Keith OHara posted a comment on ticket #121

    Attaching a completion of the repairs started in the patch already applied to pre-master-47, making the same fix in devices bjt, dio, hicum2, vbic, vdmos. I see no similar errors on other devices ( mos6, etc.). Clean make check and in my sampling through the examples, everything seems to work to me. The regression test in this patch now uses a 'dio' device instead of a user-written 'asrc' function representing a diode. Improving performance on the simulation using this more rigorously physically-based...

  • Felix Felix modified a comment on discussion Help

    see here (Gnucap wiki). tl;dr; The issue is somewhere between model specification and simulation algorithm. The way Spice implements UIC makes no physical sense in general (cf. the currents at time 0). Particularly, (spice, ngspice) UIC was not originally intended for the purpose shown here. NB: Other simulators may do different things. Not rocket science, but at the cost of losing Spice compatibility.

  • Felix Felix posted a comment on discussion Help

    see http://gnucap.org/dokuwiki/doku.php/gnucap:manual:tech:spice2verilog?s[]=uic#algorithmic_peculiarities tl;dr; The issue is somewhere between model specification and simulation algorithm. The way Spice implements UIC makes no physical sense in general (cf. the currents at time 0). Particularly, (spice, ngspice) UIC was not originally intended for the purpose shown here. NB: Other simulators may do different things. Not rocket science, but at the cost of losing Spice compatibility.

  • marcel hendrix marcel hendrix modified a comment on discussion Help

    I am struggling with the simulation of a coupled inductor when initial values are specified. By now I did the same simulation (see attachment) in NGSPICE, LTspice, PLECS, and SIMPWL, with four rather different outcomes. The LTspice result is clearly completely wrong. It simply does not obey the IC=... specification when using .TRAN with the UIC option. At least the sum of the three inductor currents is 0, as it must be. This is a surprising result for this rather mature program. NGSPICE is clearly...

  • marcel hendrix marcel hendrix modified a comment on discussion Help

    I am struggling with the simulation of a coupled inductor when initial values are specified. By now I did the same simulation (see attachment) in NGSPICE, LTspice, PLECS, and SIMPWL, with four rather different outcomes. The LTspice result is clearly completely wrong. It simply does not obey the IC=... specification when using .TRAN with the UIC option. At least the sum of the three inductor currents is 0, as it must be. This is a surprising result for this rather mature program. NGSPICE is clearly...

  • marcel hendrix marcel hendrix modified a comment on discussion Help

    I am struggling with the simulation of a coupled inductor when initial values are specified. By now I did the same simulation (see attachment) in NGSPICE, LTspice, PLECS, and SIMPWL, with four rather different outcomes. The LTspice result is clearly completely wrong. It simply does not obey the IC=... specification when using .TRAN with the UIC option. At least the sum of the three inductor currents is 0, as it must be. This is a surprising result for this rather mature program. NGSPICE is clearly...

  • marcel hendrix marcel hendrix modified a comment on discussion Help

    I am struggling with the simulation of a coupled inductor when initial values are specified. By now I did the same simulation (see attachment) in NGSPICE, LTspice, PLECS, and SIMPWL, with four rather different outcomes. The LTspice result is clearly completely wrong. It simply does not obey the IC=... specification when using .TRAN with the UIC option. At least the sum of the three inductor currents is 0, as it must be. This is a surprising result for this rather mature program. NGSPICE is clearly...

  • marcel hendrix marcel hendrix modified a comment on discussion Help

    I am struggling with the simulation of a coupled inductor when initial values are specified. By now I did the same simulation (see attachment) in NGSPICE, LTspice, PLECS, and SIMPWL, with four rather different outcomes. The LTspice result is clearly completely wrong. It simply does not obey the IC=... specification when using .TRAN with the UIC option. At least the sum of the three inductor currents is 0, as it must be. NGSPICE is clearly better. The sum of the initial inductor currents is 0, and...

  • marcel hendrix marcel hendrix modified a comment on discussion Help

    I am struggling with the simulation of a coupled inductor when initial values are specified. By now I did the same simulation (see attachment) in NGSPICE, LTspice, PLECS, and SIMPWL, with four rather different outcomes. The LTspice result is clearly completely wrong. It simply does not obey the IC=... specification when using .TRAN with the UIC option. At least the sum of the three inductor currents is 0, as it must be. NGSPICE

  • marcel hendrix marcel hendrix posted a comment on discussion Help

    I am struggling with the simulation of a coupled inductor when initial values are specified. By now I did the same simulation (see attachment) in NGSPICE, LTspice, PLECS, and SIMPWL, with four rather different outcomes. The LTspice result is clearly completely wrong. It simply does not obey the IC=... specification when using .TRAN with the UIC option. At least the sum of the three inductor currents is 0, as it must be. NGSPICE

  • Holger Vogt committed [461445] on ngspice

    Info message to stdout, not stderr

  • Holger Vogt committed [4cf82e] on ngspice

    Fix NULL dereference of getpwuid() result and missing tfree()

  • Holger Vogt Holger Vogt modified ticket #839

    make check fails on pre-master-47 due to missing file

  • Holger Vogt Holger Vogt posted a comment on ticket #839

    Fixed in pre-master-47.

  • Holger Vogt committed [72f2b8] on ngspice

    Add missing

  • Holger Vogt committed [da9371] on ngspice

    Add missing, fixes bug 839, reported by Mamoru Tasaka

  • Giles Atkinson Giles Atkinson posted a comment on ticket #121

    Thanks! G.

  • Keith OHara Keith OHara posted a comment on ticket #121

    2 files, attached, go in tests/regression/misc They are in the patch up-thread, so it might be easier reapply and 'git add' the two new files. I did follow up on my comment "there is a similar error in the tests for other nonlinear devices" from the top post, and in the end found only one or two copies of this error. I'll try within one day to find and recheck that completion of this patch, and then post it here.

  • Giles Atkinson Giles Atkinson modified a comment on ticket #121

    The patch was missing a file, convergence.cir, causing Bug #839. Keith OHara, please post the file.

  • Giles Atkinson Giles Atkinson posted a comment on ticket #121

    The patch was missing a file, convergence.cir. Keith OHara, please post the file.

  • Giles Atkinson Giles Atkinson posted a comment on ticket #839

    Indeed, it is an effect of integrating Patch 121 (commit 0638aaa160). The file was not included in the patch. To fix, remove the file name from tests/regression/misc/Makefile.am. Thank you for the report.

  • Holger Vogt committed [668329] on ngspice

    PSS updates:

  • Holger Vogt committed [a3102a] on ngspice

    Some tiny updates for pss examples

  • Mamoru TASAKA Mamoru TASAKA created ticket #839

    make check fails on pre-master-47 due to missing file

  • Holger Vogt committed [21b313] on ngspice

    Implement getrusage() with ru_maxrss permanently for Apple ARM.

  • Holger Vogt committed [7859aa] on ngspice

    Updating the 'available memory' measurement for Apple ARM 64 bit

  • Holger Vogt Holger Vogt modified ticket #126

    OSDI array parameters lead to segmentation fault

  • Holger Vogt committed [1a621e] on ngspice

    load both standard and nqs PSP models

  • Holger Vogt committed [e1bc44] on ngspice

    Update van der Pol oscillator

  • Holger Vogt committed [a2a22c] on ngspice

    Improve PSS error messages

  • Holger Vogt committed [835118] on ngspice

    PSS: new breakpoint deletion, copied from dctran.c:

  • Holger Vogt committed [b9221a] on ngspice

    Fix a bug when evaluating -0.5^3.

  • Hai Yang Hai Yang posted a comment on discussion Help

    Thank you for your response. Following is the result from SPICE, Note: Compatibility modes selected: ps lt a Circuit: Doing analysis at TEMP = 27.000000 and TNOM = 27.000000 Using SPARSE 1.3 as Direct Linear Solver Operating point simulation skipped by 'uic', now using transient initial conditions. Warning: command 'plot' is not available during batch simulation, ignored! You may use Gnuplot instead. No. of Data Rows : 10011 irms = 6.35351e+00 from= 1.00000e-08 to= 1.00000e-02 irms = 6.353514e+00...

  • Hai Yang Hai Yang posted a comment on discussion Help

    Thank you for your response. I am pretty new to SPICE. I am going to try UIC

  • Hai Yang Hai Yang posted a comment on discussion Help

    Thank you for your response. You are genius. I modified my netlist, and increase the length to 4 second. The result get much better. * Inductor RMS current measurement V1 in 0 SIN(0 282.28 50) R1 in n1 0.10 L1 n1 0 100mH .tran 0.2ms 4000ms 1000ms .control run meas tran Irms RMS i(L1) from=2000ms to=3000ms print Irms .endc .end Following is the result, Note: Compatibility modes selected: ps lt a Circuit: Doing analysis at TEMP = 27.000000 and TNOM = 27.000000 Using SPARSE 1.3 as Direct Linear Solver...

  • Hai Yang Hai Yang posted a comment on discussion Help

    Thank you for your response, For this circuit, the theorical calculation value is, 6.37A. The margin of error is too high. I modified my netlist, and got a better result from SPICE.

  • Holger Vogt Holger Vogt modified a comment on discussion Help

    Use initial conditions: * Inductor RMS current measurement V1 in 0 SIN(0 282.28 50) R1 in n1 0.10 L1 n1 0 100mH ic=-9 .tran 1us 10m uic .control run plot i(L1) meas tran Irms RMS i(L1) print Irms .endc .end

  • Holger Vogt Holger Vogt posted a comment on discussion Help

    Use initial conditions: * Inductor RMS current measurement V1 in 0 SIN(0 282.28 50) R1 in n1 0.10 L1 n1 0 100mH ic=-9 .tran 10us 2 uic .control run plot i(L1) meas tran Irms RMS i(L1) print Irms .endc .end

  • marcel hendrix marcel hendrix posted a comment on discussion Help

    Additionally, the simulation as is runs over only a half cycle. The calculation assumes the waveform is a full number of cycles in steady-state. Still I am slightly confused. Isn't a .TRAN (without UIC ) supposed to calculate the steady-state of the circuit? That is not happening. (Apparently the initial state not only shorts inductors and opens capacitors, but it also assumes DC sources.)

  • Giles Atkinson Giles Atkinson posted a comment on discussion Help

    That is caused by the starting transient. Increase the length to 1 second: meas tran Irms RMS i(L1) from=0.98 to=1 Irms = 7.17735e+00 from= 9.80000e-01 to= 1.00000e+00 Plotting the current shows what happens!

  • Dietmar Warning Dietmar Warning posted a comment on discussion Help

    10.968Arms I see also in other simulators.

  • chaojun chaojun posted a comment on ticket #776

    Thanks! I checked the rest of the codebase — $oscompiled is only used in vlnggen, ghnggen, and the definition in init.c, so the patch should cover all affected files. Happy to make changes if needed after your testing.

  • Hai Yang Hai Yang modified a comment on discussion Help

    Hi All, I am trying to measure the RMS current of an inductor in SPICE. Following is my simple circuit, * Inductor RMS current measurement V1 in 0 SIN(0 282.28 50) R1 in n1 0.10 L1 n1 0 100mH .tran 1us 10ms .control run meas tran Irms RMS i(L1) print Irms .endc .end And I got a valid result from SPICE. Following is the result, Note: Compatibility modes selected: ps lt a Circuit: Doing analysis at TEMP = 27.000000 and TNOM = 27.000000 Using SPARSE 1.3 as Direct Linear Solver Initial Transient Solution...

  • Hai Yang Hai Yang posted a comment on discussion Help

    Hi All, I am trying to measure the RMS current of an inductor in SPICE. Following is my simple circuit, * Inductor RMS current measurement V1 in 0 SIN(0 282.28 50) R1 in n1 0.10 L1 n1 0 100mH .tran 1us 10ms .control run meas tran Irms RMS i(L1) print Irms .endc .end And I got a valid result from SPICE. Following is the result, Note: Compatibility modes selected: ps lt a Circuit: Doing analysis at TEMP = 27.000000 and TNOM = 27.000000 Using SPARSE 1.3 as Direct Linear Solver Initial Transient Solution...

  • Robert Turnbull Robert Turnbull posted a comment on ticket #121

    This patch has eliminated the false convergence Giles noted on bug #824. My test circuit now fails to converge with or without the added 0V source.

  • Giles Atkinson Giles Atkinson posted a comment on ticket #776

    Many thanks for the patch. I should try and revive my old test environment and verify MSYS, Cygwin and the rest. Perhaps dropping Cygwin can be considered, it is not mentioned much recently. (The web site suggest that Windows versions later than 2012 are not supported!) The $oscompiled error is interesting. The documentation agrees, so I think I must have copied that from somewhere. When fixed in XXXgen, the bug may be lurking elsewhere ...

  • chaojun chaojun posted a comment on ticket #776

    Root cause analysis and patch I traced the issue to its root cause. There are actually three problems in vlnggen (and the same first one in ghnggen): $oscompiled = 1 (MINGW) is missing from the Windows detection In configure.ac, the OS values are: 1 = MINGW, 2 = Cygwin, 3 = FreeBSD, 4 = OpenBSD, 5 = Solaris, 6 = Linux, 7 = macOS, 8 = MSVC But vlnggen line 39 checks: if $oscompiled = 2 | $oscompiled = 3 | $oscompiled = 8 // Windows This misses MINGW (1) and incorrectly includes FreeBSD (3). So MSYS2/MINGW-built...

  • Robert Turnbull Robert Turnbull posted a comment on ticket #838

    I'm using Debian 13 and gcc 14 as well.

  • Holger Vogt committed [afd4eb] on ngspice

    Fix a bug introduced by yesterday's commit

  • Holger Vogt Holger Vogt posted a comment on ticket #838

    It is simply a bug I have introduced with yesterday's commit https://sourceforge.net/p/ngspice/ngspice/ci/8abfb5aeb05383f693088c56d746a84ceaa16dc7/. VS2022 does not care. A fix is uploaded.

  • Giles Atkinson Giles Atkinson posted a comment on ticket #838

    Reproduced with Debian 13/gcc 14.2 and probably compiler-specific. OS and compiler versions please.

  • Robert Turnbull Robert Turnbull created ticket #838

    Compilation Error in options.c

  • dick freebird dick freebird posted a comment on discussion ngspice-devel

    I've never used incomplete args, but for a triangle wave my workaround was just use an infinitesimal PW rather than zero. SPICE2 used to be pretty unforgiving.

  • Francesco Lannutti Francesco Lannutti posted a comment on ticket #121

    Hi Holger, I think it's that one, but it's a 10years old work, so I don't remember exactly! :) It's part of my PhD, attached, along with LnL Separation (I think there is a branch for this too). Thank you, Fra

  • Francesco Lannutti Francesco Lannutti posted a comment on ticket #121

    Hi Holger, no, no, because it was experimental for some models. It needs code model modification, like KLU... But we could brainstorm offline among all of us. Thank you, Fra

  • Holger Vogt Holger Vogt posted a comment on ticket #121

    Which branch are you talking about? Is it 'new-kirchhoff-5' ? What is the advantage of this approach ? Do you have made some description or publication?

  • Holger Vogt Holger Vogt posted a comment on ticket #121

    Is it ready for patching, or does it need further optimisation?

  • Francesco Lannutti Francesco Lannutti posted a comment on ticket #121

    Hi guys, what do you think if we also include my work on KCL Verification? It's basically on the same topic of this one. Maybe we can combine it... Thank you, Fra

1 >
MongoDB Logo MongoDB