Skip to content

Instantly share code, notes, and snippets.

@capocasa
Last active April 28, 2024 19:48
Show Gist options
  • Save capocasa/74912b3095766fd2b972eae26bd88dcc to your computer and use it in GitHub Desktop.
Save capocasa/74912b3095766fd2b972eae26bd88dcc to your computer and use it in GitHub Desktop.
spice output
*BS170/MMBF170 at Temp. Electrical Model
*-----------------------------------------
.SUBCKT BS/MMBF170 20 10 30 50
*20=DRAIN 10=GATE 30=SOURCE 50=VTEMP
Rg 10 11x 1
Rdu 12x 1 1u
M1 2 1 4x 4x DMOS L=1u W=1u
.MODEL DMOS NMOS(VTO=2.9 KP=8.2E-1
+THETA=0.05 VMAX=0.8E5 LEVEL=3)
Cgs 1 5x 27p
Rd 20 4 3.8E-1
Dds 5x 4 DDS
.MODEL DDS D(M=4.78E-1 VJ=1.22 CJO=27p)
Dbody 5x 20 DBODY
.MODEL DBODY D(IS=1.94E-12 N=1.201763 RS=0.00355 TT=43.65n)
Ra 4 2 3.8E-1
Rs 5x 5 0.5m
Ls 5 30 0.5n
M2 1 8 6 6 INTER
E2 8 6 4 1 2
.MODEL INTER NMOS(VTO=0 KP=10 LEVEL=1)
Cgdmax 7 4 58p
Rcgd 7 4 10meg
Dgd 6 4 DGD
Rdgd 6 4 10meg
.MODEL DGD D(M=4.25E-1 VJ=8.38E-2 CJO=58p)
M3 7 9 1 1 INTER
E3 9 1 4 1 -2
*ZX SECTION
EOUT 4x 6x poly(2) (1x,0) (3x,0) 0 0 0 0 1
FCOPY 0 3x VSENSE 1
RIN 1x 0 1G
VSENSE 6x 5x 0
RREF 3x 0 10m
*TEMP SECTION
ED 101 0 VALUE {V(50,100)}
VAMB 100 0 25
EKP 1x 0 101 0 .82
*VTO TEMP SECTION
EVTO 102 0 101 0 .005
EVT 12x 11x 102 0 1
*DIODE THEMO BREAKDOWN SECTION
EBL VB1 VB2 101 0 .08
VBLK VB2 0 60
D 20 DB1 DBLK
.MODEL DBLK D(IS=1E-14 CJO=.1p RS=.1)
EDB DB1 0 VB1 0 1
.ENDS BS/MMBF170
*BS170/MMBF170 (Rev.B) 8/6/02 **ST
.title KiCad schematic
.include "/home/carlo/KiCad-Spice-Library/Models/uncategorized/Bordodynovs Electronics Lib/sub/bs170.sub"
.include "/home/carlo/Sync/Electronics/motor/BS170.mod"
.save all
.probe alli
.probe p(VJ1)
.probe p(XQ1)
.probe p(R1)
.probe p(V1)
.probe p(R2)
.op
VJ1 unconnected-_J1-Pin_1-Pad1_ 0 DC +3.3V
XQ1 Net-_Q1-D_ Net-_Q1-G_ Net-_Q1-S_ NC-Q1-0 BS/MMBF170
R1 0 Net-_Q1-G_ 100000
V1 Net-_R2-Pad2_ Net-_Q1-S_ DC 12
R2 Net-_Q1-D_ Net-_R2-Pad2_ 1000
.end
Note: Compatibility modes selected: ps lt a
Warning: redefinition of .subckt bs/mmbf170, ignored
Circuit: KiCad schematic
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000
Warning: singular matrix: check node probe_int_nc-q1-0_xq1_4
Note: Starting dynamic gmin stepping
Warning: singular matrix: check node probe_int_nc-q1-0_xq1_4
Warning: singular matrix: check node probe_int_nc-q1-0_xq1_4
Warning: singular matrix: check node probe_int_nc-q1-0_xq1_4
Warning: singular matrix: check node probe_int_nc-q1-0_xq1_4
Warning: singular matrix: check node probe_int_nc-q1-0_xq1_4
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
Error: Transient op failed, timestep too small
Error: The operating point could not be simulated successfully.
Any of the following steps may fail.!
DC solution failed -
Last Node Voltages
------------------
Node Last Voltage Previous Iter
---- ------------ -------------
probe_int_unconnected-_j1-pin_1-pad1__vj1_1 0 0
probe_int_0_vj1_2 0 0
probe_int_probe_int_net-_q1-g__xq1_2_xq1_2 0 0
xq1.11x 0 0
xq1.12x 0 0
xq1.1 0 -nan
xq1.2 0 -nan
xq1.4x 0 -nan
xq1.5x 0 -nan
probe_int_probe_int_net-_q1-d__xq1_1_xq1_1 0 -nan
xq1.4 0 -nan
xq1.5 0 0
probe_int_probe_int_net-_q1-s__xq1_3_xq1_3 0 0
xq1.8 0 0
xq1.6 0 -nan
xq1.7 0 -nan
xq1.9 0 0
xq1.1x 0 0
xq1.3x 0 0
xq1.6x 0 0
xq1.101 0 0
xq1.ed_int1 0 0
xq1.100 0 0
probe_int_probe_int_nc-q1-0_xq1_4_xq1_4 0 0
xq1.102 0 0
xq1.vb1 0 0
xq1.vb2 0 0
xq1.db1 0 -nan
vj1probe_int_vref 0 0
xq1probe_int_vref 0 0
xq1:power 0 0
probe_int_nc-q1-0_xq1_4 0 0
probe_int_net-_q1-s__xq1_3 0 0
probe_int_net-_q1-g__xq1_2 0 0
probe_int_net-_q1-d__xq1_1 0 0
vj1:power 0 0
unconnected-_j1-pin_1-pad1_ 0 0
net-_q1-d_ 0 0
net-_q1-g_ 0 0
net-_q1-s_ 0 0
nc-q1-0 0 0
probe_int_0_r1_1 0 0
probe_int_probe_int_net-_q1-g__r1_r1_2 0 0
probe_int_net-_q1-g__r1 0 0
r1probe_int_vref 0 0
r1:power 0 0
probe_int_net-_r2-pad2__v1_1 0 0
probe_int_net-_q1-s__v1_2 0 0
probe_int_net-_q1-d__r2_1 0 0
probe_int_probe_int_net-_r2-pad2__r2_r2_2 0 0
v1probe_int_vref 0 0
r2probe_int_vref 0 0
r2:power 0 0
probe_int_net-_r2-pad2__r2 0 0
v1:power 0 0
net-_r2-pad2_ 0 0
bprobe_int_v1power#branch 0 0
v1:probe_int_n1#branch 0 0
v1:probe_int_n2#branch 0 0
bprobe_int_r2power#branch 0 0
r2:probe_int_n1#branch 0 0
r2:probe_int_n2#branch 0 0
bprobe_int_r2vref#branch 0 0
bprobe_int_v1vref#branch 0 0
bprobe_int_r1power#branch 0 0
r1:probe_int_n1#branch 0 0
r1:probe_int_n2#branch 0 0
bprobe_int_r1vref#branch 0 0
bprobe_int_vj1power#branch 0 0
vj1:probe_int_n1#branch 0 0
vj1:probe_int_n2#branch 0 0
bprobe_int_xq1power#branch 0 0
xq1:probe_int_20#branch 0 0
xq1:probe_int_10#branch 0 0
xq1:probe_int_30#branch 0 0
xq1:probe_int_50#branch 0 0
bprobe_int_xq1vref#branch 0 0
bprobe_int_vj1vref#branch 0 0
b.xq1.bed#branch 0 0
v.xq1.vsense#branch 0 0
l.xq1.ls#branch 0 -nan
e.xq1.edb#branch 0 0
e.xq1.ebl#branch 0 0
e.xq1.evt#branch 0 0
e.xq1.evto#branch 0 0
e.xq1.ekp#branch 0 0
e.xq1.ed#branch 0 0
e.xq1.e3#branch 0 0
e.xq1.e2#branch 0 0
r2#branch 0 0
v1#branch 0 12 *
r1#branch 0 0
xq1:50#branch 0 0
xq1:30#branch 0 0
xq1:10#branch 0 0
xq1:20#branch 0 0
v.xq1.vblk#branch 0 60 *
v.xq1.vamb#branch 0 25 *
vj1#branch 0 3.3 *
a$poly$e.xq1.eout#branch_1_0 0 0
doAnalyses: OP: Timestep too small; trouble with xq1:dds-instance d.xq1.dds
run simulation(s) aborted
Simulation results:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment