SPICE3: Error: unknown subckt

J

Jussi Lind

Guest
Hello!


What is wrong with this model, spice3 won't accept it (with Spice Opus it's
ok):

*SRC=2SK1058;MSK1058;MOSFETs N;Power >100V;160V 7A
*SYM=POWMOSN
* TERMINALS: D G S
* Hitachi 160 Volt 7 Amp .171 ohm N-Channel Power MOSFET 08-06-1993
.SUBCKT MSK 10 20 40
M1 1 2 3 3 DMOS L=1U W=1U
RD 100 1 80.4M
RS 30 3 5.28M
RG 20 2 21.4
CGS 2 3 410P
EGD 12 0 2 1 1
VFB 14 0 0
FFB 2 1 VFB 1
CGD 13 14 128P
R1 13 0 1
D1 12 13 DLIM
DDG 15 14 DCGD
R2 12 15 1
D2 15 0 DLIM
DSD 3 100 DSUB
LS 30 40 7.5N
LD 10 100 4N
.MODEL DMOS NMOS (LEVEL=3 THETA=85M VMAX=163K ETA=2.2M VTO=.2 KP=.999)
.MODEL DCGD D (CJO=128P VJ=.6)
.MODEL DSUB D (IS=29N N=1.5 RS=61.4M BV=160 CJO=802P VJ=.8 TT=252N)
.MODEL DLIM D (IS=100U)
.ENDS

No matter what I do, I just get
"Error: unknown subckt: xmsk 100 50 41 msk"
 
Jussi Lind <burn.microsoft@redmont.asap.invalid> wrote:

There are several versions of SPICE out there in various states of
repair. Some of the SPICEs have parsers which are kind of broken. In
your case you have an extra space in front of almost every card in
your deck. Your SPICE's parser may not be handling this correctly,
leading to your error. Try editing the model file so that there
aren't any leading spaces.

Stuart



: What is wrong with this model, spice3 won't accept it (with Spice Opus it's
: ok):

:*SRC=2SK1058;MSK1058;MOSFETs N;Power >100V;160V 7A
: *SYM=POWMOSN
: * TERMINALS: D G S
: * Hitachi 160 Volt 7 Amp .171 ohm N-Channel Power MOSFET 08-06-1993
: .SUBCKT MSK 10 20 40
: M1 1 2 3 3 DMOS L=1U W=1U
: RD 100 1 80.4M
: RS 30 3 5.28M
: RG 20 2 21.4
: CGS 2 3 410P
: EGD 12 0 2 1 1
: VFB 14 0 0
: FFB 2 1 VFB 1
: CGD 13 14 128P
: R1 13 0 1
: D1 12 13 DLIM
: DDG 15 14 DCGD
: R2 12 15 1
: D2 15 0 DLIM
: DSD 3 100 DSUB
: LS 30 40 7.5N
: LD 10 100 4N
: .MODEL DMOS NMOS (LEVEL=3 THETA=85M VMAX=163K ETA=2.2M VTO=.2 KP=.999)
: .MODEL DCGD D (CJO=128P VJ=.6)
: .MODEL DSUB D (IS=29N N=1.5 RS=61.4M BV=160 CJO=802P VJ=.8 TT=252N)
: .MODEL DLIM D (IS=100U)
: .ENDS

: No matter what I do, I just get
: "Error: unknown subckt: xmsk 100 50 41 msk"
 
"Jussi Lind" <burn.microsoft@redmont.asap.invalid> a écrit dans le message
news: c5c71k$pkm$1@phys-news1.kolumbus.fi...
Hello!


What is wrong with this model, spice3 won't accept it (with Spice Opus
it's
ok):

*SRC=2SK1058;MSK1058;MOSFETs N;Power >100V;160V 7A
*SYM=POWMOSN
* TERMINALS: D G S
* Hitachi 160 Volt 7 Amp .171 ohm N-Channel Power MOSFET 08-06-1993
.SUBCKT MSK 10 20 40
M1 1 2 3 3 DMOS L=1U W=1U

You're apparently using Intusoft/ICAP4.

The .subckt line model name should match the second entry of the *src line.
The *src line is used by their schematic tool to link between the model name
and the component you put on the drawing sheet.

So it should be :

*SRC=2SK1058;MSK1058;MOSFETs N;Power >100V;160V 7A
*SYM=POWMOSN
* TERMINALS: D G S
* Hitachi 160 Volt 7 Amp .171 ohm N-Channel Power MOSFET 08-06-1993
..SUBCKT MSK1058 10 20 40
M1 1 2 3 3 DMOS L=1U W=1U
......

Of course it's better to use MSK1058 than MSK for the model name but you
could use whatever you want.

Thanks,
Fred.
 

Welcome to EDABoard.com

Sponsor

Back
Top