ra3xdh / qucs_s

Qucs-S is a circuit simulation program with Qt-based GUI
https://ra3xdh.github.io/
GNU General Public License v2.0
859 stars 111 forks source link

Spice model with "+" for additional input PINs #861

Open tomhajjar opened 2 months ago

tomhajjar commented 2 months ago

Ran into an odd issue. It seems ngspice can handle a Spice model with "+" for additional input PINs but Qucs-S cannot.

.SUBCKT UC1825_TRANS OUT_B OUT_A ILIM-SD RAMP CT GND Vcc VC VREF NI INV E-A_OUT CLOCK 
+ RT GND SS

UC1825_TRANS_ng.zip

ra3xdh commented 2 months ago

Line continuation in the .SUBCKT header is not supported. The same is valid for old SpiceFile device. Edit the SPICE model to combine the lines as the workaround.

tomhajjar commented 2 months ago

I only mentioned it because of KiCad/ngspice.

Another issue is the model has two pins called GND instead of GND and PGND yet keeps VCC and VC separate.

I am waiting for a response on the KiCad forum why the simulation fails. Doing simulations in KiCad are frustrating because old simulations are not guaranteed to work in new versions of KiCad. Been burned many times...