Version 4 SHEET 1 1228 680 WIRE 320 -32 144 -32 WIRE 144 16 144 -32 WIRE 144 128 144 96 WIRE 320 128 320 -32 WIRE 272 208 144 208 WIRE 144 256 144 208 WIRE 144 368 144 336 WIRE 320 368 320 224 WIRE 320 368 144 368 WIRE 144 384 144 368 FLAG 144 384 0 FLAG 144 128 0 SYMBOL voltage 144 240 R0 SYMATTR InstName V1 SYMATTR Value 1 SYMBOL voltage 144 0 R0 SYMATTR InstName V2 SYMATTR Value 5 SYMBOL nmos 272 128 R0 SYMATTR InstName M1 SYMATTR Value IRF630 SYMATTR Prefix X TEXT 120 -120 Left 2 !.dc V2 0 10 10m V1 4 6 1 TEXT 120 -88 Left 2 !.include sihf630.lib TEXT 480 -112 Left 2 ;1. Add a "nmos" device to the schematic.\n \n2. Replace the value NMOS with IRF630\n on your nmos-transistor in the schematic.\n \n3. Ctrl-right-mouse-click on the transistor\n in your schematic. A dialog window with all\n the attributes will be shown.\n \n4. Replace the value MN with X.\n This X tells LTspice that this symbol is for a subciruit.\n OK\n \n5. Add the SPICE-directive into your schematic\n .include sihf630.lib\n \n6. \n I recommend to keep the model file in the same \n folder as the schematic. This makes a complete\n backup of a circuit easier than having this file \n in the installation lib\\sub folder.\n Hint, this file may contain many models.