CircuitLab gives errors when importing a custom spice model

When I try to load the spice model below, I get an error "Error: Can't reduce .model to a single line".

What is this error and how can I solve it? I'd like to import a spice model for IRLM0060 Power Mosfet.

.SUBCKT irlml0060trpbf 1 2 3
M1 9 7 8 8 MM L=100u W=100u
.MODEL MM NMOS LEVEL=1 IS=1e-32
+VTO=2.85855 LAMBDA=0.0057753 KP=15.4103
+CGSO=2.5347e-06 CGDO=4.66503e-08
RS 8 3 0.0650718
D1 3 1 MD
.MODEL MD D IS=1.55663e-10 RS=0.00868591 N=1.3407 BV=60
 +IBV=0.00025 EG=1 XTI=1 TT=1e-07
 +CJO=1.87342e-10 VJ=0.5 M=0.615696 FC=0.5
RDS 3 1 1e+07
RD 9 1 0.0001
RG 2 7 2.43659
D2 4 5 MD1
* Default values used in MD1:
*   RS=0 EG=1.11 XTI=3.0 TT=0
*   BV=infinite IBV=1mA
.MODEL MD1 D IS=1e-32 N=50
+CJO=1.26034e-10 VJ=0.500142 M=0.549525 FC=1e-08
D3 0 5 MD2
* Default values used in MD2:
*   EG=1.11 XTI=3.0 TT=0 CJO=0
*   BV=infinite IBV=1mA
.MODEL MD2 D IS=1e-10 N=0.400044 RS=3e-06
RL 5 10 1
FI2 7 9 VFI2 -1
VFI2 4 0 0
EV16 10 0 9 7 1
CAP 11 10 1.26034e-10
FI1 7 9 VFI1 -1
VFI1 11 6 0
RCAP 6 10 1
D4 0 6 MD3
* Default values used in MD3:
*   EG=1.11 XTI=3.0 TT=0 CJO=0
*   RS=0 BV=infinite IBV=1mA
.MODEL MD3 D IS=1e-10 N=0.400044
.ENDS irlml0060trpbf
by srobertjames
June 06, 2024

Post a Reply

Please sign in or create an account to comment.

Go Ad-Free. Activate your CircuitLab membership. No more ads. Save unlimited circuits. Run unlimited simulations.

About CircuitLab

CircuitLab is an in-browser schematic capture and circuit simulation software tool to help you rapidly design and analyze analog and digital electronics systems.