file e:/courses/spring2006/break_models_instructs.txt updated 02/05/06 RWN Instructions for useing models in PSpice breakout devices 1. in the schematic editor draw a new part from the breakout.slb library example: MbreakN 2. save the schematic example: 4007_trans.sch 3. double click on the device and under edit go to edit model. There choose edit instance. At the upper right it will ask what file to save the model into. There give the path and a file name the same as your schematic file with a lib extension example: 4007_trans.lib 4. while in the edit instance in the larger, lower left, windo add the name of the model you want to call the model for your device. example: .model M4007N 5. enter ok, and save the schematic. 6. double click on the device and under edit model choose change model reference to the model name that you entered in 4. example: M4007N 7. save everything. in the path specified in step 3. there should be the library file. open it in an text editor, such as notepad, and enter after the .model the data for your model. This can be copied from some other file using copy and paste. example: .model nch nmos(Level=1 Tox=300n Uo=600 Kp=20.54u W=144u L=8u Vto= 1.3 + Lambda=15m Cbd=4p Cbs=4p Cgdo=1.7n Cgso=1.7n Rs=1 Rd=1) You can also add other models for devices you may wish to use with your device (such as complementary transistors). example: .model pch pmos(Level=1 Tox=300n Uo=300 Kp=10.32u W=328u L=8u Vto=-1.5 + Lambda=15m Cbd=8p Cbs=8p Cgdo=1.7n Cgso=1.7n Rs=1 Rd=1) .model d_body D(Is=15n Rs=1 N=1 Xti=3 Eg=1.11 Cjo=10p M=.5 Vj=.75 + Fc=.5 Isr=.15n Nr=2 Bv=20 Ibv=100u) 8. change the model name to your model reference name entered in step 4. example: change nch to M4007N 9. Save everything. The schematic should run with your device and you should be able to add other devices to use the library (example: 4007_trans.lib) created. An alternate (and maybe simpler) would be to create at the start a text file with the library name of the device. an example would be 4007_trans.lib with the entries in the file being the model of interest example: .model M4007N nmos( Level=1 Tox=300n Uo=600 Kp=20.54u W=144u L=8u Vto= 1.3 + Lambda=15m Cbd=4p Cbs=4p Cgdo=1.7n Cgso=1.7n Rs=1 Rd=1) + Lambda=15m Cbd=8p Cbs=8p Cgdo=1.7n Cgso=1.7n Rs=1 Rd=1) .model M4007P pmos(Level=1 Tox=300n Uo=300 Kp=10.32u W=328u L=8u Vto=-1.5 + Lambda=15m Cbd=8p Cbs=8p Cgdo=1.7n Cgso=1.7n Rs=1 Rd=1) .model d_body D(Is=15n Rs=1 N=1 Xti=3 Eg=1.11 Cjo=10p M=.5 Vj=.75 + Fc=.5 Isr=.15n Nr=2 Bv=20 Ibv=100u) Note that if a line is not to be used it can be treated as a comment by preceding with a *