So, when I went through undergrad, I got paired up with a guy that loved spice and decided if I wanted to do all the physical parts of the lab and measurements, he would do all the spice work. This was after I snoozed through a spice lecture or two and was bored to death having to work with him on trying to figure it out. So, I have a hole in my education when it comes to spice. Now I am having to use it again and wondering if anyone here can short circuit my manual reading.This is a basic working program we got to check our hspice install, and it works for me
LCLINE * Test Program** R.J. Evans 5/11/00**** Example 5.3.2 T-Line Segment Variations* **.SUBCKT XTMODEL 11 12* Case 1 RLC segmentsL1 11 15 25NHL2 15 12 25NHC 15 0 10PF*.ENDS XTMODEL*** Main program**XLINE0 100 180 XTMODEL** Dummy Resistor for end of line open *RT 180 0 100meg** Excitation** Vstart Vend delay Tr Tf PW PeriodVIN 90 0 PULSE( 0 1 0PS .2NS .2NS 20NS 40NS)** Source Resistance*RS 90 100 70.7**.OPTIONS POST=2 PROBE TNOM=25 DELMAX=2PS RMIN=1E-12 BRIEF NOMOD.TRAN 100PS 8NS.WIDTH OUT=80.PLOT TRAN V(180) V(100) (0. ,1. ).PRINT TRAN V(180) V(100).END LCLINE
6/10/2009 4:43:51 PM
Just took a little readinghttp://www.5spice.com/Subckts.htm
6/10/2009 5:20:50 PM
duh, my little sister could have told you that node identifiers Node1, Node2, etc. are the node numbers/names in the calling circuit that connect to the subcircuit.
6/10/2009 5:34:16 PM
Yeah, it would have been infinitely more intuitive if the call from XLINE0 would have beenXLINE0 XTMODEL(100,180)This would have immediately flagged as parameter passing in my head.
6/10/2009 5:45:53 PM