开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: OPA1642 SPICE Models #dualopaalice


 

On Wed, Feb 5, 2025 at 05:54 PM, Mark Kahrs wrote:
Hold on, did you also define the SUBCKT for OPA164x???? I presume you did since this is what TI provides.? But I want to make sure.
?
I literally took the .lib file provided by TI, which defines the SUBCKT and appended my SBCKT to it.
?
?
Basically, what you've done is to "call" two versions of the OPA164x subcircuit.? I used the word "call" in quotes since it's not a true procedure call.
?
?
Yes. My intention was to account for all the pins with the parameters already defined in the .lib file. I am new to this, so I'm not sure that was the right way to go about it.
?
Further, do you know that this model works in Gnu SPICE?? (I am presuming that's what KiCAD uses).
?
?
I'm running with PSpice and LTSpice compatibility modes and it seems to be able to interpret everything correctly. Again, I'm very new to this. If it helps at all, the output looks like this:

Note: Codel model file loading path is /home/matthew/workspace/Mic OPA/
Note: Compatibility modes selected: ps lt a
Circuit: KiCad schematic
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000
Using SPARSE 1.3 as Direct Linear Solver
Note: Starting dynamic gmin stepping
Warning: Dynamic gmin stepping failed
Note: Starting true gmin stepping
Warning: True gmin stepping failed
Note: Starting source stepping
Warning: source stepping failed
Note: Transient op started
Warning: singular matrix: ?check nodes xic1.xu1.n3294630 and c1:probe_int_n2#branch
Warning: singular matrix: ?check nodes xic1.xu1.n2991579 and xic1.xu2.n2991581
Warning: singular matrix: ?check node xic1.xu1.n2991581
Warning: singular matrix: ?check nodes probe_int_probe_int_12v_c1_c1_2 and xic1.xu2.n2991579
Warning: singular matrix: ?check nodes xic1.xu1.n4619517 and xic1.xu2.n4619517
Warning: singular matrix: ?check nodes xic1.xu2.n3828449 and xic1.xu1.n2991581
Error: -4.91074e+150, -4.23671e+158 out of range for *
in line bprobe_int_xic1power
Error: -4.91074e+150, -4.23671e+158 out of range for *
in line bprobe_int_xic1power
Error: -4.91074e+150, -4.23671e+158 out of range for *
in line bprobe_int_xic1power
Error: -4.91074e+150, -4.23671e+158 out of range for *
in line bprobe_int_xic1power
Error: -4.91074e+150, -4.23671e+158 out of range for *
...
?
From there, it has a bunch of the same kind of errors, then some other lines and then eventually the unhelpful:

doAnalyses: OP: ?Timestep too small; cause unrecorded.
run simulation(s) aborted

Join [email protected] to automatically receive all group messages.