Transcription of hspice tutorial.ppt [相容模式] - ee.ncu.edu.tw
1 hspice Tutorial 2010/10/21. Advisor : Jin-Fu Li Teaching Assistant : Che-Wei Che Wei Chou Advanced Reliable Systems (ARES) Laboratory Department of Electrical Engineering National Central University Jhongli, Taiwan Contents Introduction Simulation Input and Controls Waveform Instructions Simulation Output ARES Lab-2010 hspice Tutorial 2. Introduction(1/2). IC Design Verilog hspice Cell-Based Full-Custom DSD VLSI Design VLSI Design g AIC.. ARES Lab-2010 hspice Tutorial 3. Introduction(2/2). SPICE : Simulation Program with Integrated Circuit Emphasis HHspice i .. hspice .. hspice hspice .. hspice .. ARES Lab-2010 hspice Tutorial 4. Basic Flow for SPICE.. OP/DC/TRAN/AC..probe/measurement .. ? .. ? .. ARES Lab-2010 hspice Tutorial 5. Contents Introduction Simulation Input and Controls Waveform Instructions Simulation Output ARES Lab-2010 hspice Tutorial 6.
2 Instance and Element Names C Capacitor I Current L Inductor M MOSFET. R Resistor V Voltage Source X Subcircuit Call ARES Lab-2010 hspice Tutorial 7. 2010/10/21. Unit and Scale Factor Units: R Ohm ( R1 node1 node2 1K). L Henry ( L1 node1 node2 1n). C Farad ( C1 node1 node2 1p). Scale Factors: F 1e-15 T 1e12. P 1e-12 K 1e3. N 1e-9 Meg 1e6. U 1e-6 G 1e9. M 1e-3 DB 20log10. ARES Lab-2010 hspice Tutorial 8. Instance and Element Descriptions Mname D G S B N/PMOS W=?u L=?u Mp out in vdd vdd pch W=3u W 3u L=1u L 1u R1 A B 1K. C1 out gnd 1p ARES Lab-2010 hspice Tutorial 9. Subcircuit .SUBCKT <Subname> <node1> <node2> ..ENDS <Subname>..subckt inv out in Wn= Wp= Lmin= mp0 out in vdd vdd pch w=Wp l=Lmin mn00 out iin vss vss nch h w=Wn W ll=Lmin L i .ends inv SPICE . X. Xname <node1>. d 1 <node2> . d 2 <Subname>. S b xinv dout0 d0 inv Wn= Wp= Lmin= ARES Lab-2010 hspice Tutorial 10.
3 Example ** inv **..global global vdd vss .subckt inv in out MM0 out in vdd vdd pch w=3u l=350n MM1 out in vss vss nch w=1u l=350n .ENDS. x1 in net1 inv in net1 out x2 net1 out inv x1 in 1 inv x1 in 0 inv x2 1 out inv x2 0 out inv in 1 out in 0 out ARES Lab-2010 hspice Tutorial 11. 2010/10/21. Input Control Statement GLOBAL. ALL nodes are assumed to be local Node names can across all subcircuits by .GLOBAL..GLOBAL VDD VSS. ARES Lab-2010 hspice Tutorial 12. Netlist Structure Title .Title inv .GLOBAL gnd! + vdd! Model .protect .lib lib C:\VLSI\mm0355v C:\VLSI\ ' TT..unprotect Controls .op .options options post .tran 25n .temp 25. Sources v11 vdd! dd! 0 3. 3. v2 gnd! 0 0v v3 Vin 0 pulse( 0v ). Components MM1 Vout Vin vdd! vdd! Pch W=3u L= MM0 Vout Vin gnd! gnd! Nch W=1u L= END file e .end ARES Lab-2010 hspice Tutorial 13.
4 Example . **inverter**..GLOBAL gnd! + vdd! .protect ..lib 'e:\temp\ ' TT..unprotect TT ..op .options post .tran 25n .temp 25. v1 vdd! 0 v2 gnd! 0 0v v3 Vin 0 pulse( 0v ). MM1 Vout Vin vdd! vdd! Pch W=3u L= MM0 Vout Vin gnd! gnd! Nch W=1u L= .end ..end end . ARES Lab-2010 hspice Tutorial 14. Control Statements .AC ( )..DC ..OP ..NOISE ..TRAN ..SUBCKT ..ENDS ..OPTIONS. OPTIONS ..PRINT ..PLOT. PLOT ..TEMP ..END . ARES Lab-2010 hspice Tutorial 15. 2010/10/21. Contents Introduction Simulation Input and Controls Waveform Instructions Simulation Output ARES Lab-2010 hspice Tutorial 16. Transient Sources Pulse P l (PULSE Function). F ti ). Sinusoidal (SIN Function). E. Exponential ti l (EXP Function). F ti ).. Piecewise Linear (PWL Function). Single-Frequency i l FM (SFFM. ( Function). i ). Single-Frequency AM (AM Function).
5 ARES Lab-2010 hspice Tutorial 17. PULSE. PULSE (Periodic Waveform). PULSE ( V1 V2 td tr tf pw per). PULSE ( 0V 5V 10ns 10ns10ns 40ns 100ns ). ARES Lab-2010 hspice Tutorial 18. PWL. PWL (Piece Wise Linear Waveform). PWL ( t1 V1 t2 V2 t3 V3 R). PWL (1n 0v 2n 0v 3n 8n 9n 0v R 0). ARES Lab-2010 hspice Tutorial 19. SIN. SIN ((Sinusoidal Waveform)). SIN ( Voffset Vacmag < Freq Tdelay Dfactor > ). Vin 3 0 SIN ( 0V 1V 100 Meg 2ns 5e7 ). ARES Lab-2010 hspice Tutorial 20. Contents Introduction Simulation Input and Controls Waveform Instructions Simulation Output ARES Lab-2010 hspice Tutorial 21. Timing Measurement .meas tran Tr trig v(out) val= * rise=2 targ v(out) val= * rise=2. val= * . val= * . rise=1 rise=2 fall=4. ARES Lab-2010 hspice Tutorial 22. Example . SP . mt0 . Simulate T 6 738 11 s Tr= ARES Lab-2010 hspice Tutorial 23.
6 Power Command : .meas tran pwr avg power . *.mt0 . ARES Lab-2010 hspice Tutorial 24. Contents Introduction d Simulation Input and Controls Waveform Instructions Simulation Output Appendix ARES Lab-2010 hspice Tutorial 25. 2010/10/21. Example ARES Lab-2010 hspice Tutorial 26. Compile ARES Lab-2010 hspice Tutorial 27. Job Aborted ARES Lab-2010 hspice Tutorial 28. Job Conculded ARES Lab-2010 hspice Tutorial 29. verdi ARES Lab-2010 hspice Tutorial 30. New Waveform ARES Lab-2010 hspice Tutorial 31. Open File ARES Lab-2010 hspice Tutorial 32. ARES Lab-2010 hspice Tutorial 33. Waveform File(.tr0). Step 2. Step 1. Step 3. ARES Lab-2010 hspice Tutorial 34. Get Signals ARES Lab-2010 hspice Tutorial 35. ARES Lab-2010 hspice Tutorial 36. ARES Lab-2010 hspice Tutorial 37. PC_Hspice . ARES Lab-2010 hspice Tutorial 38.
7 Sp . ARES Lab-2010 hspice Tutorial 39.. ARES Lab-2010 hspice Tutorial 40. ARES Lab-2010 hspice Tutorial 41. ARES Lab-2010 hspice Tutorial 42. ARES Lab-2010 hspice Tutorial 43. sp . open . edit NL sp . ARES Lab-2010 hspice Tutorial 44. Editing ARES Lab-2010 hspice Tutorial 45.