hspice 基本操作

23
HSPICE 基基基基

Upload: jacie

Post on 12-Jan-2016

317 views

Category:

Documents


5 download

DESCRIPTION

HSPICE 基本操作. Outline. 電路設計與製作流程 HSPICE 模擬軟體簡介 HSPICE 基本語法介紹 練習. 電路設計與製作流程 (1/4). 電路設計與製作流程 (2/4). 電路設計與製作流程 (3/4). Pre-simulation. 電路設計與製作流程 (4/4). Post-simulation. HSPICE 模擬軟體簡介 (1/3). HSPICE 模擬軟體簡介 (2/3). Data Flow of Hspice. HSPICE 模擬軟體簡介 (3/3). Hspice 基本語法介紹 (1/15). - PowerPoint PPT Presentation

TRANSCRIPT

  • HSPICE

    *

    OutlineHSPICEHSPICE

    *

    (1/4)

    *

    (2/4)

    *

    (3/4)Pre-simulation

    *

    (4/4)Post-simulation

    *

    HSPICE (1/3)

    *

    HSPICE (2/3)Data Flow of Hspice

    *

    HSPICE (3/3)

    *

    Hspice (1/15)Structure of Netlist (.sp)

    *

    Hspice (2/15)Simulation input and controlIn Hspice,Zero (0) is always GroundGround may be 0, GND, !GNDNode Names can cross all subcircuitby a .GLOBAL statementEX: .GLOBAL VDD VSS

    *

    Hspice (3/15)Names of Instance and elementC **D **E,F,G,H **I *: *J *JFET*K *Mutual inductor*L **M *MOSFET*Q *BJT*O,T,U **V *: *X **

    *

    Hspice (4/15)Scale factorsK *1e3*Meg *1e6*G *1e9*T *1e12*M *1e-3*U *1e-6*P *1e-12*F *1e-15*N *1e-19*

    Examples:

    (1) 1pF 1nH 10Meg Hz

    (2) R Ohm : R1 n1 n2 1K C Farad : C2 n3 n4 1e-12 L Henry : L3 n5 n6 1e-9

    *

    Hspice (5/15)MOSFET :MOSMMname drain gate source bulk mname length widthEx: MN1 out in vdd! vdd! pchL=0.35u w=1.8uEx: MN2 out in vss! vss! nchL=0.35u w=0.9u

    *

    Hspice (6/15)Library input statement.INCLUDE statement *copy the content of file into netlist*EX: . INCLUDE $installdir/parts/ad

    .LIB Definition and call statement *file reference and corner selection*EX:.lib '/export/home/vlsi07/MyLibrary/tsmc/mm0355v.l' tt

    *

    Hspice (7/15)Subcircuit statement .SUBCKT subnamen1 .ENDSEx: .SUBCKT and a b *.PININFO a:Ib:Iy:O MM5 y net21 vss! vss! nchW=900n L=350nMM2 net9 b vss! vss! nchW=900n L=350nMM1 net21 a net9 vss! nchW=900n L=350nMM4 y net21 vdd! vdd! pchW=1.8u L=350nMM3 net21 a vdd! vdd! pchW=1.8u L=350nMM0 net21 b vdd! vdd! pchW=1.8u L=350n.ENDS

    HspiceC.SUBCKT.SUBCKT.ends

    *

    Hspice (8/15)Source types of Hspice// //

    *

    Hspice (9/15)Independent source statements Ex:VD 1 2 DC 10VV2 3 4 DC -10VV3 5 6 DC 0VIQ 4 4 DC 1mA

    *

    Hspice (10/15)Transient source statementsTypes of independent source functionPulse (pulse function) clock

    Sinusoidal (sin function)

    Exponential (exp function)

    Piecewise linear (pwl function)

    Single-frequency FM (sffm function)

    Single-frequency AM (am function)

    *

    Hspice (11/15)Pulse function : pluse: pulse(v1 v2 )

    Ex: Vin in 0 pulse( 0v 5v 10ns 10ns 10ns 50ns 100ns )

    *

    Hspice (12/15)Piecewise linear function : pwl: pwl( )Ex : V1 in1 0 pwl0n 0v 50n 5v 150n -5v 200n 0v, R=60n

    *

    Hspice (13/15)Analysis type. tran()Ex : .tran1n 100n

    Output parameter. optionEx: option post *Graph file. Probe *(awaves)Ex:

    *

    Hspice (14/15)Example : inverter.sp.global vdd! vss!.lib 'mm0355v.l' tt ModelMN1 out in vdd! vdd! pchL=0.35u w=1.8uMN2 out in vss! vss! nchL=0.35u w=0.9uvddvdd! 0 3.3vvssvss! 0 0vvinin 0 pulse(0v 3.3v 10n 0.1n 0.1n10n 20n).probe.option post.tran1n 100n.end End fileDescription of circuit Sources Control signals