Electronics-Related.com
Forums

Dumb LTSpice question - subckt model

Started by Unknown February 24, 2015
I've never used a mfr model that was a subckt before; I've always added
the .MODEL to the LTSpice library file, or edited an existing device.

This Vishay MOSFET has a more complex model though, and she ain't loadin'
Jim.  LTSpice says it can't find the model for M1.

I even tried putting the definition right in the .asc, still no joy.

I followed the LTSpice help info, as best I could.  Any obvious goofs?

Thanks,
James Arthur
--------------
Version 4
SHEET 1 2188 1188
WIRE 752 144 304 144
WIRE 304 160 304 144
WIRE 304 176 304 160
WIRE 752 192 752 144
WIRE 304 272 304 256
WIRE 752 304 752 272
WIRE 576 384 496 384
WIRE 704 384 656 384
WIRE 752 448 752 400
WIRE 496 464 496 384
WIRE 496 592 496 544
FLAG 304 272 0
FLAG 304 160 IN
FLAG 752 448 0
FLAG 496 592 0
SYMBOL voltage 304 160 R0
WINDOW 123 24 146 Left 2
WINDOW 39 24 125 Left 2
SYMATTR InstName V1
SYMATTR Value 15
SYMBOL nmos 704 304 R0
SYMATTR InstName M1
SYMATTR Value SiR422DP
SYMBOL voltage 496 448 R0
WINDOW 123 24 146 Left 2
WINDOW 39 24 125 Left 2
SYMATTR InstName V2
SYMATTR Value PULSE(0 5 0 10n 20n 1uS 10uS)
SYMBOL res 736 176 R0
SYMATTR InstName R1
SYMATTR Value 10
SYMBOL res 672 368 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 100
TEXT 512 704 Left 2 !.tran 2m startup
TEXT 928 24 Left 2 !.SUBCKT SiR422DP D G S \nM1 3 GX S S NMOS W= 4003899u L= 0.25u \nM2 S GX S D PMOS W= 4003899u L= 2.884e-07 \nR1 D 3 4.815e-03 TC=6.773e-03 1.956e-05 \nCGS GX S 1.113e-09 \nCGD GX D 1.026e-11 \nRG G GY 0.80 \nRTCV 100 S 1e6 TC=3.299e-04 -8.364e-08 \nETCV GX GY 100 200 1 \nITCV S 100 1u \nVTCV 200 S 1 \nDBD S D DBD \n**************************************************************** \n.MODEL NMOS NMOS ( LEVEL = 3 TOX = 5e-8 \n+ RS = 5.351e-04 KP = 2.943e-05 NSUB = 1.192e+17 \n+ KAPPA = 1.000e-06 ETA = 1.067e-06 NFS = 6.312e+11 \n+ LD = 0 IS = 0 TPG = 1) \n*************************************************************** \n.MODEL PMOS PMOS ( LEVEL = 3 TOX = 5e-8 \n+NSUB = 2.525e+16 IS = 0 TPG = -1 ) \n**************************************************************** \n.MODEL DBD D ( \n+FC = 0.1 TT = 1.093e-08 T_MEASURED = 25 BV = 42 \n+RS = 1.636e-03 N = 1.139e+00 IS = 3.280e-11 \n+EG = 1.093e+00 XTI = 2.937e+00 TRS1 = 5.039e-04 \n+CJO = 8.653e-10 VJ = 9.000e-01 M = 5.484e-01 ) \n.ENDS
On Mon, 23 Feb 2015 21:44:56 -0800 (PST), dagmargoodboat@yahoo.com
wrote:

>I've never used a mfr model that was a subckt before; I've always added >the .MODEL to the LTSpice library file, or edited an existing device. > >This Vishay MOSFET has a more complex model though, and she ain't loadin' >Jim. LTSpice says it can't find the model for M1. > >I even tried putting the definition right in the .asc, still no joy. > >I followed the LTSpice help info, as best I could. Any obvious goofs? > >Thanks, >James Arthur >-------------- >Version 4 >SHEET 1 2188 1188 >WIRE 752 144 304 144
[snip] "TEXT" doesn't read as netlist, just as commentary. You want to add a "Spice directive"... .LIB C:\Path1\Path2\etc\library_filename.lib (Extension doesn't matter, I just tend to use .lib) Put all your models in that file. See "LTspiceTutorials.zip" on the Simulation Tools & Macros Page of my website for lots of helpful hints. ...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | San Tan Valley, AZ 85142 Skype: skypeanalog | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
On 2/24/2015 10:22 AM, Jim Thompson wrote:
> On Mon, 23 Feb 2015 21:44:56 -0800 (PST), dagmargoodboat@yahoo.com > wrote: > >> I've never used a mfr model that was a subckt before; I've always added >> the .MODEL to the LTSpice library file, or edited an existing device. >> >> This Vishay MOSFET has a more complex model though, and she ain't loadin' >> Jim. LTSpice says it can't find the model for M1. >> >> I even tried putting the definition right in the .asc, still no joy. >> >> I followed the LTSpice help info, as best I could. Any obvious goofs? >> >> Thanks, >> James Arthur >> -------------- >> Version 4 >> SHEET 1 2188 1188 >> WIRE 752 144 304 144 > [snip] > > "TEXT" doesn't read as netlist, just as commentary. > > You want to add a "Spice directive"... > > .LIB C:\Path1\Path2\etc\library_filename.lib > > (Extension doesn't matter, I just tend to use .lib) > > Put all your models in that file. > > See "LTspiceTutorials.zip" on the Simulation Tools & Macros Page of my > website for lots of helpful hints. > > ...Jim Thompson >
You also have to right-click on the symbol and change the prefix to "X". Otherwise it's looking for a .model statement. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 hobbs at electrooptical dot net http://electrooptical.net
On Tue, 24 Feb 2015 10:31:42 -0500, Phil Hobbs
<pcdhSpamMeSenseless@electrooptical.net> wrote:

>On 2/24/2015 10:22 AM, Jim Thompson wrote: >> On Mon, 23 Feb 2015 21:44:56 -0800 (PST), dagmargoodboat@yahoo.com >> wrote: >> >>> I've never used a mfr model that was a subckt before; I've always added >>> the .MODEL to the LTSpice library file, or edited an existing device. >>> >>> This Vishay MOSFET has a more complex model though, and she ain't loadin' >>> Jim. LTSpice says it can't find the model for M1. >>> >>> I even tried putting the definition right in the .asc, still no joy. >>> >>> I followed the LTSpice help info, as best I could. Any obvious goofs? >>> >>> Thanks, >>> James Arthur >>> -------------- >>> Version 4 >>> SHEET 1 2188 1188 >>> WIRE 752 144 304 144 >> [snip] >> >> "TEXT" doesn't read as netlist, just as commentary. >> >> You want to add a "Spice directive"... >> >> .LIB C:\Path1\Path2\etc\library_filename.lib >> >> (Extension doesn't matter, I just tend to use .lib) >> >> Put all your models in that file. >> >> See "LTspiceTutorials.zip" on the Simulation Tools & Macros Page of my >> website for lots of helpful hints. >> >> ...Jim Thompson >> >You also have to right-click on the symbol and change the prefix to "X". > Otherwise it's looking for a .model statement. > >Cheers > >Phil Hobbs
ctrl-right-click to change prefix ;-) ...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | San Tan Valley, AZ 85142 Skype: skypeanalog | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
On 2/24/2015 11:38 AM, Jim Thompson wrote:
> On Tue, 24 Feb 2015 10:31:42 -0500, Phil Hobbs > <pcdhSpamMeSenseless@electrooptical.net> wrote: > >> On 2/24/2015 10:22 AM, Jim Thompson wrote: >>> On Mon, 23 Feb 2015 21:44:56 -0800 (PST), dagmargoodboat@yahoo.com >>> wrote: >>> >>>> I've never used a mfr model that was a subckt before; I've always added >>>> the .MODEL to the LTSpice library file, or edited an existing device. >>>> >>>> This Vishay MOSFET has a more complex model though, and she ain't loadin' >>>> Jim. LTSpice says it can't find the model for M1. >>>> >>>> I even tried putting the definition right in the .asc, still no joy. >>>> >>>> I followed the LTSpice help info, as best I could. Any obvious goofs? >>>> >>>> Thanks, >>>> James Arthur >>>> -------------- >>>> Version 4 >>>> SHEET 1 2188 1188 >>>> WIRE 752 144 304 144 >>> [snip] >>> >>> "TEXT" doesn't read as netlist, just as commentary. >>> >>> You want to add a "Spice directive"... >>> >>> .LIB C:\Path1\Path2\etc\library_filename.lib >>> >>> (Extension doesn't matter, I just tend to use .lib) >>> >>> Put all your models in that file. >>> >>> See "LTspiceTutorials.zip" on the Simulation Tools & Macros Page of my >>> website for lots of helpful hints. >>> >>> ...Jim Thompson >>> >> You also have to right-click on the symbol and change the prefix to "X". >> Otherwise it's looking for a .model statement. >> >> Cheers >> >> Phil Hobbs > > ctrl-right-click to change prefix ;-) > > ...Jim Thompson >
Plain right click works for me. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 hobbs at electrooptical dot net http://electrooptical.net
On Tue, 24 Feb 2015 13:12:22 -0500, Phil Hobbs
<pcdhSpamMeSenseless@electrooptical.net> wrote:

>On 2/24/2015 11:38 AM, Jim Thompson wrote: >> On Tue, 24 Feb 2015 10:31:42 -0500, Phil Hobbs >> <pcdhSpamMeSenseless@electrooptical.net> wrote: >> >>> On 2/24/2015 10:22 AM, Jim Thompson wrote: >>>> On Mon, 23 Feb 2015 21:44:56 -0800 (PST), dagmargoodboat@yahoo.com >>>> wrote: >>>> >>>>> I've never used a mfr model that was a subckt before; I've always added >>>>> the .MODEL to the LTSpice library file, or edited an existing device. >>>>> >>>>> This Vishay MOSFET has a more complex model though, and she ain't loadin' >>>>> Jim. LTSpice says it can't find the model for M1. >>>>> >>>>> I even tried putting the definition right in the .asc, still no joy. >>>>> >>>>> I followed the LTSpice help info, as best I could. Any obvious goofs? >>>>> >>>>> Thanks, >>>>> James Arthur >>>>> -------------- >>>>> Version 4 >>>>> SHEET 1 2188 1188 >>>>> WIRE 752 144 304 144 >>>> [snip] >>>> >>>> "TEXT" doesn't read as netlist, just as commentary. >>>> >>>> You want to add a "Spice directive"... >>>> >>>> .LIB C:\Path1\Path2\etc\library_filename.lib >>>> >>>> (Extension doesn't matter, I just tend to use .lib) >>>> >>>> Put all your models in that file. >>>> >>>> See "LTspiceTutorials.zip" on the Simulation Tools & Macros Page of my >>>> website for lots of helpful hints. >>>> >>>> ...Jim Thompson >>>> >>> You also have to right-click on the symbol and change the prefix to "X". >>> Otherwise it's looking for a .model statement. >>> >>> Cheers >>> >>> Phil Hobbs >> >> ctrl-right-click to change prefix ;-) >> >> ...Jim Thompson >> >Plain right click works for me. > >Cheers > >Phil Hobbs
I have Version 4.22w, takes ctrl-right-click to change prefix, right-click alone doesn't show "prefix", shows ?? ...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | San Tan Valley, AZ 85142 Skype: skypeanalog | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
On 2/24/2015 4:04 PM, Jim Thompson wrote:
> On Tue, 24 Feb 2015 13:12:22 -0500, Phil Hobbs > <pcdhSpamMeSenseless@electrooptical.net> wrote: > >> On 2/24/2015 11:38 AM, Jim Thompson wrote: >>> On Tue, 24 Feb 2015 10:31:42 -0500, Phil Hobbs >>> <pcdhSpamMeSenseless@electrooptical.net> wrote: >>> >>>> On 2/24/2015 10:22 AM, Jim Thompson wrote: >>>>> On Mon, 23 Feb 2015 21:44:56 -0800 (PST), dagmargoodboat@yahoo.com >>>>> wrote: >>>>> >>>>>> I've never used a mfr model that was a subckt before; I've always added >>>>>> the .MODEL to the LTSpice library file, or edited an existing device. >>>>>> >>>>>> This Vishay MOSFET has a more complex model though, and she ain't loadin' >>>>>> Jim. LTSpice says it can't find the model for M1. >>>>>> >>>>>> I even tried putting the definition right in the .asc, still no joy. >>>>>> >>>>>> I followed the LTSpice help info, as best I could. Any obvious goofs? >>>>>> >>>>>> Thanks, >>>>>> James Arthur >>>>>> -------------- >>>>>> Version 4 >>>>>> SHEET 1 2188 1188 >>>>>> WIRE 752 144 304 144 >>>>> [snip] >>>>> >>>>> "TEXT" doesn't read as netlist, just as commentary. >>>>> >>>>> You want to add a "Spice directive"... >>>>> >>>>> .LIB C:\Path1\Path2\etc\library_filename.lib >>>>> >>>>> (Extension doesn't matter, I just tend to use .lib) >>>>> >>>>> Put all your models in that file. >>>>> >>>>> See "LTspiceTutorials.zip" on the Simulation Tools & Macros Page of my >>>>> website for lots of helpful hints. >>>>> >>>>> ...Jim Thompson >>>>> >>>> You also have to right-click on the symbol and change the prefix to "X". >>>> Otherwise it's looking for a .model statement. >>>> >>>> Cheers >>>> >>>> Phil Hobbs >>> >>> ctrl-right-click to change prefix ;-) >>> >>> ...Jim Thompson >>> >> Plain right click works for me. >> >> Cheers >> >> Phil Hobbs > > I have Version 4.22w, takes ctrl-right-click to change prefix, > right-click alone doesn't show "prefix", shows ?? > > ...Jim Thompson >
I'm at 4.22s. I double-checked--plain right click works fine if the prefix has already been changed, but weirdly it needs ctrl-right-click if it hasn't. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 hobbs at electrooptical dot net http://electrooptical.net
On Tue, 24 Feb 2015 16:34:41 -0500, Phil Hobbs
<pcdhSpamMeSenseless@electrooptical.net> wrote:

>On 2/24/2015 4:04 PM, Jim Thompson wrote: >> On Tue, 24 Feb 2015 13:12:22 -0500, Phil Hobbs >> <pcdhSpamMeSenseless@electrooptical.net> wrote: >> >>> On 2/24/2015 11:38 AM, Jim Thompson wrote: >>>> On Tue, 24 Feb 2015 10:31:42 -0500, Phil Hobbs >>>> <pcdhSpamMeSenseless@electrooptical.net> wrote: >>>> >>>>> On 2/24/2015 10:22 AM, Jim Thompson wrote: >>>>>> On Mon, 23 Feb 2015 21:44:56 -0800 (PST), dagmargoodboat@yahoo.com >>>>>> wrote: >>>>>> >>>>>>> I've never used a mfr model that was a subckt before; I've always added >>>>>>> the .MODEL to the LTSpice library file, or edited an existing device. >>>>>>> >>>>>>> This Vishay MOSFET has a more complex model though, and she ain't loadin' >>>>>>> Jim. LTSpice says it can't find the model for M1. >>>>>>> >>>>>>> I even tried putting the definition right in the .asc, still no joy. >>>>>>> >>>>>>> I followed the LTSpice help info, as best I could. Any obvious goofs? >>>>>>> >>>>>>> Thanks, >>>>>>> James Arthur >>>>>>> -------------- >>>>>>> Version 4 >>>>>>> SHEET 1 2188 1188 >>>>>>> WIRE 752 144 304 144 >>>>>> [snip] >>>>>> >>>>>> "TEXT" doesn't read as netlist, just as commentary. >>>>>> >>>>>> You want to add a "Spice directive"... >>>>>> >>>>>> .LIB C:\Path1\Path2\etc\library_filename.lib >>>>>> >>>>>> (Extension doesn't matter, I just tend to use .lib) >>>>>> >>>>>> Put all your models in that file. >>>>>> >>>>>> See "LTspiceTutorials.zip" on the Simulation Tools & Macros Page of my >>>>>> website for lots of helpful hints. >>>>>> >>>>>> ...Jim Thompson >>>>>> >>>>> You also have to right-click on the symbol and change the prefix to "X". >>>>> Otherwise it's looking for a .model statement. >>>>> >>>>> Cheers >>>>> >>>>> Phil Hobbs >>>> >>>> ctrl-right-click to change prefix ;-) >>>> >>>> ...Jim Thompson >>>> >>> Plain right click works for me. >>> >>> Cheers >>> >>> Phil Hobbs >> >> I have Version 4.22w, takes ctrl-right-click to change prefix, >> right-click alone doesn't show "prefix", shows ?? >> >> ...Jim Thompson >> >I'm at 4.22s. I double-checked--plain right click works fine if the >prefix has already been changed, but weirdly it needs ctrl-right-click >if it hasn't. > >Cheers > >Phil Hobbs
;-) ...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | San Tan Valley, AZ 85142 Skype: skypeanalog | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
On Tuesday, February 24, 2015 at 10:22:40 AM UTC-5, Jim Thompson wrote:
> On Mon, 23 Feb 2015 21:44:56 -0800 (PST), dagmargoodboat@yahoo.com > wrote: > > >I've never used a mfr model that was a subckt before; I've always added > >the .MODEL to the LTSpice library file, or edited an existing device. > > > >This Vishay MOSFET has a more complex model though, and she ain't loadin' > >Jim. LTSpice says it can't find the model for M1. > > > >I even tried putting the definition right in the .asc, still no joy. > > > >I followed the LTSpice help info, as best I could. Any obvious goofs? > > > >Thanks, > >James Arthur > >-------------- > >Version 4 > >SHEET 1 2188 1188 > >WIRE 752 144 304 144 > [snip] > > "TEXT" doesn't read as netlist, just as commentary. > > You want to add a "Spice directive"...
Thanks Jim, but it's in the LTSpice file as a .subckt SPICE directive.
> .LIB C:\Path1\Path2\etc\library_filename.lib > > (Extension doesn't matter, I just tend to use .lib) > > Put all your models in that file.
I also tried that, using a .LIB statement. Didn't work. That's why I'm confused--it looks like it couldn't find the file, which was in the same directory as the .ASC file. It still didn't work when I have a full path either. Since I tried the obvious things, I figure I'm missing something simple. Maybe I made a typo or so such.
> See "LTspiceTutorials.zip" on the Simulation Tools & Macros Page of my > website for lots of helpful hints.
Will do. Thanks. James Arthur
On Tue, 24 Feb 2015 20:13:44 -0800 (PST), dagmargoodboat@yahoo.com
wrote:

>On Tuesday, February 24, 2015 at 10:22:40 AM UTC-5, Jim Thompson wrote: >> On Mon, 23 Feb 2015 21:44:56 -0800 (PST), dagmargoodboat@yahoo.com >> wrote: >> >> >I've never used a mfr model that was a subckt before; I've always added >> >the .MODEL to the LTSpice library file, or edited an existing device. >> > >> >This Vishay MOSFET has a more complex model though, and she ain't loadin' >> >Jim. LTSpice says it can't find the model for M1. >> > >> >I even tried putting the definition right in the .asc, still no joy. >> > >> >I followed the LTSpice help info, as best I could. Any obvious goofs? >> > >> >Thanks, >> >James Arthur >> >-------------- >> >Version 4 >> >SHEET 1 2188 1188 >> >WIRE 752 144 304 144 >> [snip] >> >> "TEXT" doesn't read as netlist, just as commentary. >> >> You want to add a "Spice directive"... > >Thanks Jim, but it's in the LTSpice file as a .subckt SPICE directive. > >> .LIB C:\Path1\Path2\etc\library_filename.lib >> >> (Extension doesn't matter, I just tend to use .lib) >> >> Put all your models in that file. > >I also tried that, using a .LIB statement. Didn't work. That's why I'm >confused--it looks like it couldn't find the file, which was in the same >directory as the .ASC file. It still didn't work when I have a full path >either. > >Since I tried the obvious things, I figure I'm missing something simple. >Maybe I made a typo or so such. > >> See "LTspiceTutorials.zip" on the Simulation Tools & Macros Page of my >> website for lots of helpful hints. > >Will do. Thanks. > >James Arthur
I've been trying to break Mikey of this "same directory" bull-shit... to no avail. ...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | San Tan Valley, AZ 85142 Skype: skypeanalog | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.