Menu

#500 Bug with "ngbehavior=ltps"

v1.0 (example)
closed-fixed
5
2020-07-10
2020-07-10
Jan Seeger
No

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 ->
1 Attachments

Related

Bugs: #500

Discussion

  • Holger Vogt

    Holger Vogt - 2020-07-10
    • status: open --> open-accepted
    • assigned_to: Holger Vogt
     
  • Holger Vogt

    Holger Vogt - 2020-07-10

    It is a bug. I will take care.

    Number 500: congratulations!

    Holger

     
  • Holger Vogt

    Holger Vogt - 2020-07-10
    • status: open-accepted --> closed-fixed
     
    • Jan Seeger

      Jan Seeger - 2020-07-10

      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:

      • status: open-accepted --> closed-fixed
      • Comment:

      A fix is uploaded to branch pre-master.


      ** [bugs:#500] Bug with "ngbehavior=ltps"**

      Status: closed-fixed
      Group: v1.0 (example)
      Labels: compatibility
      Created: Fri Jul 10, 2020 09:43 AM UTC by Jan Seeger
      Last Updated: Fri Jul 10, 2020 09:54 AM UTC
      Owner: Holger Vogt
      Attachments:

      -
      test.cir
      (88 Bytes; application/octet-stream)

      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 ->


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/ngspice/bugs/500/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Sent from my Android device with K-9 Mail. Please excuse my brevity.

       

      Related

      Bugs: #500

  • Holger Vogt

    Holger Vogt - 2020-07-10

    A fix is uploaded to branch pre-master.

     

Log in to post a comment.

MongoDB Logo MongoDB