Help needed with a SPICE library device #950
-
Hi, The "SPICE library device" is usually working well for me, but I have encountered a model (a Schottky diode SB5100) that is not working properly. This model is working in KiCad, but not in qucs-s. I need some help figuring out why. I get the following error in the sim log:
Please see the attached model library. |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 3 replies
-
Model works in LTspice but isn't working in ngspice as a model. See Issue #951 |
Beta Was this translation helpful? Give feedback.
-
Try setting the LTspice compatibility mode globally at the simulation dialog. Probably you have this option enabled somewhere in KiCAD settings. |
Beta Was this translation helpful? Give feedback.
-
I am very sorry, right now I cannot reproduce it. |
Beta Was this translation helpful? Give feedback.
-
I have tried to simulate the schematic using the attached mode and I cannot reproduce the simulation problem. Everything works on my machine using LTspice compatibility mode. I remember that you are running Qucs-S on Mac. This may some specific issues with Ngspice Mac version. Does this model work using CLI Ngspice mode? The KiCAD uses different Ngspice compiled as shared library. It may have different compile time options. Also try the following netlist with Ngspice CLI version:
|
Beta Was this translation helpful? Give feedback.
-
Your test circuit is different than mine. I used a "Red" diode and an .INCLUDE statement pointing at the Spice sub-circuit. Shouldn't my configuration work? |
Beta Was this translation helpful? Give feedback.
-
This will not work. Furthermore, the red diode never worked in a such way. It requires the model ( |
Beta Was this translation helpful? Give feedback.
-
So Red diode is handled differently than Red mosfet/bjt? |
Beta Was this translation helpful? Give feedback.
-
All red devices require a |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
I finally see the issue. This is a rare case of a manufacturer making a generic subcircuit instead of a simple .Model. I assume they did this to make models faster. Funny the company only offers Spice models for a few of it's diodes... Here are two MOSFET amps. One uses MOSFET models and the other MOSFET sub-circuits. I don't see "X" being used anywhere. |
Beta Was this translation helpful? Give feedback.
-
Fixed the diode project. Created 2 examples.
|
Beta Was this translation helpful? Give feedback.
Fixed the diode project. Created 2 examples.
Rectifiers_prj.zip