⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spice.txt

📁 spice中支持多层次元件模型仿真的可单独运行的插件源码
💻 TXT
📖 第 1 页 / 共 5 页
字号:
SUBJECT: .SUBCKT LineTITLE: .SUBCKT LineTEXT: HTEXT: H _2._4._1.  ._S_U_B_C_K_T _L_i_n_eTEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     .SUBCKT subnam N1 <N2 N3 ...>TEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     .SUBCKT OPAMP 1 2 3 4TEXT: HTEXT: HTEXT: HTEXT: H      A circuit definition is  begun  with  a  .SUBCKT  line.TEXT: H SUBNAM  is  the  subcircuit  name,  and  N1, N2, ... are theTEXT: H external nodes, which cannot be zero.  The group of  elementTEXT: H lines  which  immediately follow the .SUBCKT line define theTEXT: H subcircuit.  The last line in a subcircuit definition is theTEXT: H .ENDS line (see below).  Control lines may not appear withinTEXT: H a subcircuit definition;   however,  subcircuit  definitionsTEXT: H may contain anything else, including other subcircuit defin-TEXT: H itions, device models, and  subcircuit  calls  (see  below).TEXT: H Note  that  any  device  models  or  subcircuit  definitionsTEXT: H included as part of a  subcircuit  definition  are  strictlyTEXT: H local  (i.e., such models and definitions are not known out-TEXT: H side the subcircuit definition).  Also,  any  element  nodesTEXT: H not  included  on  the .SUBCKT line are strictly local, withTEXT: H the exception of 0 (ground) which is always global.TEXT: HTEXT: HSUBJECT: .ENDS LineTITLE: .ENDS LineTEXT: HTEXT: H _2._4._2.  ._E_N_D_S _L_i_n_eTEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     .ENDS <SUBNAM>TEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     .ENDS OPAMPTEXT: HTEXT: HTEXT: H      The "Ends" line must be the last one for  any  sub-TEXT: H circuit  definition.   The subcircuit name, if included,TEXT: H indicates which subcircuit definition is being terminat-TEXT: H ed;   if omitted, all subcircuits being defined are ter-TEXT: H minated.  The name is needed only when nested subcircuitTEXT: H definitions are being made.TEXT: HTEXT: HTEXT: HSUBJECT: Subcircuit CallsTITLE: Subcircuit CallsTEXT: HTEXT: H _2._4._3.  _S_u_b_c_i_r_c_u_i_t _C_a_l_l_sTEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     XYYYYYYY N1 <N2 N3 ...> SUBNAMTEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     X1 2 4 17 3 1 MULTITEXT: HTEXT: HTEXT: H      Subcircuits  are  used  in  SPICE   by   specifyingTEXT: H pseudo-elements beginning with the letter X, followed byTEXT: H the circuit nodes to be used in  expanding  the  subcir-TEXT: H cuit.TEXT: HTEXT: HSUBJECT: COMBINING FILESTITLE: COMBINING FILES: .INCLUDE LINESTEXT: HTEXT: H _2._5.  _C_O_M_B_I_N_I_N_G _F_I_L_E_S: ._I_N_C_L_U_D_E _L_I_N_E_STEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     .INCLUDE _f_i_l_e_n_a_m_eTEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     .INCLUDE /users/spice/common/wattmeter.cirTEXT: HTEXT: HTEXT: H      Frequently, portions of circuit  descriptions  will  beTEXT: H reused  in  several  input  files,  particularly with commonTEXT: H models and  subcircuits.   In  any  spice  input  file,  theTEXT: H ".include"  line  may  be used to copy some other file as ifTEXT: H that second file appeared in place of the ".include" line inTEXT: H the original file.  There is no restriction on the file nameTEXT: H imposed by spice beyond those imposed by the local operatingTEXT: H system.SUBJECT: CIRCUIT ELEMENTS AND MODELSTITLE: CIRCUIT ELEMENTS AND MODELSTEXT: HTEXT: H _3.  _C_I_R_C_U_I_T _E_L_E_M_E_N_T_S _A_N_D _M_O_D_E_L_STEXT: HTEXT: HTEXT: H      Data  fields  that  are  enclosed  in   less-than   andTEXT: H greater-than  signs  ('<  >')  are  optional.  All indicatedTEXT: H punctuation (parentheses, equal signs, etc.) is optional butTEXT: H indicate  the  presence  of  any delimiter.  Further, futureTEXT: H implementations may require the punctuation  as  stated.   ATEXT: H consistent  style  adhering  to  the  punctuation shown hereTEXT: H makes the input  easier  to  understand.   With  respect  toTEXT: H branch voltages and currents, SPICE uniformly uses the asso-TEXT: H ciated reference convention (current flows in the  directionTEXT: H of voltage drop).SUBTOPIC: SPICE:ELEMENTARY DEVICESSUBTOPIC: SPICE:VOLTAGE AND CURRENT SOURCESSUBTOPIC: SPICE:TRANSMISSION LINESSUBTOPIC: SPICE:TRANSISTORS AND DIODESSUBJECT: ELEMENTARY DEVICESTITLE: ELEMENTARY DEVICESTEXT: HTEXT: H _3._1.  _E_L_E_M_E_N_T_A_R_Y _D_E_V_I_C_E_STEXT: HSUBTOPIC: SPICE:ResistorsSUBTOPIC: SPICE:Semiconductor ResistorsSUBTOPIC: SPICE:Semiconductor Resistor Model SUBTOPIC: SPICE:CapacitorsSUBTOPIC: SPICE:Semiconductor CapacitorsSUBTOPIC: SPICE:Semiconductor Capacitor Model SUBTOPIC: SPICE:InductorsSUBTOPIC: SPICE:Coupled InductorsSUBTOPIC: SPICE:SwitchesSUBTOPIC: SPICE:Switch Model SUBJECT: ResistorsTITLE: ResistorsTEXT: HTEXT: H _3._1._1.  _R_e_s_i_s_t_o_r_sTEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     RXXXXXXX N1 N2 VALUETEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     R1 1 2 100TEXT: H     RC1 12 17 1KTEXT: HTEXT: HTEXT: H      N1 and N2 are the two  element  nodes.   VALUE  is  theTEXT: H resistance (in ohms) and may be positive or negative but notTEXT: H zero.TEXT: HTEXT: HSUBJECT: Semiconductor ResistorsTITLE: Semiconductor ResistorsTEXT: HTEXT: H _3._1._2.  _S_e_m_i_c_o_n_d_u_c_t_o_r _R_e_s_i_s_t_o_r_sTEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     RXXXXXXX N1 N2 <VALUE> <MNAME> <L=LENGTH> <W=WIDTH> <TEMP=T>TEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     RLOAD 2 10 10KTEXT: H     RMOD 3 7 RMODEL L=10u W=1uTEXT: HTEXT: HTEXT: HTEXT: H      This is the more general form of the resistor presentedTEXT: H in  section  6.1,  and  allows  the  modeling of temperatureTEXT: H effects and for the calculation  of  the  actual  resistanceTEXT: H value from strictly geometric information and the specifica-TEXT: H tions of the process.  If VALUE is specified,  it  overridesTEXT: H the  geometric  information  and defines the resistance.  IfTEXT: H MNAME is specified, then the resistance  may  be  calculatedTEXT: H from  the  process  information  in  the model MNAME and theTEXT: H given LENGTH and WIDTH.  If VALUE  is  not  specified,  thenTEXT: H MNAME  and LENGTH must be specified.  If WIDTH is not speci-TEXT: H fied, then it is taken from the default width given  in  theTEXT: H model.   The  (optional)  TEMP  value  is the temperature atTEXT: H which this device is to operate, and overrides the  tempera-TEXT: H ture specification on the .OPTION control line.TEXT: HTEXT: HSUBJECT: Semiconductor Resistor Model TITLE: Semiconductor Resistor Model (R)TEXT: HTEXT: H _3._1._3.  _S_e_m_i_c_o_n_d_u_c_t_o_r _R_e_s_i_s_t_o_r _M_o_d_e_l (_R)TEXT: HTEXT: HTEXT: H      The resistor model consists of  process-related  deviceTEXT: H data  that  allow  the  resistance  to  be  calculated  fromTEXT: H geometric information and to be corrected  for  temperature.TEXT: H The parameters available are:TEXT: HTEXT: H name     parameter                           units    default   exampleTEXT: HTEXT: H                                                oTEXT: H TC1      first order temperature coeff.      Z/ C     0.0       -TEXT: H                                                o 2TEXT: H TC2      second order temperature coeff.     Z/ C     0.0       -TEXT: H RSH      sheet resistance                    Z/[]     -         50TEXT: H DEFW     default width                       meters   1e-6      2e-6TEXT: H NARROW   narrowing due to side etching       meters   0.0       1e-7TEXT: H                                              oTEXT: H TNOM     parameter measurement temperature    C       27        50TEXT: HTEXT: HTEXT: HTEXT: H      The sheet resistance is used with the narrowing parame-TEXT: H ter  and  L  and W from the resistor device to determine theTEXT: H nominal resistance by the formulaTEXT: HTEXT: H                              L - NARROWTEXT: H                      R = RSH ----------TEXT: H                              W - NARROWTEXT: HTEXT: H DEFW is used to supply a default value for W if one  is  notTEXT: H specified  for the device.  If either RSH or L is not speci-TEXT: H fied, then the standard default resistance value of 1k Z  isTEXT: H used.  TNOM is used to override the circuit-wide value givenTEXT: H on the .OPTIONS control line where the  parameters  of  thisTEXT: H model  have been measured at a different temperature.  AfterTEXT: H the nominal resistance is calculated,  it  is  adjusted  forTEXT: H temperature by the formula:TEXT: HTEXT: H                                                   2TEXT: H        R(T) = R(T ) [1 + TC1 (T - T ) + TC2 (T-T ) ]TEXT: H                  0                 0            0TEXT: HTEXT: HTEXT: HSUBJECT: CapacitorsTITLE: CapacitorsTEXT: HTEXT: H _3._1._4.  _C_a_p_a_c_i_t_o_r_sTEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     CXXXXXXX N+ N- VALUE <IC=INCOND>TEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     CBYP 13 0 1UFTEXT: H     COSC 17 23 10U IC=3VTEXT: HTEXT: HTEXT: H      N+ and N- are the  positive  and  negative  elementTEXT: H nodes,   respectively.   VALUE  is  the  capacitance  inTEXT: H Farads.TEXT: HTEXT: HTEXT: H      The (optional) initial condition is the initial  (time-TEXT: H zero)  value of capacitor voltage (in Volts).  Note that theTEXT: H initial conditions (if any) apply 'only' if the  UIC  optionTEXT: H is specified on the .TRAN control line.TEXT: HTEXT: HSUBJECT: Semiconductor CapacitorsTITLE: Semiconductor CapacitorsTEXT: HTEXT: H _3._1._5.  _S_e_m_i_c_o_n_d_u_c_t_o_r _C_a_p_a_c_i_t_o_r_sTEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     CXXXXXXX N1 N2 <VALUE> <MNAME> <L=LENGTH> <W=WIDTH> <IC=VAL>TEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     CLOAD 2 10 10PTEXT: H     CMOD 3 7 CMODEL L=10u W=1uTEXT: HTEXT: HTEXT: HTEXT: H      This  is  the  more  general  form  of  the   CapacitorTEXT: H presented  in section 6.2, and allows for the calculation ofTEXT: H the actual capacitance value from strictly geometric  infor-TEXT: H mation  and  the specifications of the process.  If VALUE isTEXT: H specified, it defines the capacitance.  If MNAME  is  speci-TEXT: H fied,  then  the  capacitance is calculated from the processTEXT: H information in the model MNAME  and  the  given  LENGTH  andTEXT: H WIDTH.   If  VALUE  is  not specified, then MNAME and LENGTHTEXT: H must be specified.  If WIDTH is not specified,  then  it  isTEXT: H taken  from  the  default  width given in the model.  EitherTEXT: H VALUE or MNAME, LENGTH, and WIDTH may be specified, but  notTEXT: H both sets.TEXT: HTEXT: HSUBJECT: Semiconductor Capacitor Model TITLE: Semiconductor Capacitor Model (C)TEXT: HTEXT: H _3._1._6.  _S_e_m_i_c_o_n_d_u_c_t_o_r _C_a_p_a_c_i_t_o_r _M_o_d_e_l (_C)TEXT: HTEXT: HTEXT: H      The capacitor model contains process  information  thatTEXT: H may  be  used  to  compute  the  capacitance  from  strictlyTEXT: H geometric information.TEXT: HTEXT: HTEXT: HTEXT: H name     parameter                       units       default   exampleTEXT: HTEXT: H                                                  2TEXT: H CJ       junction bottom capacitance     F/meters    -         5e-5TEXT: H CJSW     junction sidewall capacitance   F/meters    -         2e-11TEXT: H DEFW     default device width            meters      1e-6      2e-6TEXT: H NARROW   narrowing due to side etching   meters      0.0       1e-7TEXT: HTEXT: HTEXT: HTEXT: HTEXT: HTEXT: H      The capacitor has a capacitance computed as

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -