首 页科技博览科普图片植物王国动物世界科普常识农村科普生活科普信息技术科普创作自然之谜
历史今天留言繁體中文
设为首页
加入收藏
联系我们
您当前的位置:科普知识网 -> 电子电工 -> IC电子 -> 博览内容 退出登录 用户管理
 

· 有线电视 · 电子系统
· 显示元件 · 接口电路
· 存储器 · 无线通信
· 传感控制 · EDA/PLD
· 单片机 · DSP技术
· 模拟技术 · 通信网络
· 测试仪表 · 视频音频
· 芯片应用 · 电子通信
· IC电子 · 电子设计
· 自控测量 · IC嵌入式
· IC系统 · EDA系统
· 传感控制 · 电源技术
· 接口电路 · 消费电子
· DSP产品 · 元件工艺
· 模拟技术 · 存储器设备
· 设计应用 · 智能网应用
· 电子电源 · 电子传感
热门博览
· 涡轮
· 什么是路肩?硬路肩?..
· 神秘的海底世界
· 民用飞机
· 电路设计
· 梁桥
· 航空发动机
· 环保--功在当代,利..
· 气球
· 双曲拱桥是一种什么..
相关博览
· Start Hspice
· [组图] 在制造环境中..
· [图文] 高性能PHS射频..
· [组图] 宽带固定增益..
· [组图] 可编程多路A/..
· [组图] HSP50415的原..
· [组图] USB接口芯片S..
· USB主控芯片SL811HS..
· [组图] 用SL811HS实现..
· 高通 HSDPA产品新路..

Hspice Menu

作者:佚名  来源:不详  

A. Specifying Simulation Input and Controls
1. Input Netlist File(<design>.sp) Guidelines
 The basic structure of an input netlist file consists of one main program and one or more optional submodules. The submodule can be used to easily alter and resimulate an input netlist file with different options, netlist, analysis statements, and test vectors. Several high level call statements can be used to restructure the input netlist file modules.The basic elements of an input netlist file are:
 
TITLE                           First line is Input Netlist File Title
*or $                            Commands to describe the circuit
.OPTIONS                       Set Conditions for Simulation
Analysis(.AC, .DC, .TRAN..)        Statements to Set Sweep Variables
.SAVE/.LOAD                     Save and load operating point info
.TEMP                           Set analysis temperature
.PRINT/.PLOT/.GRAPH            Set Print, Plot, and Graph Variables
.IC or .NODESET                 Sets Initial State
Sources (I or V)                   Sets Input Stimuli
Netlist                           Circuit Description
+                                In first Column ,+, is Continuation Char.
.SUBCKT/.ENDS                  Sets/Ends Subcircuit Description
.LIB or .INCLUDE                 Call Library or General Include Files
.PROTECT                       Turns off output printback
.UNPROTECT                    Restore output printback
.MODEL                         Library Element Model Descriptions
.END                            Required Statement to Terminate
Simulation

2. Input Line Format
 The Star-Hspice input reader can accept an input token, such as a statement name, a node name, or a parameter name or value.
 Upper and lower case are ignored.
 Comments are added at any place in the file. Line beginning with an asterisk (*) are comments.
 A statement may be continued on the next line by entering a plus (+) sign as the first nonnumeric, nonblank character in the next line.

3. Nodes
 Node identifiers can be up to 1024 characters long, including periods and extensions.
 Trailing Alphabetic Character are ignored in Node Number, (e.g. 5A=5B=5)
 Numerical node names are valid.
 Nodes are made global across all subcircuits by a .GLOBAL statement.
 Node 0, GND, GND!, and GROUND all refer to the global Star-Hspice ground.
4. Instance Names
 The names of element instances begin with the element key letter(for example, M for a MOSFET element, D for a diode, R for a resistor, and so on), except in subcircuits.
 Subcircuit instance name begin with “X”.(Subcircuits are sometimes called macros or modules.)

5. Numbers
 Numbers are entered as integer or real.
 Numbers can use exponential format or engineering key letter format, but not both(1e-12 or 1p, but not 1e-6u).
 Exponents are designated by D or E.
 Exponent size is limited by .OPTION EXPMAX.
 Units comments are not checked..
 .OPTIONS INGOLD controls the format of numbers in printouts.
 .OPTIONS NUMDGT=x controls the listing printout accuracy.

6. Instance and Element Names:
C           Capacitor
D           Diode
E,F,G,H     Dependent Current and Voltage Controlled Sources
I            Current
J           JFET or MESFET
K           Mutual Inductor
L           Inductor
M           MOSFET
Q           BJT
R           Resistor
O,T,U       Transmission Line
V           Voltage Source
X           Subcircuit Call
7. Units and Scale Factors
 Units:
           R   Ohm   (e.g. R1 n1 n2 1k)
           C   Farad  (e.g. C2 n3 n4 1e-12)
           L   Henry   (e.g. L3 n5 n6 1e-9)

 Scale Factors:

    
 Technology Scaling : All Length and Widths are in Meters
          Using  .options scale=1e-6      L=2  W=100
             (means that L=2um、W=100um)

8. Netlist Structure (SPICE Preferred)
Title                      Title statement – Ignored during simulation
      Controls                   .option nomod nopage
                                 .tran 1 10
                                 .print v(5) i(r1)
                                 .plot v(3) v(in)
                                 * voltage sources
      Sources                    v3  3  0 dc 0 ac 0 0 pulse 0 1 0 0.1 0.1 4
                                  vin in 0 sin(0 2 10k 0.5 0)
                                 *Components
      Components                c2  2  0   2pf
                                  r1  1  0   1k
                                  m1  1  2  3  4 mod L=10u W=30u
                                  x3  2  3  INV
                                 *Model & Subcircuit
      Models & Subckts           .model… or .LIB or .Subckt
      End file                    .end


9. Library Input Statement:
 Place commonly used commands, device models, subcircuit analysis and statements in library file by using the .LIB call statement. As each .LIB call name is encountered in the main data file, the corresponding entry is read in from the designated library file.
 Syntax
 .LIB ‘<filepath> filename’ entryname
 Example


 PROTECT            Prevent the listing of included contents
.LIB ‘/user2/class/vlsi22/models/mix025_1.l’ TT
.UNPROTECT

10. Hierarchical Circuits
 .SUBCKT Definition
 A circuit block that appears more than once in the overall circuit and consists of SPICE primitives can be defined as a subcircuit.
 The block can then be referenced as a single component, the subcircuit instance, and connected throughout circuit.
 The element that from the subcircuit block are preceded by the following control statement:
             .SUBCKT SUBname node1<node2…>       circuit description
             .ENDS <SUBname>

 Subcircuit Instance
 A subcircuit block is placed in the circuit by an X-element call, or subcircuit call, defined by the following line:
Xname xnode1<xnode2…>SUBname


 SUBCKT Statement: Examples


 .GLOBAL Statement
 The .GLOBAL statement globally assigns a node name. This means that all references to a global node name used at any level of the hierarchy in the circuit, will be connected to the same node.
 The .GLOBAL statement is most often used when subcircuits
are included in a netlist file. This statement assigns a common node name to subcircuit nodes.

 
B. Sources and Stimuli
1. Independent Source Elements: AC, DC Source
 Source Element Statement:
 Syntax :

 Examples of DC & AC Sources :

 Examples of Mixed Sources :

2. Independent Source Functions: Transient Sources
 Transient Sources Statement
 Types of Independent Source Functions:


 Pulse Source Function: PULSE
 Syntax :

 Example:

 Sinusoidal Source Function: SIN
 Syntax:
 Example:

 Piecewise Linear Source Function: PWL or PL
 Syntax:

 Example:

C. Analysis Types: Transient Analysis
 Transient Analysis Statements:
 .TRAN: Calculate Time-Domain Response

 .TRAN Analysis: Syntax

 Examples:

D. Simulation Output and Controls
1. Output Statements:
 Output Commands:
 .PRINT Statement : Print Numeric Analysis Results
 .PLOT Statement : Generates Low Resolution Plot in .lis file
 .PROBE Statement : Allows Save Output Variables Only into the
                      Graph Date Files
 .MEASURE Statement : Print Numeric Results of Measured  
Specifications

 Output Variables:
 DC and Transient Analysis:  Displays Individual Voltage, Current, & Power
 AC Analysis:  Display Real & Imag. Components of Voltage & 
Current.....
 Element Template Analysis:  Display Element-Specific Voltage, Current.....

2. Output Variable Examples: Parametric Statements
 Algebraic Expressions for Output Statements:
 .PRINT   DC V(IN)  V(OUT)  PAR(‘V(OUT)/V(IN)’)
 .PROBE  AC  Gain=PAR(‘VDB(5)-VDB(2)’)   Phase=PAR(‘VP(5)-VP(2)’)

 Other Algebraic Expressions :
 Parameterization: .PARAM  WN=5u  LN=10u  VDD=5.0V
 Algebra: .PARAM  X=‘Y+5’
 Function: .PARAM  Gain(IN, OUT)=‘V(OUT)/V(IN)’
 Algebra in Element: R1 1 0 r=‘ABS(V(1)/I(M1))+10’

 Built-In Functions :

3. Displaying Simulation Results: .PRINT & .PLOT
 Syntax:

 Examples:

4. Displaying Simulation Results: .PROBE & .GRAPH
 .PROBE Statement:


免责声明:作品版权归所属媒体与作者所有!!本站刊载此文仅为普及科学技术知识提供更多信息。如果您认为我们侵犯了您的版权,请告知!本站核实后立即删除。kpzsnet#126.com (#改为@)
[] [返回上一页] [打 印] [收 藏]
上一篇博览:ModelSim详解详解
下一篇博览:Awaves常用的功能
∷相关博览评论∷    (评论内容只代表网友观点,与本站立场无关!) [更多评论...]
关于本站 - 帮助 - 合作 - 声明 - 连接 - 地图 -
Copyright ?2002-2005 Kpzs.Net. All Rights Reserved .
BY::KPZS.NET