home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-2.iso / Developer / hardware / dsp / drbub / analog / sspice.doc < prev   
Encoding:
Text File  |  1991-09-07  |  2.9 KB  |  84 lines

  1. This program is a scaled down version of spice that will
  2. simulate and find the frequency response
  3. of any circuit.  It has no time domain simulation
  4. capabilities.  sspice can accept passive and active
  5. circuits.   Voltage controlled current sources and
  6. voltage controlled voltage sources are available.
  7.  
  8. Node Names
  9.  
  10. The input format of sspice is a "net list" containing
  11. all component connections and values.  Most components
  12. are described as to be connected between two nodes.
  13. The node names can be a 10 or less ascii character
  14. string.  The node names "Gnd" and "gnd" are reserved
  15. for the common node of ground.  Each circuit is assumed
  16. to have this common node of ground.
  17.  
  18. Control Commands
  19.  
  20. FS <val> [modif] ;            The starting frequency in Hz.
  21. FE <val> [modif] ;            The ending frequency in Hz.
  22. FP <val> [modif] ;            The number of partitions the
  23.                     frequency range is to divided
  24.                     into.
  25. LOG ;                    The output will be calculated in
  26.                     dB (attenuation).  Only applies
  27.                     to magnitude response.
  28. RADS ;                    The starting, ending, and output
  29.                     printed frequencies are accepted
  30.                     and printed in radians instead of Hz.
  31. PHASE ;                    Phase response is calculated and
  32.                     printed in degrees.
  33. PRTCMP ;                Print out a list of the components
  34.                     used and their node assignments.
  35. OUT <node> ;                Identifies the output node.
  36. VS <node> ;                Identifies the input node.
  37.  
  38. Passive Component Entries
  39.  
  40. Rxxxx <node> <node> <value> [modif] ;    A resistor with label "xxxx" connected
  41.                     between the two nodes with resistance
  42.                     "value" ohms.
  43. Cxxxx <node> <node> <value> [modif] ;    A capacitor with label "xxxx" connected
  44.                     between the two nodes with capacitance
  45.                     "value" farads.
  46. Lxxxx <node> <node> <value> [modif] ;    An inductor with label "xxxx" connected
  47.                     between the two nodes with inductance
  48.                     "value" henries.
  49.  
  50. Active component Entries
  51.  
  52. VCV <node1> <node2> <node3> <value> [modif] ;
  53.                     A voltage controlled voltage source.
  54.                     A voltage of value*(Vnode1-Vnode2)
  55.                     is applied to node3.  "value" is the
  56.                     voltage gain constant (for typical
  57.                     op-amps, make this 100,000).
  58. VCI <node1> <node2> <node3> <node4> <value> [modif] ;
  59.                     A voltage controlled current source.
  60.                     A current of value*(Vnode1-Vnode2)
  61.                     is injected between node3 and node4.
  62.                     "value" is considered to be the
  63.                     transconductance of the controlled
  64.                     source in units of Mhos.
  65.  
  66. Note: At present, sources cannot be assigned unique names; however,
  67.       each entry is considered a unique source.
  68.  
  69. Modifiers
  70.  
  71. All input data can be modified by a metric modifier or an exponential power.
  72. The modifiers are p,n,u,m,K,M,G, for ten to the -12,-9,-6,-3,+3,+6,+9
  73. powers, respectively.
  74.  
  75. Output
  76.  
  77. The output will be two columns of numbers: the first being the
  78. frequency in hertz, the second being the amplitude response
  79. in absolute units or attenuation in dB, phase response in
  80. degrees, or the step response.  In addition to the x-y
  81. coordinates, further information is supplied to the
  82. output for use by the "plot" program.
  83.  
  84.