home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / PSPICEP1.ZIP / PSPICE.HLP < prev    next >
Text File  |  1990-01-23  |  34KB  |  1,122 lines

  1. @@MM
  2. Menus: ~
  3. This is the Main Menu for the PSpice Control Shell. ~
  4. Use the Files Menu to specify the current file to be read or
  5. to edit the file. ~
  6. Use the Circuit Menu to display and modify devices in the circuit
  7. and to change model parameters. ~
  8. Use the Analysis Menu to set up parameters for the different
  9. analysis types, then select 'Run PSpice' to run the enabled analyses. ~
  10. Use the Probe Menu to view the results of the analyses. ~ ~
  11. Function Keys: ~
  12. At any time the F1 key will provide help. Hit the F1 key
  13. a second time to exit help. ~
  14. The F2 key allows you to move and/or resize most of the
  15. pop up windows (like this one).  If the current window is moveable
  16. or resizable you may press F2 and instructions will appear at the
  17. bottom of the page explaining how to move and resize the window. ~
  18. The F3 key calls up the On-Line Manual.
  19. When you are in the editor just hit F3 then Enter twice and you will
  20. get the manual page that describes the device or command on the line
  21. you are currently editing ("context-sensitive help"). ~
  22. The F4 key shows a list of choices where possible - for example, file
  23. names with a ".cir" extension ~
  24. The F5 key pops up the PSpice calculator. ~
  25. The F6 key shows you a list of errors in the current output file. ~ ~
  26. Using the Mouse: ~
  27. Moving the mouse left/right/up/down is equivalent to using the
  28. arrow keys. ~
  29. Clicking the left or right mouse button is the
  30. same as Enter (except in the editor, where this turns on marking). ~
  31. Clicking both buttons together is the same as ESC.
  32. @@FMC
  33. Selects the current file. All processing is done on this file.
  34. @@FMD
  35. Allows you to change the working directory.  The current directory
  36. is displayed for reference.
  37. @@DIR
  38. Enter a new pathname or directory, or press the ESC key to abort.
  39. @@FME
  40. Edits the current file.  Maximum file size is 32k.
  41. @@FMB
  42. Browses the current output file.  Editing or changing the file
  43. is not possible.  Maximum file size is approximately 1.3 megabytes.
  44. @@FMS
  45. Saves changes made to the current file. The original is saved
  46. with a ".cbk" extension.
  47. @@FMX
  48. Runs an "external" editor on the current file. The file is saved
  49. first if changes have been made. The PSEDIT environment variable
  50. gives a command line for the program. For example, "PSEDIT=edlin\ %f"
  51. would specify edlin as the external editor. The "%f" is replaced by
  52. the name of the current file.
  53. @@FMXB
  54. Runs an "external" text browser/editor on the current output file. The 
  55. PSBROWSE environment variable gives a command line for the program. For 
  56. example, "PSBROWSE=type %f | more" would specify that the circuit output 
  57. would be piped thru the 'more' command onto the screen. The "%f" is 
  58. replaced by the name of the current file.
  59. @@CMD
  60. Allows modification of device parameters.
  61. @@CMM
  62. Allows modification of model parameters.
  63. @@CMP
  64. Allows values of global parameters
  65. (ie. those defined in a ".PARAM" PSpice statement) to be modified.
  66. @@CME
  67. Displays a list of error messages which occurred during read-in
  68. and the (approximate) line number in the circuit file in a scrollable window.
  69. Use the "browse" function to look at errors from the analysis
  70. phase (ie. in the .out file).
  71. @@SMA
  72. Runs the Stimulus Editor to create or modify a stimulus.
  73. Both analog (independent voltage and current sources)
  74. and digital (U "STIM" devices) are supported.
  75. @@SMC
  76. Entering Y enables use of a command file with the Stimulus Editor.
  77. @@SML
  78. Entering Y causes the Stimulus Editor to generate a log file.
  79. @@AMA
  80. Specify the parameters for AC and Noise Analysis (".AC/.NOISE").
  81. @@AMD
  82. Specify the parameters for a DC Analysis (".DC").
  83. @@AMP
  84. Set up a parametric sweep.  The sweep will be performed
  85. on one variable for all the analyses of the circuit. (".STEP").
  86. @@AMTR
  87. Specify parameters for Transient and Fourier Analysis (".TRAN/.FOUR").
  88. @@AMO
  89. Set operating point (".IC/.NODESET").
  90. @@AMTE
  91. Specify temperature(s) for PSpice analyses (".TEMP").
  92. @@AMM
  93. Specify Monte Carlo parameters (".MC").
  94. @@AMC
  95. Set PSpice options (".OPTIONS"). ~ ~
  96. Keyboard commands: ~ ~
  97. Up/down arrow - scroll thru list. ~
  98. ^Enter - accept changes and quit. ~
  99. Esc - quit without saving changes.
  100. @@AMS
  101. Start PSpice analyses.
  102. @@PMS
  103. Define whether to save All, Some or None of PSpice's
  104. output variables for Probe processing.
  105. @@PMV
  106. Run Probe on the most recent PSpice output; or specify another
  107. file for viewing.
  108. @@PMA
  109. Tells Probe to automatically run after a circuit analysis.
  110. @@PMC
  111. Tells Probe to use a command file (/C option).
  112. @@PML
  113. Tells Probe to build a command file (/L option).
  114. @@PMF
  115. Controls whether PSpice generates a binary Probe file or
  116. an ascii Probe file (".PROBE/CSDF").
  117. @@PRASN
  118. Saves variables for Probe: All, Some or None.
  119. @@PMCF
  120. Set up display and hard-copy specifications for Probe
  121. (modifies the "probe.dev" file).
  122. @@PCDS
  123. Define the display device for Probe. F4 displays most
  124. currently supported displays.
  125. @@PCPO
  126. Define the port for Probe hardcopy output. F4 displays
  127. the legal port names. Selecting "FILE" will cause Probe
  128. to direct hardcopy to a file rather than direct to the
  129. hardcopy device.
  130. @@PCPR
  131. Define the hardcopy device (printer) for Probe. F4 will
  132. display most currently supported hardcopy devices.
  133. @@PCBT
  134. Output binary (.dat) or ascii (.txt) file for Probe. Binary
  135. is the format generated by ".PROBE". Text is the format generated
  136. by ".PROBE/CSDF".
  137. @@DMS
  138. Do a Sensitivity Analysis for specified output variables (".SENS").
  139. @@DMTF
  140. Do a Transfer Function Analysis on the specifies output variables
  141. and input sources( ".TF").
  142. @@DMB
  143. Controls printout of bias point calculations for DC and for
  144. Transient Analysis(".OP", ".TRAN/OP").
  145. @@DMPL
  146. Plots specified output variables (".PLOT").
  147. @@DMPR
  148. Prints specified output variables (".PRINT").
  149. @@QME
  150. Close all open files and return to the operating system.
  151. @@QMD
  152. Run a single operating system command. To get a "shell" enter 
  153. a blank line.
  154. @@ACEN
  155. Enable or disable AC Analysis. Note that the parameters
  156. set up for AC analysis remain unchanged, regardless of whether
  157. analysis is enabled.
  158. @@ACST
  159. Define the type of sweep for AC Analysis.
  160. @@ACSF
  161. Start frequency for AC Analysis.
  162. @@ACEF
  163. End frequency for AC Analysis.
  164. @@ACNP
  165. If sweep type is Linear, number of points in the AC sweep;
  166. otherwise, the number of points per Octave or per Decade.
  167. @@DCSWP
  168. Enable an optional second nested sweep.  A second sweep variable,
  169. sweep type, start, end, and increment value may be used after the
  170. first sweep.  The entire first sweep will be done for each value of
  171. the second sweep.
  172. @@DCEN
  173. Enable or disable DC Analysis. Note that the parameters
  174. set up for DC analysis remain unchanged, regardless of whether
  175. analysis is enabled.
  176. @@DCSV
  177. Type of variable to sweep (Temperature, Voltage
  178. source, Current source, Model parameter, Global parameter).
  179. @@DCMT
  180. Type of Model for which parameter is to be swept. For example,
  181. RES for a resistor. F4 displays a list.
  182. @@DCMN
  183. Name of (your) model for which parameter is to be swept. F4 displays
  184. a list of models of the specified type which are defined in the
  185. current circuit.
  186. @@DCPN
  187. Name of a parameter for this model type. F4 displays a list of
  188. parameters.
  189. @@DCVS
  190. Enter the name of a voltage source. F4 displays a list of 'v'
  191. devices defined in the present circuit.
  192. @@DCIS
  193. Enter the name of a current source. F4 displays a list of 'i'
  194. devices defined in the present circuit.
  195. @@DCGP
  196. Enter the name of a global parameter. F4 displays a list of
  197. globals defined in the present circuit.
  198. @@DCST
  199. The type of sweep to be done: Linear, Octave, Decade or
  200. Value-list.
  201. @@DCS
  202. The starting value for the Linear, Octave or Decade sweep.
  203. @@DCE
  204. The final value for the Linear, Octave or Decade sweep.
  205. @@DCNP
  206. The number of points per octave (decade) of the sweep.
  207. @@DCIN
  208. The increment in a Linear sweep.
  209. @@DCEN
  210. This enables a "nested" sweep. A second sweep may be placed
  211. after the previously defined first sweep.  In this case the first 
  212. sweep will be the "inner" loop: the entire first sweep will be performed 
  213. for each value of the second sweep.
  214. @@C2FN
  215. Enter a filename. F4 displays a list of ".cir" files in the
  216. current directory.
  217. @@C2PF
  218. Enter a filename. F4 displays a list of ".dat" files in the
  219. current directory.
  220. @@C2CFE
  221. Entering Y will allow Probe to automatically run after analysis.
  222. @@C2CF
  223. Enter a filename. F4 displays a list of ".cmd" files in the
  224. current directory.
  225. @@C2LFE
  226. Entering Y causes Probe to generate a log file.
  227. @@C2LF
  228. Enter a filename (.cmd by default).
  229. @@SCSD
  230. Save or Discard changes to the current file. If Save, the original
  231. file is copied to a file with a ".cbk" extension.
  232. @@TREN
  233. Enable Transient or Fourier Analysis.
  234. @@TRPS
  235. Print step value for the Transient Analysis.
  236. @@TRFT
  237. Final time for the Transient Analysis; duration of the run.
  238. @@TRNP
  239. Time to wait until starting to generate Print, Plot or Probe output.
  240. @@TRSC
  241. Step ceiling; do not allow internal time step to exceed this value.
  242. @@TROP
  243. Print a listing of the currents and power dissipation of all
  244. the voltage sources.  Also, the small signal (linearized)
  245. parameters of all the non-linear controlled sources and all the
  246. semiconductor devices are output.  This is in addition to the node 
  247. voltages which are normally printed.
  248. @@TRUI
  249. Use Initial Conditions set by "IC=" statements on various
  250. devices. Note that, where possible, the preferred way to set the
  251. bias point is by using ".IC" or ".NODESET" statements or by
  252. the "Set Operating Point" function in the Analysis Menu.
  253. @@FOCF
  254. Fundamental frequency for Fourier Analysis.
  255. @@FOOV
  256. Define output variable(s) for Fourier Analysis.
  257. @@FEFN
  258. Enter the name of a circuit file to edit. F4 will display a
  259. list of ".cir" files in the current directory.
  260. @@FESD
  261. Save the changes you have made during the edit, or discard the changes.
  262. @@OPAC
  263. Output summary and accounting information.
  264. @@OPEX
  265. List devices created by subcircuit expansion.
  266. @@OPLB
  267. List lines used from library files.
  268. @@OPLI
  269. List summary of circuit devices.
  270. @@OPNO
  271. List circuit node table.
  272. @@OPNE
  273. Suppress listing of input file.
  274. @@OPNM
  275. Suppress listing of model parameters and temperature updated values.
  276. @@OPNP
  277. Suppress paging and banner.
  278. @@OPOP
  279. List values for all options.
  280. @@OPNOB
  281. Disable printing of bias point voltages.
  282. @@OPI1
  283. DC and bias-point "blind" iteration limit.
  284. @@OPI2
  285. DC and bias-point "educated guess" iteration limit.
  286. @@OPI4
  287. Iteration limit for any Transient Analysis point.
  288. @@OPI5
  289. Total iteration limit for all points in Transient Analysis
  290. (set to 0 to get unlimited number of points).
  291. @@OPLP
  292. Max points allowed for any print table or plot.
  293. @@OPND
  294. Number of digits output in print tables.
  295. @@OPWI
  296. Sets the width of the output.
  297. @@OPAT
  298. Best accuracy of currents (amp).
  299. @@OPCT
  300. Best accuracy of charges (coulomb).
  301. @@OPCP
  302. CPU time allowed for this run (sec).
  303. @@OPDD
  304. MOSFET default drain area (sq m).
  305. @@OPDS
  306. MOSFET default source area (sq m).
  307. @@OPDL
  308. MOSFET default length (m).
  309. @@OPDW
  310. MOSFET default width (m).
  311. @@OPGM
  312. Minimum conductance used for any branch (mho).
  313. @@OPPR
  314. Relative magnitude required for pivot in matrix solution.
  315. @@OPPT
  316. Absolute magnitude required for pivot in matrix solution.
  317. @@OPRT
  318. Relative accuracy of V's and I's.
  319. @@OPTN
  320. Default temperature (degree C).
  321. @@OPTR
  322. Transient Analysis "accuracy adjustment".
  323. @@OPVN
  324. Best accuracy of voltages (v).
  325. @@OPDMM
  326. 1 selects min/typ device timing. ~
  327. 2 selects max device timing.
  328. @@OPDF
  329. Minimum digital time step is 1/DIGFREQ.
  330. @@OPDSF
  331. "Forcing" drive impedance is < DIGSTRF.
  332. @@OPDSD
  333. "Driving" drive impedance is < DIGSTRD.
  334. @@OPDSW
  335. "Weak" drive impedance is < DIGSTRW.
  336. @@MCEN
  337. Enable or disable Monte Carlo Analysis.
  338. @@MCNR
  339. Number of runs (with varying parameters).
  340. @@MCWA
  341. Select one analysis on which to perform Monte Carlo.
  342. @@MCOV
  343. Output variable for which statistics are collected
  344. during Monte Carlo runs.
  345. @@MCLP
  346. Enable or disable printout of model parameters for
  347. each Monte Carlo run.
  348. @@MCOS
  349. Specify what output to keep: ~
  350. All - all output ~
  351. None - no output ~
  352. First - during first N runs ~
  353. Every - for every Nth run ~
  354. Runs - for the specified runs.
  355. @@MCEV
  356. Threshold for RISE_EDGE(v) or FALL_EDGE(v).
  357. @@MCLR
  358. Lower bound on RANGE option. Enter blank field to omit.
  359. If lower and upper omitted, no RANGE option is specified.
  360. @@MCHR
  361. Upper bound on RANGE option. Enter blank field to omit.
  362. If lower and upper omitted, no RANGE option is specified.
  363. @@MCWF
  364. Specify collation function for MC analyses.
  365. @@VCDB
  366. Enter a number in PSpice format (suffices are OK). ~
  367. Examples: 1.23, 1e-5, 1.4pf, 10kohm.
  368. @@VCIN
  369. Enter an integer between 1 and 32767.
  370. @@SEL1
  371. Move the highlight with the arrow keys, make a selection
  372. with Enter or cancel with ESC.
  373. @@SELL
  374. The window is a table containing numbers and/or blank spaces.
  375. Use the arrow keys to move between fields. When done, hit Ctrl/Enter
  376. to accept the changes or ESC to cancel.
  377. @@EDIT
  378. ----- Editor commands ----- ~ ~
  379. ^A - move left 1 word; ~
  380. ^F - move right 1 word; ~
  381. ^Z - scroll up; 
  382. ^W - scroll down; ~
  383. ^Y - delete a line. ~ ~
  384. ESC - exit the editor. ~ 
  385. Arrow keys - move horiz. and vert.
  386. PgUp - page up; ~
  387. PgDown - page down. ~
  388. Home - go to start of line; ~
  389. End - go to end of line. ~
  390. ^PgUp - go to top of file; ~
  391. ^PgDown - go to end of file. ~
  392. ^Home - go to top of page; ~
  393. ^End - go to end of page. ~ 
  394. (the '^' symbol is the Ctrl key) ~
  395. ALT_M - begin marking a block; ~
  396. ALT_C - copy to scrap; ~
  397. ALT_X - cut to scrap; ~
  398. ALT_P - paste at current cursor; ~
  399. ALT_S - search for a pattern; ~
  400. Insert - toggle insert/overstr.; ~
  401. F7 - toggle justify. ~ ~ ~
  402. ----- Mouse keys ----- ~ ~
  403. Click L/R starts marking. ~
  404. Both keys for ESC. ~ ~
  405. Maximum file size is 32k.
  406. @@BROW
  407. ----- Browser commands ----- ~ ~
  408. ^Z - scroll up; ~
  409. ^W - scroll down. ~ ~
  410. ESC - exit the browser. ~ 
  411. Arrow keys - move horiz. and vert.
  412. PgUp - page up; ~
  413. PgDown - page down. ~
  414. Home - go to start of line; ~
  415. End - go to end of line. ~ 
  416. ^PgUp - go to top of file; ~
  417. ^PgDown - go to end of file. ~
  418. ^Home - go to top of page; ~
  419. ^End - go to end of page. ~ ~
  420. ALT_S - search for string; ~
  421. ALT_G - go to line number.
  422. @@CALC
  423. Pop-Up Calculator: ~ ~
  424. This is a simple RPN calculator. Enter numbers in PSpice format
  425. or one of the following one-keystroke commands: ~
  426. + - * / ~
  427. Log eXp sQrt ~
  428. Sin Cos Tan Pi ~
  429. Inv (1/x) ~
  430. ! (change sign) ~
  431. Rad (angles are radian) ~
  432. Deg (angles are degrees) ~
  433. > (degrees to radian) ~
  434. < (radian to degrees) ~
  435. \~ (res freq for LC) ~ ~
  436. ESC to exit.
  437. @@PRIAT
  438. Allow the results from DC, AC, noise, or transient analyses to
  439. be output in the form of tables, referred to as print tables.  Exactly
  440. one analysis type must be specified.  For the type selected, the user
  441. will then be asked for a list of variables to be output.  Values are
  442. printed for each output variable whenever they change value.
  443. @@MANM
  444. This is the On-Line Manual. Select a section, then select an
  445. individual device, command or topic.
  446. @@MANDB
  447. B device - GaAsFET. ~ ~
  448. General Forms: ~
  449. B<name> <d> <g> <s> <model> [<area>] ~ ~
  450. Examples: ~
  451. BIN 100  1  0  GFAST ~
  452. B13  22 14 23  GNOM 2.0
  453. @@MANDC
  454. C device - Capacitor. ~ ~
  455. General Forms: ~
  456. C<name> <+node> <-node> [<model>] ~
  457. + <value> [IC=<initial>] ~ ~
  458. Examples: ~
  459. CLOAD  15  0  20pF ~
  460. CFDBK   3 33  CMOD 10pF IC=1.5v
  461. @@MANDD
  462. D device - Diode. ~ ~
  463. General Forms: ~
  464. D<name> <+node> <-node> <model> ~
  465. + [area] ~
  466. Examples: ~
  467. DCLAMP  14  0  DMOD ~
  468. D13     15 17  SWITCH 1.5
  469. @@MANDE
  470. E device - (Voltage) Controlled Voltage Source. ~ ~
  471. General Forms: ~
  472. E<name> <+node> <-node> ~
  473. + <+control> <-control> <gain> ~
  474. E<name> <+node> <-node> POLY(<value>) ~
  475. + < <+control> <-control> >* ~
  476. + < <coeff> >* ~
  477. E<name> <+node> <-node> VALUE={<exp>} ~
  478. E<name> <+node> <-node> TABLE {<exp>} ~
  479. + < (inval), (outval) >* ~
  480. E<name> <+node> <-node> LAPLACE {<exp>} ~
  481. + {<sexp>} ~
  482. E<name> <+node> <-node> FREQ {<exp>} ~
  483. + < (freq, magdb, phasedeg) >* ~ ~
  484. Examples: ~
  485. EBUFF   1   2  10  11  1.0 ~
  486. EAMP   13   0  POLY(1)  26  0  500 ~
  487. ENLIN 100 101  POLY(2) ~
  488. +    3 0  4 0  0.0 13.6 0.2 0.005 ~
  489. ESQRT  10   0  VALUE = {SQRT(V(5))} ~
  490. ETAB   20   5  TABLE {V(2)} ~
  491. +    (-5v,5v) (0v,0v) (5v,-5v)
  492. E1POLE 10   0  LAPLACE {V(1)} ~
  493. + {1 / (1 + s)} ~
  494. EATTEN 20   0  FREQ {V(100)} ~
  495. + (0,0,0 10,-2,-5 20,-6,-10) ~ ~
  496. @@MANDF
  497. F device - Current Controlled Current Source. ~ ~
  498. General Forms: ~
  499. F<name> <+node> <-node> ~
  500. + <vname> <gain> ~ ~
  501. F<name> <+node> <-node> POLY(<value>) ~
  502. + < <vname> >* < <coeff> >* ~ ~
  503. Examples: ~
  504. FSENSE  1   2  VSENSE  10.0 ~
  505. FAMP   13   0  POLY(1) VIN 500 ~
  506. FNLIN 100 101  POLY(2) V1 v2 ~
  507. +    0.0 0.9 0.2 0.005
  508. @@MANDG
  509. G device - (Voltage) Controlled Current Source. ~ ~
  510. General Forms: ~
  511. G<name> <+node> <-node> ~
  512. + <+control> <-control> <gain> ~
  513. G<name> <+node> <-node> POLY(<value>) ~
  514. + < <+control> <-control> >* ~
  515. + < <coeff> >* ~
  516. G<name> <+node> <-node> VALUE={<exp>} ~
  517. G<name> <+node> <-node> TABLE {<exp>} ~
  518. + = < (inval), (outval) >* ~
  519. G<name> <+node> <-node> LAPLACE {<exp>} ~
  520. + {<sexp>} ~
  521. G<name> <+node> <-node> FREQ {<exp>} ~
  522. + < (freq, magdb, phasedeg) >* ~ ~
  523. Examples: ~
  524. GBUFF   1   2  10  11  1.0 ~
  525. GAMP   13   0  POLY(1)  26  0  500 ~
  526. GNLIN 100 101  POLY(2) ~
  527. +    3 0  4 0  0.0 13.6 0.2 0.005 ~
  528. GSQRT  10   0  VALUE = {SQRT(V(5))} ~
  529. GTAB   20   5  TABLE{V(2)} = ~
  530. +    (-5v,5v) (0v,0v) (5v,-5v)
  531. G1POLE 10   0  LAPLACE {V(1)} ~
  532. + {1 / (1 + s)} ~
  533. GATTEN 20   0  FREQ {V(100)} ~
  534. + (0,0,0 10,-2,-5 20,-6,-10) ~ ~
  535. @@MANDH
  536. H device - Current Controlled Voltage Source. ~ ~
  537. General Forms: ~
  538. H<name> <+node> <-node> ~
  539. + <vname> <gain> ~ ~
  540. H<name> <+node> <-node> POLY(<value>) ~
  541. + < <vname> >* < <coeff> >* ~ ~
  542. Examples: ~
  543. HSENSE  1   2  VSENSE  10.0 ~
  544. HAMP   13   0  POLY(1) VIN 500 ~
  545. HNLIN 100 101  POLY(2) V1 v2 ~
  546. +    0.0 0.9 0.2 0.005
  547. @@MANDI
  548. I device - Current Source. ~ ~
  549. General Forms: ~
  550. I<name> <+node> <-node> ~
  551. + [[DC] <value>] ~
  552. + [AC <mag> [<phase>]] ~
  553. + [ <transient> ] ~ ~
  554. Transient Specifications: ~
  555. EXP(i1 ipk rdelay rtc fdelay ftc) ~
  556. PULSE(i1 i2 td trise tfall pw per) ~
  557. PWL(t1 i1 t2 i2 ... tn fn) ~
  558. SFFM(ioff iampl fc mod fm) ~
  559. SIN(ioff iampl freq td df phase) ~ ~
  560. Examples: ~
  561. IBIAS  13  0  2.3mA ~
  562. IAC    2   3  AC .001 ~
  563. IACPHS 2   3  AC .001 90 ~
  564. IPULSE 1   0  ~
  565. + PULSE(-1mA 1mA 2ns 2ns 2ns 50ns 100ns) ~
  566. I3    26  77  DC .002 AC 1 ~
  567. + SIN(.002 .002 1.5MEG)
  568. @@MANDJ
  569. J device - Junction FET. ~ ~
  570. General Forms: ~
  571. J<name> <d> <g> <s> <model> [<area]> ~ ~
  572. Examples: ~
  573. JIN   100  1  0  JFAST
  574. J13    22 14 23  JNOM ~
  575. +   2.0
  576. @@MANDK
  577. K device - Inductor Coupling. ~ ~
  578. General Forms: ~
  579. K<name> L<name> < L<name> >* ~
  580. +    <coupling> ~
  581. K<name> < L<name> >* <coupling> ~
  582. +    <model> [<size]> ~ ~
  583. Examples: ~
  584. KTUNED  L3OUT L4IN  .8 ~
  585. KXFR1   LPRIM LSEC  .99 ~
  586. KXFR2   L1 L2 L3 L4 .98 KPOT_3C8
  587. @@MANDL
  588. L device - Inductor. ~ ~
  589. General Forms: ~
  590. L<name> <+node> <-node> [model] ~
  591. + <value> [IC=<initial>] ~ ~
  592. Examples: ~
  593. LLOAD  15  0   20mH ~
  594. L2      1  2   .2e-6 ~
  595. LCHOKE  3 42   LMOD   .03 ~
  596. LSENSE  5 12   2uH IC=2mA
  597. @@MANDM
  598. M device - MOSFET. ~ ~
  599. General Forms: ~
  600. M<name> <d> <g> <s> <sub> <mdl> ~
  601. +  [L=<value>]  [W=<value>] ~
  602. +  [AD=<value>] [AS=<value>] ~
  603. +  [PD=<value>] [PS=<value>] ~
  604. + [NRD=<value>] [NRS=<value>] ~
  605. + [NRG=<value>] [NRB=<value>] ~ ~
  606. Examples: ~
  607. M1  14  2  13  0 PNOM L=25u W=12u ~
  608. M13 15  3   0  0 PSTRONG ~
  609. M2A 0   2 100 100 PWEAK L=33u w=12u ~
  610. +  AD=288p AS=288p PD=60u PS=60u ~
  611. +  NRD=14 NRS=24 NRG=10
  612. @@MANDN
  613. N device - Digital Input. ~ ~
  614. General Forms: ~
  615. N<name> <inode> <lonode> hinode> ~
  616. +  <model> [SIGNAME=<name>] [IS=<init>] ~ ~
  617. Examples: ~
  618. NRESET 7  15  16  FROM_TTL ~
  619. N12   18   0 100  FROM_CMOS ~
  620. +  SIGNAME=VCO_GATE IS=0
  621. @@MANDO
  622. O device - Digital Output. ~ ~
  623. General Forms: ~
  624. O<name> <iface> <ref> <model> ~
  625. +  [SIGNAME = <name>] ~ ~
  626. Examples: ~
  627. OVCO  17   0   TO_TTL
  628. O5    22 100   TO_CMOS ~
  629. +  SIGNAME = VCO_OUT
  630. @@MANDQ
  631. Q device - Bipolar Transistor. ~ ~
  632. General Forms: ~
  633. Q<name> <c> <b> <e> ~
  634. + [<subs>] <model> [<area>] ~ ~
  635. Examples: ~
  636. Q1   14  2  13  PNPNOM ~
  637. Q13  15  3  0  1  NPNSTRONG 1.5 ~
  638. Q7   VC  5  12 [SUB] LATPNP
  639. @@MANDR
  640. R device - Resistor. ~ ~
  641. General Forms: ~
  642. R<name>  <+node> <-node> ~
  643. +  [<model>] <value> ~ ~
  644. Examples: ~
  645. RLOAD  15  0  2k ~
  646. R2     1   2  2.4e4
  647. @@MANDS
  648. S device - Voltage-Controlled Switch. ~ ~
  649. General Forms: ~
  650. S<name> <+node> <-node> ~
  651. +  <+control> <-control> <model> ~ ~
  652. Examples: ~
  653. S12  13  17  2  0  SMOD ~
  654. SRESET 5  0  15  3 RELAY
  655. @@MANDT
  656. T device - Transmission Line. ~ ~
  657. General Forms: ~
  658. T<name> <A+> <A-> <B+> <B-> ~
  659. +  Z0=<value> ~
  660. +  [TD=<val> | F=<val>[NL=<val>]] ~ ~
  661. Examples: ~
  662. T1   1  2  3  4  Z0=220  TD=115ns ~
  663. T2   1  2  3  4  Z0=50 F=5MEG NL=0.5
  664. @@MANDU
  665. U device - Digital. ~ ~
  666. General Forms: ~
  667. U<name> <type> <parms> <node>* ~
  668. + [<parm> = <val>]* ~ ~
  669. Types: BUF, INV, AND, NAND, OR, ~
  670.  NOR, XOR, NXOR, BUF3, INV3, ~
  671. AND3, OR3, NOR3, XOR3, NXOR3, ~
  672. JKFF, DFF, PULLUP, PULLDN, ~
  673. STIM. ~ ~
  674. STIM Syntax: ~
  675. U<name> STIM (<width>,<radices>) ~
  676. +<node>* <iomodel> ~
  677. + [TIMESTEP=stepsize] ~
  678. +  < <time>,<value> > | ~
  679. +  < <time> GOTO <label><n>TIMES> | ~
  680. +  < <time> GOTO <label><rv><val>> | ~
  681. +  < <time> INCR BY <val> > ~
  682. +  < <time> DECR BY <val> >>* ~ ~
  683. <rv> = UNTIL GT|GE|LT|LE ~ ~
  684. Examples: ~
  685. U7 XOR() INA INB OUTXOR DEFGATE DEFIO ~
  686. U101 STIM( 1, 1 ) IN1 STMIO ~
  687. + TIMESTEP=10ns ~
  688. + (LABEL=STARTLOOP) ~
  689. + (+10c, 0) (+5ns, 1) ~
  690. + (+40c GOTO STARTLOOP 1 TIMES) 
  691. @@MANDV
  692. V device - Voltage Source. ~ ~
  693. General Forms: ~
  694. V<name> <+node> <-node> ~
  695. + [[DC] <value>] ~
  696. + [AC <mag> [<phase>]] ~
  697. + [ <transient> ] ~ ~
  698. Transient Specifications: ~
  699. EXP(iv vpk rdelay rtc fdelay ftc) ~
  700. PULSE(v1 v2 td trise tfall pw per) ~
  701. PWL(t1 v1 t2 v2 ... tn vn) ~
  702. SFFM(voff vampl fc mod fm) ~
  703. SIN(voff vampl freq td df phase) ~ ~
  704. Examples: ~
  705. VBIAS  13  0  2.3mV ~
  706. VAC    2   3  AC .001 ~
  707. VACPHS 2   3  AC .001 90 ~
  708. VPULSE 1   0 ~
  709. + PULSE(-1mV 1mV 2ns 2ns 2ns 50ns 100ns) ~
  710. V3    26  77  DC .002 AC 1 
  711. + SIN(.002 .002 1.5MEG)
  712. @@MANDW
  713. W device - Current-Controlled Switch. ~ ~
  714. General Forms: ~
  715. W<name> <+node> <-node> ~
  716. +  <vname> <model> ~ ~
  717. Examples: ~
  718. W12  13  17  VC  WMOD ~
  719. WRESET 5  0 VRESET RELAY
  720. @@MANDX
  721. X device - Subcircuit Call. ~ ~
  722. General Forms: ~
  723. X<name> [<node>]* <sname> ~
  724. + [PARAMS: <<par>=<val>*>] ~ ~
  725. Examples: ~
  726. X12  100 101  200 201  DIFFAMP ~
  727. XBUFF 13  15 UNITAMP
  728. @@MANCAC
  729. .AC - AC Analysis. ~ ~
  730. General Forms: ~
  731. .AC [LIN][OCT][DEC] <points> ~
  732. +  <start> <end> ~ ~
  733. Examples: ~
  734. .AC  LIN  101  10Hz  200Hz ~
  735. .AC  OCT   10  1KHz  16KHz ~
  736. .AC  DEC   20  1MEG 100MEG
  737. @@MANCDC
  738. .DC - DC Analysis. ~ ~
  739. General Forms: ~
  740. .DC [LIN] <varname> ~
  741. +  <start> <end> <incr> [<nest>] ~
  742. .DC [OCT][DEC] <varname> ~
  743. +  <start> <end> <points> [<nest>] ~
  744. .DC <varname> LIST ~
  745. +  <value>* [<nest>] ~ ~
  746. Examples: ~
  747. .DC  VIN  -.25  .25  .05 ~
  748. .DC  LIN I2 5mA -2mA 0.1mA ~
  749. .DC  VCE 0v 10v .5v ~
  750. +    IB 0mA 1mA 50uA ~
  751. .DC  RES RMOD(R) 0.9 1.1 .001 ~
  752. .DC  DEC NPN QFAST(IS) ~
  753. +   1e-18 1e-14 5 ~
  754. .DC  TEMP LIST 0 20 27 50 80 ~
  755. .DC  PARAM RS -1 1 0.1
  756. @@MANCDIS
  757. .DISTRIBUTION - User-Defined Dist. ~ ~
  758. General Form: ~
  759. .DISTRIBUTION <name> <<dev> <prob>>* ~ ~
  760. Examples: ~
  761. .DISTRIBUTION bimodal ~
  762. + (-1,1)(-.5,1)(-.5,0)(.5,0)(.5,1)(1,1)
  763. @@MANCEND
  764. .END  - End Circuit. ~
  765. .ENDS - End Subcircuit. ~ ~
  766. General Forms: ~
  767. .END ~
  768. .ENDS [<name>] ~ ~
  769. Examples: ~
  770. .END ~
  771. .ENDS ~
  772. .ENDS 741
  773. @@MANCFOU
  774. Fourier Analysis. ~ ~
  775. General Forms: ~
  776. .FOUR   <freq> <output var>* ~ ~
  777. Examples: ~
  778. .FOUR   10KHz   v(5) v(6,7)
  779. @@MANCFUN
  780. Define Function. ~ ~
  781. General Forms: ~
  782. .FUNC <name>([arg*]) <body> ~ ~
  783. Examples: ~
  784. .FUNC DR(D) D/57.296 ~
  785. .FUNC E(X) EXP(X) ~
  786. .FUNC APBX(A,B,X) A+B*X
  787. @@MANCIC
  788. .IC - Initial Transient Conditions. ~ ~
  789. General Forms: ~
  790. .IC < <vnode> = <value> >* ~ ~
  791. Examples: ~
  792. .IC  V(2)=3.4  V(102)=0
  793. @@MANCINC
  794. .INC - Include File. ~ ~
  795. General Forms: ~
  796. .INC <name> ~ ~
  797. Examples: ~
  798. .INC  SETUP.CIR ~
  799. .INC  C:\\PSLIB\\VCO.CIR
  800. @@MANCLIB
  801. .LIB - Library FIle. ~ ~
  802. General Forms: ~
  803. .LIB [<name>] ~ ~
  804. Examples: ~
  805. .LIB ~
  806. .LIB OPNOM.LIB ~
  807. .LIB C:\\PSLIB\\QNOM.LIB
  808. @@MANCMC
  809. .MC - Monte Carlo Analysis. ~ ~
  810. General Forms: ~
  811. .MC <#runs> [DC][AC][TRAN] ~
  812. + <opvar> <func> <option>* ~ ~
  813. Examples: ~
  814. .MC  10 TRAN V(5) YMAX ~
  815. .MC  50   DC IC(Q7) MIN LIST ~
  816. .MC  20  AC VP(13,5) ~
  817. + RISE_EDGE(1.0) LIST ~
  818. +  OUTPUT ALL
  819. @@MANCWCA
  820. .WCASE - Worst Case Analysis. ~ ~
  821. General Forms: ~
  822. .WCASE <analysis> <opvar> <func> <option>* ~ ~
  823. Examples: ~
  824. .WCASE DC V(4,5) YMAX ~
  825. .WCASE TRAN V(1) FALL_EDGE(3.5v) ~
  826. + VARY BOTH BY RELTOL ~
  827. + DEVICES RL
  828. @@MANCMOD
  829. .MODEL - Model. ~ ~
  830. General Forms: ~
  831. .MODEL <name> <type> ~
  832. +  [<param>=<value> [<tol>]]* ~ ~
  833. Typename    Devname   Devtype ~
  834. CAP         Cxxx      capacitor ~
  835. IND         Lxxx      inductor ~
  836. RES         Rxxx      resistor ~
  837. D           Dxxx      diode ~
  838. NPN         Qxxx      NPN bipolar ~
  839. PNP         Qxxx      PNP bipolar ~
  840. LPNP        Qxxx      lateral PNP ~
  841. NJF         Jxxx      N-channel JFET ~
  842. PJF         Jxxx      P-channel JFET ~
  843. NMOS        Mxxx      N-channel MOSFET ~
  844. PMOS        Mxxx      P-channel MOSFET ~
  845. GASFET      Bxxx      N-channel GaAsFET ~
  846. CORE        Kxxx      nonlinear core ~
  847. VSWITCH     Sxxx      v/c switch ~
  848. ISWITCH     Wxxx      c/c switch ~
  849. DINPUT      Nxxx      digital i/p ~
  850. DOUTPUT     Oxxx      digital o/p ~ ~
  851. Examples: ~
  852. .MODEL RMAX RES ~
  853. + (R=1.5 TC=.02 TC2=.005) ~
  854. .MODEL QDRIV NPN (IS=1e-7 BF=30) ~
  855. .MODEL DLOAD D ~
  856. + (IS=1e-9 DEV 5% LOT 10%)
  857. @@MANCNOD
  858. .NODESET - Nodeset. ~ ~
  859. General Forms: ~
  860. .NODESET < <node>=<value> >* ~ ~
  861. Examples: ~
  862. .NODESET V(2)=3.4  V(3)=-1V
  863. @@MANCNOI
  864. .NOISE - Noise Analysis. ~ ~
  865. General Forms: ~
  866. .NOISE <opvar> <name> [<ival>] ~ ~
  867. Examples: ~
  868. .NOISE  V(5) VIN
  869. .NOISE  V(4,5) ISRC 20
  870. @@MANCOP
  871. Bias Point. ~ ~
  872. General Forms: ~
  873. .OP ~ ~
  874. Examples: ~
  875. .OP
  876. @@MANCOPT
  877. .OPTIONS - Options. ~ ~
  878. General Forms: ~
  879. .OPTIONS [<fopt>*] [<vopt>=<value>*] ~ ~
  880. Flag Options ~
  881. ACCT     summary & accounting ~
  882. EXPAND   show subcircuit expansion ~
  883. LIBRARY  list lines from library files ~
  884. LIST     output summary ~
  885. NODE     output netlist ~
  886. NOECHO   suppress listing ~
  887. NOMOD    suppress model param listing ~
  888. NOPAGE   suppress banners ~
  889. OPTS     output option values ~ ~
  890. Value Options ~
  891. ABSTOL   best accuracy of currents ~
  892. CHGTOL   best accuracy of charges ~
  893. CPTIME   CPU time allowed ~
  894. DEFAD    MOSFET default AD ~
  895. DEFAS    MOSFET default AS ~
  896. DEFL     MOSFET default L ~
  897. DEFW     MOSFET default W ~
  898. GMIN     min conductance, any branch ~
  899. ITL1     DC & bias pt blind limit ~
  900. ITL2     DC & bias pt guess limit ~
  901. ITL4     transient per-point limit ~
  902. ITL5     transient total, all points ~
  903. LIMPTS   max for print/plot ~
  904. NUMDGT   #digits output ~
  905. PIVREL   rel mag for matrix pivot ~
  906. PIVTOL   abs mag for matrix pivot ~
  907. RELTOL   rel accuracy of V's and I's ~
  908. TNOM     default temp ~
  909. TRTOL    transient accuracy adjustment ~
  910. VNTOL    best accuracy of voltages ~
  911. WIDTH    output width ~ ~
  912. Examples: ~
  913. .OPTIONS NOECHO NOMOD RELTOL=.01 ~
  914. .OPTIONS ACCT DEFL=12u DEFW=8u
  915. @@MANCPAR
  916. .PARAM - Global Parameter. ~ ~
  917. General Forms: ~
  918. .PARAM < <name>=<value> >* ~ ~
  919. Examples: ~
  920. .PARAM   pi=3.14159265 ~
  921. .PARAM   RSHEET=120, VCC=5V
  922. @@MANCPLO
  923. .PLOT - Plot. ~ ~
  924. General Forms: ~
  925. .PLOT [DC][AC][NOISE][TRAN] ~
  926. + [ [<opvar>*] [(<lo>,<hi>)] ]* ~ ~
  927. Examples: ~
  928. .PLOT  DC  V(3) V(2,3) V(R1) I(VIN) ~
  929. .PLOT  AC  VM(2) VP(2) VG(2) ~
  930. .PLOT  TRAN V(3) V(2,3) (0,5V) ~
  931. + ID(M2) I(VCC) (-50mA,50mA)
  932. @@MANCPRI
  933. .PRINT - Print. ~ ~
  934. General Forms: ~
  935. .PRINT [DC][AC][NOISE][TRAN] ~
  936. +  [<opvar>*] ~ ~
  937. Examples: ~
  938. .PRINT  DC V(3) V(2,3) V(R1) IB(Q13) ~
  939. .PRINT  AC  VM(2) VP(2) VG(5) II(7) ~
  940. .PRINT NOISE INOISE ONOISE DB(INOISE) ~
  941. @@MANCPRO
  942. .PROBE - Probe. ~ ~
  943. General Forms: ~
  944. .PROBE[/CSDF] ~
  945. .PROBE[/CSDF] [<opvar>*] ~ ~
  946. Examples: ~
  947. .PROBE ~
  948. .PROBE v(2) I(R2) VBE(Q13) VDB(5) ~
  949. .PROBE/CSDF ~
  950. @@MANCSEN
  951. .SENS - Sensitivity Analysis. ~ ~
  952. General Forms: ~
  953. .SENS  <opvar>* ~ ~
  954. Examples: ~
  955. .SENS  V(9)  V(4,3)  I(VCC)
  956. @@MANCSTE
  957. .STEP - Stepped Analysis. ~ ~
  958. General Forms: ~
  959. .STEP [LIN] <varname> ~
  960. +  <start> <end> <incr> ~
  961. .STEP [OCT][DEC] <varname> ~
  962. +  <start> <end> <points> ~
  963. .STEP <varname> LIST ~
  964. +  <value>*  ~ ~
  965. Examples: ~
  966. .STEP  VIN  -.25  .25  .05 ~
  967. .STEP  LIN I2 5mA -2mA 0.1mA ~
  968. .STEP  RES RMOD(R) 0.9 1.1 .001 ~
  969. .STEP  TEMP LIST 0 20 27 50 80 ~
  970. .STEP  PARAM X 1 5 0.1
  971. @@MANCSUB
  972. .SUBCKT - Subcircuit Definition. ~ ~
  973. General Forms: ~
  974. .SUBCKT <name> [<node>*] ~
  975. +  [PARAMS: <par>[=<val>]* ]  ~ ~
  976. Examples: ~
  977. .SUBCKT  OPAMP 1 2 101 102 ~
  978. .SUBCKT FILTER IN OUT ~
  979. +  PARAMS: CENTER, WIDTH=10KHz
  980. @@MANCTEM
  981. .TEMP - Temperature. ~ ~
  982. General Forms: ~
  983. .TEMP <value>* ~ ~
  984. Examples: ~
  985. .TEMP  125 ~
  986. .TEMP  0  27  125
  987. @@MANCTF
  988. .TF - Transfer Function. ~ ~
  989. General Forms: ~
  990. .TF <opvar> <ipsrc> ~ ~
  991. Examples: ~
  992. .TF  V(5)  VIN
  993. .TF  I(VDRIV) ICNTRL
  994. @@MANCTRA
  995. .TRAN - Transient Analysis. ~ ~
  996. General Forms: ~
  997. .TRAN[/OP] <pstep> <ftime> ~
  998. +  [<noprint> [<ceiling>]] [UIC] ~ ~
  999. Examples: ~
  1000. .TRAN  1nS  100nS ~
  1001. .TRAN/OP  1nS  100nS 20nS UIC ~
  1002. .TRAN 1nS 100nS 0nS .1nS
  1003. @@MANCWID
  1004. .WIDTH - Width. ~ ~
  1005. General Forms: ~
  1006. .WIDTH  OUT=<val> ~ ~
  1007. Examples: ~
  1008. .WIDTH  OUT=80
  1009. @@MANCO/P
  1010. Output Variables: ~
  1011. DC Sweep and Transient: ~
  1012. V(<node>) ~
  1013. V(<+node>,<-node>) ~
  1014. V(<name>) ~
  1015. Vx(<name>) ~
  1016. Vxy(<name>) ~
  1017. Vz(<name>) ~
  1018. I(<name>) ~
  1019. Ix(<name>) ~
  1020. Iz(<name>) ~
  1021. Devtypes: C/D/E/F/G/H/I/L/R/V ~
  1022. xy: D/G/S (B) ~
  1023. xy: D/G/S (J) ~
  1024. xy: D/G/S/B (M) ~
  1025. xy: C/B/E/S (Q) ~
  1026. z:  A/B ~ ~
  1027. AC Analysis: ~
  1028. Suffices: ~
  1029. M  magnitude ~
  1030. DB magnitude ~
  1031. P phase ~
  1032. G group delay ~
  1033. R real ~
  1034. I imaginary ~
  1035. Devtypes: C/I/L/R/T/V ~ ~
  1036. Noise Analysis: ~
  1037. INOISE ~
  1038. ONOISE ~
  1039. DB(INOISE) ~
  1040. DB(ONOISE)
  1041. @@MANHF
  1042. Floating nodes have no DC path to ground. Frequent causes of trouble: ~ ~
  1043. The two ends of a transmission line do not have a DC connection between
  1044. them. ~
  1045. Voltage-controlled sources do not have a DC connection between their
  1046. controlling nodes. ~ ~
  1047. There is an error in the circuit description. ~ ~
  1048. Assuming the circuit is correct, the solution is to connect the
  1049. floating node to ground via a large-value resistor.
  1050. @@MANHL
  1051. PSpice checks for zero-resistance loops. These may be caused by
  1052. independent voltage sources (V), controlled voltage sources (E and H),
  1053. and inductors (L); or there may be an error in the circuit description. ~
  1054. Assuming the circuit to be correct, the solution is to add series
  1055. resistance into the loop.
  1056. @@MANHC
  1057. Convergence problems may occur in the DC sweep, bias point calculations
  1058. and transient analysis. ~ ~
  1059. DC Sweep: most frequent problem is attempting to analyze circuits
  1060. with regenerative feedback (eg. Schmitt trigger). Try doing a
  1061. Transient Analysis instead of the DC Sweep. Use a piecewise-linear
  1062. voltage source to generate a slow ramp. You can sweep up and down
  1063. again in the same analysis. ~ ~
  1064. Bias Point: use the .NODESET statement to help PSpice find a solution.
  1065. Nodes such as the outputs of opamps are good candidates for .NODESET. ~ ~
  1066. Transient Analysis: unrealistic modelling of circuits with switches
  1067. but no parasitic capacitance can cause problems, for example circuits
  1068. containing diodes and inductors but no parasitic resistance or capacitance. ~
  1069. It may be necessary to relax RELTOL from .001 to .01. ~
  1070. Using the "uic" modifier causes the Transient Bias Point calculation to
  1071. be skipped, causing Transient Analysis convergence problems. Use .IC
  1072. or .NODESET instead. ~
  1073. With high voltages and currents, it may be necessary to increase VNTOL
  1074. and ABSTOL. For voltages in the kV range raise VNTOL to 1mV. For currents
  1075. in the amps range raise ABSTOL to 1nA. For currents in the kA range
  1076. raise ABSTOL to 1uA.
  1077. @@MANHA
  1078. PSpice's accuracy is controlled by the RELTOL, VNTOL, ABSTOL and
  1079. CHGTOL parameters of the .OPTIONS statement. ~
  1080. The most important is RELTOL, which controls the relative accuracy
  1081. of all voltages and currents that are calculated. RELTOL defaults to 0.1%. ~
  1082. VNTOL sets best accuracy for voltages. ABSTOL sets best accuracy for
  1083. currents. CHGTOL sets best accuracy for charge/flux.
  1084. @@MANHG
  1085. Global nodes begin with the prefix "$G_". ~
  1086. Examples: $G_VCC $G_COMMON. ~
  1087. Predefined digital nodes are: $D_HI, $D_LO, $D_NC, $D_X.
  1088. @@MANEE
  1089. PSpice will accept expressions in most places where a numeric
  1090. value is required. This includes component values, model parameter
  1091. values, subcircuit parameters, initial conditions, etc. ~
  1092. An expression is contained within {} and must fit on one line.
  1093. Components of an expression include: numbers, operators +-*/,
  1094. parameter names and functions (sin, cos, exp, etc). For example,
  1095. a resistor value could be defined in terms of a global parameter RSHEET: ~
  1096. re1 20 21 {rsheet * 1.10} ~
  1097. Expressions may be used for global parameter values, but these
  1098. expressions may not contain parameter names. ~
  1099. Expressions used in the extended controlled sources may additionally
  1100. refer to node voltages, currents, and the swept variable "time".
  1101. @@MANEG
  1102. Global parameters are defined with the .PARAM statement. They can
  1103. then be used in expressions for device values, etc. Example: ~
  1104. .param  pi=3.14159265 ~
  1105. c1  2  0  { 1 / (2 * pi * 10khz * 10k) } ~
  1106. @@MANES
  1107. Subcircuit parameters supply default values for subcircuits. The
  1108. defaults can be overridden when the subcircuit is called. The values
  1109. given to subcircuit parameters can be expressions. In addition to the
  1110. normal components of an expression, subcircuit parameter expressions
  1111. may refer to the names of a subcircuit's own parameters (if any). ~
  1112. If a global parameter and a subcircuit parameter have the same name,
  1113. the subcircuit parameter definition is used. ~ ~
  1114. For example, here is the definition of a parasitic node: ~ ~
  1115. .subckt para 1 params: r=1meg, c=1pf ~
  1116. r1 1 0 {r} ~
  1117. c1 1 0 {c} ~
  1118. .ends ~ ~
  1119. and here is the subcircuit being used: ~
  1120. xpara1 27 para params: c=5pf
  1121. @
  1122.