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

📄 spice.txt

📁 spice中支持多层次元件模型仿真的可单独运行的插件源码
💻 TXT
📖 第 1 页 / 共 5 页
字号:
TEXT: HTEXT: HTEXT: HTEXT: HTEXT: HSUBJECT: ExponentialTITLE: ExponentialTEXT: HTEXT: H _3._2._1._3.  _E_x_p_o_n_e_n_t_i_a_lTEXT: HTEXT: H _G_e_n_e_r_a_l _F_o_r_m:TEXT: HTEXT: H     EXP(V1 V2 TD1 TAU1 TD2 TAU2)TEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     VIN 3 0 EXP(-4 -1 2NS 30NS 60NS 40NS)TEXT: HTEXT: HTEXT: HTEXT: HTEXT: HTEXT: H      parameter                   default value   unitsTEXT: H      ---------------------------------------------------------TEXT: H      V1   (initial value)                        Volts or AmpsTEXT: H      V2   (pulsed value)                         Volts or AmpsTEXT: H      TD1  (rise delay time)      0.0             secondsTEXT: H      TAU1 (rise time constant)   TSTEP           secondsTEXT: H      TD2  (fall delay time)      TD1+TSTEP       secondsTEXT: H      TAU2 (fall time constant)   TSTEP           secondsTEXT: HTEXT: HTEXT: HTEXT: HTEXT: HTEXT: H      The shape of the waveform is described by the followingTEXT: H table:TEXT: HTEXT: HTEXT: HTEXT: H      time           valueTEXT: H      ----------------------------------------------------------------------------TEXT: H       0 to TD1      V1TEXT: H                                    |     ------------|TEXT: H                                              TAU1TEXT: H                                    |    -(t - TD1)   |                -(t - TD2)TEXT: H      TD1 to TD2     V1 + (V2 - V1)  1 - eTEXT: H                                    |    ----------|             |     ----------|TEXT: H                                    |       TAU1   |             |        TAU2   |TEXT: H      TD2 to TSTOP   V1 + (V2 - V1)   - e            + (V1 - V2)  1 - eTEXT: HTEXT: HTEXT: HTEXT: HTEXT: HSUBJECT: PieceWise LinearTITLE: Piece-Wise LinearTEXT: HTEXT: H _3._2._1._4.  _P_i_e_c_e-_W_i_s_e _L_i_n_e_a_rTEXT: HTEXT: H _G_e_n_e_r_a_l _F_o_r_m:TEXT: HTEXT: H     PWL(T1 V1 <T2 V2 T3 V3 T4 V4 ...>)TEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     VCLOCK 7 5 PWL(0 -7 10NS -7 11NS -3 17NS -3 18NS -7 50NS -7)TEXT: HTEXT: HTEXT: HTEXT: HTEXT: H      Each pair of values (Ti, Vi) specifies that  the  valueTEXT: H of  the  source  is  Vi  (in Volts or Amps) at time=Ti.  TheTEXT: H value of the source at intermediate values of time is deter-TEXT: H mined by using linear interpolation on the input values.TEXT: HTEXT: HSUBJECT: SingleFrequency FMTITLE: Single-Frequency FMTEXT: HTEXT: H _3._2._1._5.  _S_i_n_g_l_e-_F_r_e_q_u_e_n_c_y _F_MTEXT: HTEXT: H _G_e_n_e_r_a_l _F_o_r_m:TEXT: HTEXT: H     SFFM(VO VA FC MDI FS)TEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     V1 12 0 SFFM(0 1M 20K 5 1K)TEXT: HTEXT: HTEXT: HTEXT: HTEXT: HTEXT: HTEXT: H      parameter                 default value   unitsTEXT: H      -------------------------------------------------------TEXT: H      VO  (offset)                              Volts or AmpsTEXT: H      VA  (amplitude)                           Volts or AmpsTEXT: H      FC  (carrier frequency)   1/TSTOP         HzTEXT: H      MDI (modulation index)TEXT: H      FS  (signal frequency)    1/TSTOP         HzTEXT: HTEXT: HTEXT: HTEXT: HTEXT: H The shape of the waveform  is  described  by  the  followingTEXT: H equation:TEXT: HTEXT: HTEXT: H                        |                            |TEXT: H        V(t)=V  + V  sin 2 J FC t + MDI sin(2 J FS t)TEXT: H              O    A    |                            |TEXT: HTEXT: HTEXT: HTEXT: HTEXT: HSUBJECT: Linear Dependent SourcesTITLE: Linear Dependent SourcesTEXT: HTEXT: H _3._2._2.  _L_i_n_e_a_r _D_e_p_e_n_d_e_n_t _S_o_u_r_c_e_sTEXT: HTEXT: HTEXT: H      SPICE  allows  circuits  to  contain  linear  dependentTEXT: H sources characterized by any of the four equationsTEXT: HTEXT: H         i = g v          v = e v          i = f i          vTEXT: H = h iTEXT: HTEXT: H where g, e, f, and h are constants representing transconduc-TEXT: H tance,  voltage  gain,  current  gain,  and transresistance,TEXT: H respectively.TEXT: HTEXT: HTEXT: HSUBTOPIC: SPICE:Linear VoltageControlled Current SourcesSUBTOPIC: SPICE:Linear VoltageControlled Voltage SourcesSUBTOPIC: SPICE:Linear CurrentControlled Current SourcesSUBTOPIC: SPICE:Linear CurrentControlled Voltage SourcesSUBJECT: Linear VoltageControlled Current SourcesTITLE: Linear Voltage-Controlled Current SourcesTEXT: HTEXT: H _3._2._2._1.  _L_i_n_e_a_r _V_o_l_t_a_g_e-_C_o_n_t_r_o_l_l_e_d _C_u_r_r_e_n_t _S_o_u_r_c_e_sTEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     GXXXXXXX N+ N- NC+ NC- VALUETEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     G1 2 0 5 0 0.1MMHOTEXT: HTEXT: HTEXT: H      N+ and N- are  the  positive  and  negative  nodes,TEXT: H respectively.   Current  flow is from the positive node,TEXT: H through the source, to the negative node.  NC+  and  NC-TEXT: H are the positive and negative controlling nodes, respec-TEXT: H tively.  VALUE is the transconductance (in mhos).TEXT: HTEXT: HTEXT: HSUBJECT: Linear VoltageControlled Voltage SourcesTITLE: Linear Voltage-Controlled Voltage SourcesTEXT: HTEXT: H _3._2._2._2.  _L_i_n_e_a_r _V_o_l_t_a_g_e-_C_o_n_t_r_o_l_l_e_d _V_o_l_t_a_g_e _S_o_u_r_c_e_sTEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     EXXXXXXX N+ N- NC+ NC- VALUETEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     E1 2 3 14 1 2.0TEXT: HTEXT: HTEXT: H      N+ is the positive node, and  N-  is  the  negativeTEXT: H node.   NC+  and  NC- are the positive and negative con-TEXT: H trolling nodes,  respectively.   VALUE  is  the  voltageTEXT: H gain.TEXT: HTEXT: HTEXT: HSUBJECT: Linear CurrentControlled Current SourcesTITLE: Linear Current-Controlled Current SourcesTEXT: HTEXT: H _3._2._2._3.  _L_i_n_e_a_r _C_u_r_r_e_n_t-_C_o_n_t_r_o_l_l_e_d _C_u_r_r_e_n_t _S_o_u_r_c_e_sTEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     FXXXXXXX N+ N- VNAM VALUETEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     F1 13 5 VSENS 5TEXT: HTEXT: HTEXT: H      N+ and N- are  the  positive  and  negative  nodes,TEXT: H respectively.   Current  flow is from the positive node,TEXT: H through the source, to the negative node.  VNAM  is  theTEXT: H name  of  a voltage source through which the controllingTEXT: H current flows.  The direction  of  positive  controllingTEXT: H current  flow  is  from  the  positive node, through theTEXT: H source, to the negative node  of  VNAM.   VALUE  is  theTEXT: H current gain.TEXT: HTEXT: HTEXT: HSUBJECT: Linear CurrentControlled Voltage SourcesTITLE: Linear Current-Controlled Voltage SourcesTEXT: HTEXT: H _3._2._2._4.  _L_i_n_e_a_r _C_u_r_r_e_n_t-_C_o_n_t_r_o_l_l_e_d _V_o_l_t_a_g_e _S_o_u_r_c_e_sTEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     HXXXXXXX N+ N- VNAM VALUETEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     HX 5 17 VZ 0.5KTEXT: HTEXT: HTEXT: H      N+ and N- are  the  positive  and  negative  nodes,TEXT: H respectively.   VNAM  is  the  name  of a voltage sourceTEXT: H through which the controlling current flows.  The direc-TEXT: H tion  of  positive  controlling current flow is from theTEXT: H positive node, through the source, to the negative  nodeTEXT: H of VNAM.  VALUE is the transresistance (in ohms).TEXT: HTEXT: HTEXT: HSUBJECT: Nonlinear Dependent SourcesTITLE: Non-linear Dependent SourcesTEXT: HTEXT: H _3._2._3.  _N_o_n-_l_i_n_e_a_r _D_e_p_e_n_d_e_n_t _S_o_u_r_c_e_sTEXT: HTEXT: H _G_e_n_e_r_a_l _f_o_r_m:TEXT: HTEXT: H     BXXXXXXX N+ N- <I=EXPR> <V=EXPR>TEXT: HTEXT: HTEXT: H _E_x_a_m_p_l_e_s:TEXT: HTEXT: H     B1 0 1 I=cos(v(1))+sin(v(2))TEXT: H     B1 0 1 V=ln(cos(log(v(1,2)^2)))-v(3)^4+v(2)^v(1)TEXT: H     B1 3 4 I=17TEXT: H     B1 3 4 V=exp(pi^i(vdd))TEXT: HTEXT: HTEXT: HTEXT: H      _N+ is the positive node, and _N- is the  negative  node.TEXT: H The  values of the V and I parameters determine the voltagesTEXT: H and currents across and through  the  device,  respectively.TEXT: H If  I is given then the device is a current source, and if VTEXT: H is given the device is a voltage source.  One and  only  oneTEXT: H of these parameters must be given.TEXT: HTEXT: H      The small-signal AC behavior of the nonlinear source isTEXT: H a  linear dependent source (or sources) with a proportional-TEXT: H ity constant equal to the derivative (or derivatives) of theTEXT: H source at the DC operating point.TEXT: HTEXT: HTEXT: H      The expressions given for V and I may be  any  functionTEXT: H of voltages and currents through voltage sources in the sys-TEXT: H tem.  The following functions of real variables are defined:TEXT: HTEXT: H                 abs     asinh   cosh   sinTEXT: H                 acos    atan    exp    sinhTEXT: H                 acosh   atanh   ln     sqrtTEXT: H                 asin    cos     log    tanTEXT: HTEXT: HTEXT: HTEXT: H      The function "u" is the  unit  step  function,  with  aTEXT: H value  of  one for arguments greater than one and a value ofTEXT: H zero for arguments less than zero.  The function "uramp"  isTEXT: H the  integral of the unit step: for an input _x, the value isTEXT: H zero if _x is less than zero, or if _x is  greater  than  zeroTEXT: H the value is _x.  These two functions are useful in sythesiz-TEXT: H ing piece-wise non-linear functions, though convergence  mayTEXT: H be adversely affected.TEXT: HTEXT: HTEXT: H      The following standard operators are defined:TEXT: HTEXT: H      +       -       *       /       ^       unary -TEXT: HTEXT: HTEXT: H      If the argument of log, ln, or sqrt becomes  less  thanTEXT: H zero,  the  absolute  value  of  the argument is used.  If aTEXT: H divisor becomes zero or the argument of log  or  ln  becomesTEXT: H zero,  an  error will result.  Other problems may occur whenTEXT: H the argument for a function in a partial derivative enters aTEXT: H region where that function is undefined.TEXT: HTEXT: HTEXT: H      To get time into the expression you can  integrate  theTEXT: H current  from a constant current source with a capacitor andTEXT: H use the resulting voltage (don't forget to set  the  initialTEXT: H voltage  across the capacitor).  Non-linear resistors, capa-TEXT: H citors, and inductors may be synthesized with the  nonlinearTEXT: H dependent  source.   Non-linear resistors are obvious.  Non-TEXT: H linear capacitors and inductors are implemented  with  theirTEXT: H linear  counterparts  by  a  change of variables implementedTEXT: H with the nonlinear dependent source.  The following  subcir-TEXT: H cuit will implement a nonlinear capacitor:TEXT: HTEXT: H     .Subckt nlcap   pos negTEXT: H     * Bx: calculate f(input voltage)TEXT: H     Bx   1    0    v = f(v(pos,neg))TEXT: H     * Cx: linear capacitanceTEXT: H     Cx   2    0    1TEXT: H     * Vx

⌨️ 快捷键说明

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