Hello! I'm terribly new at using ngspice, so this might be a user error on my part.
However, I think I've found a bug in compatibility behavior when using the "ngbehavior=ltps" option.
I've attached a sample circuit that defines a resistor model called "R_NOISELESS". The ltspice compatibility option seems to translate this into r_noisy, which isn't a parameter for the ngspice resistor model. When using the pspice compatibility setting, the file loads successfully. When renaming the resistor model to "TEST", the model works with ngbehavior=ltpsa.
I'm using ngspice-32 on Gentoo linux.
Expected behavior:
ngspice 1 -> set ngbehavior=ltpsa
ngspice 2 -> source test.cir
Circuit: Bug circuit
ngspice 3 ->
Actual behavior:
ngspice 1 -> set ngbehavior=ltpsa
ngspice 2 -> source test.cir
Error on line 4 :
r1 1 2 r_noisy=0 8k
unknown parameter (r_noisy)
Simulation interrupted due to error!
ngspice 1 -> set ngbehavior=psa
ngspice 2 -> source test.cir
ngspice 3 ->
It is a bug. I will take care.
Number 500: congratulations!
Holger
Lovely! I'll test it next week!
On July 10, 2020 6:00:39 PM GMT+02:00, Holger Vogt h_vogt@users.sourceforge.net wrote:
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Related
Bugs:
#500A fix is uploaded to branch pre-master.